Enum ExtensionPlacement
- All Implemented Interfaces:
Serializable
,Comparable<ExtensionPlacement>
,java.lang.constant.Constable
An enumeration for placement instruction for AFP extensions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPlace the extension right before the "End" structured field.Place the extension at its default/usual position. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionPlacement
fromXMLValue
(String value) Returns the enum value from the given XML value for this enumeration.Returns the XML value that corresponds to this enum value.static ExtensionPlacement
Returns the enum constant of this type with the specified name.static ExtensionPlacement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Place the extension at its default/usual position. -
BEFORE_END
Place the extension right before the "End" structured field.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getXMLValue
Returns the XML value that corresponds to this enum value.- Returns:
- the XML value
-
fromXMLValue
Returns the enum value from the given XML value for this enumeration.- Parameters:
value
- the XML value- Returns:
- the enum value
-