public static enum AbstractEmptyElementProcessor.EmptyElementBehavior extends Enum<AbstractEmptyElementProcessor.EmptyElementBehavior>
ConditionalElementProcessor
when it encounters
an empty XmlElement
.Enum Constant and Description |
---|
IGNORE
When an empty
XmlElement is encountered, simply ignore
it and don't process the XmlElement at all. |
PROCESS
When an empty
XmlElement is encountered, attempt to
process it. |
THROW_EXCEPTION
When an empty
XmlElement is encountered, raise a
ConfigurationException . |
USE_DEFAULT_VALUE
When an empty
XmlElement is encountered, return a
default value. |
Modifier and Type | Method and Description |
---|---|
static AbstractEmptyElementProcessor.EmptyElementBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractEmptyElementProcessor.EmptyElementBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractEmptyElementProcessor.EmptyElementBehavior IGNORE
XmlElement
is encountered, simply ignore
it and don't process the XmlElement
at all.public static final AbstractEmptyElementProcessor.EmptyElementBehavior THROW_EXCEPTION
XmlElement
is encountered, raise a
ConfigurationException
.public static final AbstractEmptyElementProcessor.EmptyElementBehavior USE_DEFAULT_VALUE
XmlElement
is encountered, return a
default value.public static final AbstractEmptyElementProcessor.EmptyElementBehavior PROCESS
XmlElement
is encountered, attempt to
process it.public static AbstractEmptyElementProcessor.EmptyElementBehavior[] values()
for (AbstractEmptyElementProcessor.EmptyElementBehavior c : AbstractEmptyElementProcessor.EmptyElementBehavior.values()) System.out.println(c);
public static AbstractEmptyElementProcessor.EmptyElementBehavior 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