Package com.luciad.format.xml
Class ILcdXMLDocumentContext.Scope
java.lang.Object
com.luciad.format.xml.ILcdXMLDocumentContext.Scope
- Enclosing interface:
ILcdXMLDocumentContext
A type-safe enumeration, representing all possible scopes to be used
in XML document contexts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ILcdXMLDocumentContext.ScopeTheDESCENDANTSscope is to be used for variables that need only be accessible in the current XML element and all of its children.static final ILcdXMLDocumentContext.ScopeTheGLOBALscope is to be used for variables that need to be accessible within the whole document.static final ILcdXMLDocumentContext.ScopeTheLOCALscope is to be used for variables that need only be accessible in the current XML element. -
Method Summary
-
Field Details
-
GLOBAL
TheGLOBALscope is to be used for variables that need to be accessible within the whole document. Setting a new value for the variable will permanently override. the old value. The variable will only be invalidated at the end of the decoding process, or if anullvalue is set for it. -
DESCENDANTS
TheDESCENDANTSscope is to be used for variables that need only be accessible in the current XML element and all of its children. Setting a new value for the variable in one of the descendants, will override the old value for that descendant and all of its children. The variable will be invalidated when the element, in which the variable was set, is ended, or if anullvalue is set in that element. This scope works as a stack, where the actual value of the variable corresponds the value currently on top of the stack. -
LOCAL
TheLOCALscope is to be used for variables that need only be accessible in the current XML element. Setting a new value for the variable in that element will permanently override the old value. The variable will be invalidated when the element, in which the variable was set, is ended, or if anullvalue is set in that element.
-