Enum XmlMappingType

    • 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 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

      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.
      • 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

      • 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.
      • 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 name
        java.lang.NullPointerException - if the argument is null