public static enum ILcdXMLDocumentContext.Scope extends Enum<ILcdXMLDocumentContext.Scope>
Enum Constant and Description |
---|
DESCENDANTS
The
DESCENDANTS scope is to be used for variables that need only be
accessible in the current XML element and all of its children. |
GLOBAL
The
GLOBAL scope is to be used for variables that need to be accessible
within the whole XML document. |
LOCAL
The
LOCAL scope is to be used for variables that need only be accessible
in the current XML element. |
Modifier and Type | Method and Description |
---|---|
static ILcdXMLDocumentContext.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ILcdXMLDocumentContext.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ILcdXMLDocumentContext.Scope GLOBAL
GLOBAL
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 a null
value is set for it.public static final ILcdXMLDocumentContext.Scope DESCENDANTS
DESCENDANTS
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 a null
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.public static final ILcdXMLDocumentContext.Scope LOCAL
LOCAL
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 a null
value is set in that
element.public static ILcdXMLDocumentContext.Scope[] values()
for (ILcdXMLDocumentContext.Scope c : ILcdXMLDocumentContext.Scope.values()) System.out.println(c);
public static ILcdXMLDocumentContext.Scope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null