Package cimerant.context.json.impl
Class JsonContextImpl
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
cimerant.context.impl.ContextRootImpl<E>
cimerant.context.cimerant.impl.ObjectContextImpl<Map.Entry<String,Object>>
cimerant.context.json.impl.JsonContextImpl
- All Implemented Interfaces:
ObjectContext<Map.Entry<String,
,Object>> ContextRoot<Map.Entry<String,
,Object>> JsonContext
,Serializable
,Cloneable
,Context
,InternalEventContext
public final class JsonContextImpl
extends ObjectContextImpl<Map.Entry<String,Object>>
implements JsonContext
Class 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 TypeMethodDescriptionint
static JsonContext
getInstance
(Map.Entry<String, Object> contextObject, JsonRootContext parent, List<String> parentGroupings) Global access point to get a instance of the context, ensuring that only one instance of the context exists.String[]
String[]
void
icachePut
(Object arg0, IntrospectionCacheData arg1) void
void
void
pushCurrentMacroName
(String arg0) void
void
setCurrentResource
(Resource arg0) void
setMacroLibraries
(List<Template> arg0) Methods inherited from class cimerant.context.cimerant.impl.ObjectContextImpl
getAttributeByName, getAttributeByName, getAttributes, getFieldAttributeByName, getFieldAttributeByName, getFieldByName, getFields, getObjectName, getRelatedObjectsByName, getRelationshipAttributeByName, getRelationshipAttributeByName, getRelationshipByName, getRelationships, getRoot, hasAttributeByName, hasFieldAttributeByName, hasFieldByName, hasRelationshipAttributeByName, hasRelationshipByName
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, 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, upperFirst
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemove
Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.velocity.context.Context
containsKey, get, getKeys, put, remove
Methods 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, upperFirst
Methods inherited from interface cimerant.context.cimerant.ObjectContext
getAttributeByName, getAttributeByName, getAttributes, getFieldAttributeByName, getFieldAttributeByName, getFieldByName, getFields, getRelatedObjectsByName, getRelationshipAttributeByName, getRelationshipAttributeByName, getRelationshipByName, getRelationships, getRoot, hasAttributeByName, hasFieldAttributeByName, hasFieldByName, hasRelationshipAttributeByName, hasRelationshipByName
-
Method Details
-
getInstance
public static JsonContext getInstance(Map.Entry<String, Object> contextObject, JsonRootContext parent, List<String> parentGroupings) Global access point to get a instance of the context, ensuring that only one instance of the context exists.- Parameters:
parent
- the context parent.parentGroupings
- the context parent grouping.contextObject
- the context entry.- Returns:
- a instance of the context.
-
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:
attachEventCartridge
in interfaceInternalEventContext
-
getEventCartridge
- Specified by:
getEventCartridge
in interfaceInternalEventContext
-