Package com.luciad.format.xml.bind
Enum Class ILcdXMLDocumentContext.Scope
java.lang.Object
java.lang.Enum<ILcdXMLDocumentContext.Scope>
com.luciad.format.xml.bind.ILcdXMLDocumentContext.Scope
- All Implemented Interfaces:
Serializable
,Comparable<ILcdXMLDocumentContext.Scope>
,Constable
- Enclosing interface:
ILcdXMLDocumentContext
A type-safe enumeration, representing all possible scopes to be used
in XML document contexts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTheDESCENDANTS
scope is to be used for variables that need only be accessible in the current XML element and all of its children.TheGLOBAL
scope is to be used for variables that need to be accessible within the whole XML document.TheLOCAL
scope is to be used for variables that need only be accessible in the current XML element. -
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdXMLDocumentContext.Scope
Returns the enum constant of this class with the specified name.static ILcdXMLDocumentContext.Scope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GLOBAL
TheGLOBAL
scope is to be used for variables that need to be accessible within the whole XML 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 anull
value is set for it. -
DESCENDANTS
TheDESCENDANTS
scope 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 anull
value 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
TheLOCAL
scope 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 anull
value is set in that element.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-