Enum XmlMappingType
- java.lang.Object
-
- java.lang.Enum<XmlMappingType>
-
- net.officefloor.plugin.xml.marshall.tree.XmlMappingType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XmlMappingType>
public enum XmlMappingType extends java.lang.Enum<XmlMappingType>
Type of theXmlMappingMetaData
.- Author:
- Daniel Sagenschneider
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTE
A particular attribute for an element.ATTRIBUTES
Indicates the attributes for an element.COLLECTION
Collection of objects.ITEM
Specifies the type of object within aTYPE
orCOLLECTION
.OBJECT
Specific object that parents other elements.REFERENCE
Enables referencing other mappings.ROOT
Root mapping.TYPE
Generic object that has mappings specific to its sub-type implementation.VALUE
Value of an object to be contained in an element.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlMappingType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XmlMappingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROOT
public static final XmlMappingType ROOT
Root mapping.
-
ATTRIBUTES
public static final XmlMappingType ATTRIBUTES
Indicates the attributes for an element.
-
ATTRIBUTE
public static final XmlMappingType ATTRIBUTE
A particular attribute for an element.
-
VALUE
public static final XmlMappingType VALUE
Value of an object to be contained in an element.
-
OBJECT
public static final XmlMappingType OBJECT
Specific object that parents other elements.
-
TYPE
public static final XmlMappingType TYPE
Generic object that has mappings specific to its sub-type implementation.
-
COLLECTION
public static final XmlMappingType COLLECTION
Collection of objects.
-
ITEM
public static final XmlMappingType ITEM
Specifies the type of object within aTYPE
orCOLLECTION
.
-
REFERENCE
public static final XmlMappingType REFERENCE
Enables referencing other mappings. Mainly useful for recursive mappings.
-
-
Method Detail
-
values
public static XmlMappingType[] 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 (XmlMappingType c : XmlMappingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlMappingType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-