Enum AbstractEmptyElementProcessor.EmptyElementBehavior
- java.lang.Object
-
- java.lang.Enum<AbstractEmptyElementProcessor.EmptyElementBehavior>
-
- com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor.EmptyElementBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractEmptyElementProcessor.EmptyElementBehavior>
- Enclosing class:
- AbstractEmptyElementProcessor<T>
public static enum AbstractEmptyElementProcessor.EmptyElementBehavior extends Enum<AbstractEmptyElementProcessor.EmptyElementBehavior>
The behavior of theConditionalElementProcessor
when it encounters an emptyXmlElement
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE
When an emptyXmlElement
is encountered, simply ignore it and don't process theXmlElement
at all.PROCESS
When an emptyXmlElement
is encountered, attempt to process it.THROW_EXCEPTION
When an emptyXmlElement
is encountered, raise aConfigurationException
.USE_DEFAULT_VALUE
When an emptyXmlElement
is encountered, return a default value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
IGNORE
public static final AbstractEmptyElementProcessor.EmptyElementBehavior IGNORE
When an emptyXmlElement
is encountered, simply ignore it and don't process theXmlElement
at all.
-
THROW_EXCEPTION
public static final AbstractEmptyElementProcessor.EmptyElementBehavior THROW_EXCEPTION
When an emptyXmlElement
is encountered, raise aConfigurationException
.
-
USE_DEFAULT_VALUE
public static final AbstractEmptyElementProcessor.EmptyElementBehavior USE_DEFAULT_VALUE
When an emptyXmlElement
is encountered, return a default value.
-
PROCESS
public static final AbstractEmptyElementProcessor.EmptyElementBehavior PROCESS
When an emptyXmlElement
is encountered, attempt to process it.
-
-
Method Detail
-
values
public static AbstractEmptyElementProcessor.EmptyElementBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractEmptyElementProcessor.EmptyElementBehavior c : AbstractEmptyElementProcessor.EmptyElementBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractEmptyElementProcessor.EmptyElementBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-