net.officefloor.plugin.xml.marshall.tree
Enum XmlMappingType

java.lang.Object
  extended by java.lang.Enum<XmlMappingType>
      extended by net.officefloor.plugin.xml.marshall.tree.XmlMappingType
All Implemented Interfaces:
Serializable, Comparable<XmlMappingType>

public enum XmlMappingType
extends Enum<XmlMappingType>

Type of the XmlMappingMetaData.

Author:
Daniel Sagenschneider

Enum Constant Summary
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 a TYPE or COLLECTION.
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
static XmlMappingType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 a TYPE or COLLECTION.


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(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 name
NullPointerException - if the argument is null


Copyright © 2005-2013. All Rights Reserved.