Enum PositionType
- java.lang.Object
-
- java.lang.Enum<PositionType>
-
- network.oxalis.peppol.schematron.jaxb.quickfix.PositionType
-
- All Implemented Interfaces:
Serializable,Comparable<PositionType>
public enum PositionType extends Enum<PositionType>
Java class for positionType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="positionType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="after"/> <enumeration value="before"/> <enumeration value="first-child"/> <enumeration value="last-child"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTERThe nodes to be added will be inserted after the anchor node.BEFOREThe nodes to be added will be inserted before the anchor node.FIRST_CHILDThe nodes to be added will be inserted as the first child of the anchor node.LAST_CHILDThe nodes to be added will be inserted as the last child of the anchor node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PositionTypefromValue(String v)Stringvalue()static PositionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PositionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AFTER
public static final PositionType AFTER
The nodes to be added will be inserted after the anchor node.
-
BEFORE
public static final PositionType BEFORE
The nodes to be added will be inserted before the anchor node.
-
FIRST_CHILD
public static final PositionType FIRST_CHILD
The nodes to be added will be inserted as the first child of the anchor node.
-
LAST_CHILD
public static final PositionType LAST_CHILD
The nodes to be added will be inserted as the last child of the anchor node.
-
-
Method Detail
-
values
public static PositionType[] 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 (PositionType c : PositionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PositionType 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
-
value
public String value()
-
fromValue
public static PositionType fromValue(String v)
-
-