Package cimerant.context.java.util.impl
Class MapEntryListIteratorContextImpl<K,V>
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
cimerant.context.impl.ContextRootImpl<ListIterator<Map.Entry<K,V>>>
cimerant.context.java.util.impl.MapEntryListIteratorContextImpl<K,V>
- Type Parameters:
K- the type of keys maintained by this mapV- the type of mapped values
- All Implemented Interfaces:
ContextRoot<ListIterator<Map.Entry<K,,V>>> MapEntryListIteratorContext<K,,V> Serializable,Cloneable,Iterator<Map.Entry<ContextRoot<K>,,ContextRoot<V>>> ListIterator<Map.Entry<ContextRoot<K>,,ContextRoot<V>>> Context,InternalEventContext
public final class MapEntryListIteratorContextImpl<K,V>
extends ContextRootImpl<ListIterator<Map.Entry<K,V>>>
implements MapEntryListIteratorContext<K,V>
Wrapper interface bridging the gap between
Context and ListIterator Map.Entry describing the template data context. This
set of routines is used by the template to set and get 'named' data object to pass them to the
template engine to use when rendering a template.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Map.Entry<ContextRoot<K>, ContextRoot<V>> e) Unsupported Operation.intstatic <K,V> MapEntryListIteratorContext<K, V> getInstance(ListIterator<Map.Entry<K, V>> contextObject) Global access point to get a instance of the context, ensuring that only one instance of the context exists.String[]String[]booleanhasNext()Returnstrueif this context has more elements when traversing the context in the forward direction.booleanReturnstrueif this context has more elements when traversing the context in the reverse direction.voidicachePut(Object arg0, IntrospectionCacheData arg1) next()Returns the next element in the context and advances the cursor position.intReturns the index of the element that would be returned by a subsequent call tonext().voidvoidprevious()Returns the previous element in the context and moves the cursor position backwards.intReturns the index of the element that would be returned by a subsequent call toprevious().voidpushCurrentMacroName(String arg0) voidvoidremove()Unsupported Operation.voidset(Map.Entry<ContextRoot<K>, ContextRoot<V>> e) Unsupported Operation.voidsetCurrentResource(Resource arg0) voidsetMacroLibraries(List<Template> arg0) Methods inherited from class cimerant.context.impl.ContextRootImpl
backSlashLowerCase, backSlashTitleCase, backSlashUpperCase, camelCase, clearInstances, contextContainsKey, contextGet, contextGetKeys, contextPut, contextRemove, dotLowerCase, dotTitleCase, dotUpperCase, formatDate, forwardSlashLowerCase, forwardSlashTitleCase, forwardSlashUpperCase, getContextClass, getContextObject, getFileExtension, getFileName, getFilePath, getGrouping, getInstance, getObjectName, isCollectionContext, isMapContext, isMapEntryContext, isNumericClass, isSetContext, isStringContext, kebabLowerCase, kebabTitleCase, kebabUpperCase, lowerCase, lowerFirst, newMap, newMap, newSet, newSet, newSet, pascalCase, pluralBackSlashLowerCase, pluralBackSlashTitleCase, pluralBackSlashUpperCase, pluralCamelCase, pluralDotLowerCase, pluralDotTitleCase, pluralDotUpperCase, pluralForwardSlashLowerCase, pluralForwardSlashTitleCase, pluralForwardSlashUpperCase, pluralKebabLowerCase, pluralKebabTitleCase, pluralKebabUpperCase, pluralLowerCase, pluralLowerFirst, pluralPascalCase, pluralSnakeLowerCase, pluralSnakeTitleCase, pluralSnakeUpperCase, pluralTitleCase, pluralUpperCase, pluralUpperFirst, registerInstance, setFileExtension, setFileName, setFilePath, setFilePath, setGrouping, setGrouping, setObjectName, singularBackSlashLowerCase, singularBackSlashTitleCase, singularBackSlashUpperCase, singularCamelCase, singularDotLowerCase, singularDotTitleCase, singularDotUpperCase, singularForwardSlashLowerCase, singularForwardSlashTitleCase, singularForwardSlashUpperCase, singularKebabLowerCase, singularKebabTitleCase, singularKebabUpperCase, singularLowerCase, singularLowerFirst, singularPascalCase, singularSnakeLowerCase, singularSnakeTitleCase, singularSnakeUpperCase, singularTitleCase, singularUpperCase, singularUpperFirst, snakeLowerCase, snakeTitleCase, snakeUpperCase, titleCase, toJson, upperCase, upperFirstMethods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemoveMethods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, removeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.velocity.context.Context
containsKey, get, getKeys, put, removeMethods inherited from interface cimerant.context.ContextRoot
backSlashLowerCase, backSlashTitleCase, backSlashUpperCase, camelCase, contextContainsKey, contextGet, contextGetKeys, contextPut, contextRemove, dotLowerCase, dotTitleCase, dotUpperCase, formatDate, forwardSlashLowerCase, forwardSlashTitleCase, forwardSlashUpperCase, getContextClass, getFileExtension, getFileName, getFilePath, getGrouping, getObjectName, isNumericClass, kebabLowerCase, kebabTitleCase, kebabUpperCase, lowerCase, lowerFirst, newMap, newMap, newSet, newSet, newSet, pascalCase, pluralBackSlashLowerCase, pluralBackSlashTitleCase, pluralBackSlashUpperCase, pluralCamelCase, pluralDotLowerCase, pluralDotTitleCase, pluralDotUpperCase, pluralForwardSlashLowerCase, pluralForwardSlashTitleCase, pluralForwardSlashUpperCase, pluralKebabLowerCase, pluralKebabTitleCase, pluralKebabUpperCase, pluralLowerCase, pluralLowerFirst, pluralPascalCase, pluralSnakeLowerCase, pluralSnakeTitleCase, pluralSnakeUpperCase, pluralTitleCase, pluralUpperCase, pluralUpperFirst, setFileExtension, setFileName, setFilePath, setFilePath, setGrouping, setGrouping, setObjectName, singularBackSlashLowerCase, singularBackSlashTitleCase, singularBackSlashUpperCase, singularCamelCase, singularDotLowerCase, singularDotTitleCase, singularDotUpperCase, singularForwardSlashLowerCase, singularForwardSlashTitleCase, singularForwardSlashUpperCase, singularKebabLowerCase, singularKebabTitleCase, singularKebabUpperCase, singularLowerCase, singularLowerFirst, singularPascalCase, singularSnakeLowerCase, singularSnakeTitleCase, singularSnakeUpperCase, singularTitleCase, singularUpperCase, singularUpperFirst, snakeLowerCase, snakeTitleCase, snakeUpperCase, titleCase, upperCase, upperFirstMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
getInstance
public static <K,V> MapEntryListIteratorContext<K,V> getInstance(ListIterator<Map.Entry<K, V>> contextObject) Global access point to get a instance of the context, ensuring that only one instance of the context exists.- Type Parameters:
K- the type of keys maintained by this mapV- the type of mapped values- Parameters:
contextObject- The base context object.- Returns:
- a instance of the context.
-
add
Unsupported Operation.- Specified by:
addin interfaceListIterator<K>
-
hasNext
public boolean hasNext()Returnstrueif this context has more elements when traversing the context in the forward direction. -
hasPrevious
public boolean hasPrevious()Returnstrueif this context has more elements when traversing the context in the reverse direction.- Specified by:
hasPreviousin interfaceListIterator<K>
-
next
Returns the next element in the context and advances the cursor position. -
nextIndex
public int nextIndex()Returns the index of the element that would be returned by a subsequent call tonext().- Specified by:
nextIndexin interfaceListIterator<K>
-
previous
Returns the previous element in the context and moves the cursor position backwards.- Specified by:
previousin interfaceListIterator<K>
-
previousIndex
public int previousIndex()Returns the index of the element that would be returned by a subsequent call toprevious().- Specified by:
previousIndexin interfaceListIterator<K>
-
remove
public void remove()Unsupported Operation. -
set
Unsupported Operation.- Specified by:
setin interfaceListIterator<K>
-
pushCurrentTemplateName
-
popCurrentTemplateName
public void popCurrentTemplateName() -
getCurrentTemplateName
-
getTemplateNameStack
-
pushCurrentMacroName
-
popCurrentMacroName
public void popCurrentMacroName() -
getCurrentMacroName
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth() -
getMacroNameStack
-
icacheGet
-
icachePut
-
setCurrentResource
-
getCurrentResource
-
setMacroLibraries
-
getMacroLibraries
-
attachEventCartridge
- Specified by:
attachEventCartridgein interfaceInternalEventContext
-
getEventCartridge
- Specified by:
getEventCartridgein interfaceInternalEventContext
-