Package org.ametys.runtime.model
Class DefinitionContext
java.lang.Object
org.ametys.runtime.model.DefinitionContext
Object that gives some context for definitions manipulation
- 
Method SummaryModifier and TypeMethodDescriptionRetrieves the tag name to use while generating SAX eventsRetrieves the context object for the definitionbooleanChecks if the context is in editionstatic DefinitionContextCreates a new instance of aDefinitionContextwithEdition(boolean isEdition) Set totrueif the context is in edition (default tofalse)withItemTagName(String itemTagName) Set the tag name to use while generating SAX eventswithObject(Object object) Set the context object
- 
Method Details- 
newInstanceCreates a new instance of aDefinitionContext- Returns:
- the created instance
 
- 
getObjectRetrieves the context object for the definition- Returns:
- the context object
 
- 
withObjectSet the context object- Parameters:
- object- the context object to set
- Returns:
- the current DefinitionContext
 
- 
isEditionChecks if the context is in edition- Returns:
- trueif the context is in edition,- falseotherwise
 
- 
withEditionSet totrueif the context is in edition (default tofalse)- Parameters:
- isEdition-- trueif the context is in edition,- falseotherwise
- Returns:
- the current DefinitionContext
 
- 
getItemTagNameRetrieves the tag name to use while generating SAX events- Returns:
- the tag name to use while generating SAX events
 
- 
withItemTagNameSet the tag name to use while generating SAX events- Parameters:
- itemTagName- the tag name to set
- Returns:
- the current DefinitionContext
 
 
-