org.gxml.xs
Enum SmLengthFacetUOM

java.lang.Object
  extended by java.lang.Enum<SmLengthFacetUOM>
      extended by org.gxml.xs.SmLengthFacetUOM
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SmLengthFacetUOM>

public enum SmLengthFacetUOM
extends java.lang.Enum<SmLengthFacetUOM>

Indicates the Unit of Measure for the length facet of a simple type value.


Enum Constant Summary
Characters
          Used for xs:string, types derived from xs:string, and xs:anyURI.
ListItems
          Used for typesderived by list.
NotApplicable
          Used to indicate that the length facet is not applicable for this type.
Octets
          Used for xs:hexBinary and xs:base64Binary.
 
Method Summary
static SmLengthFacetUOM valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SmLengthFacetUOM[] 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

Characters

public static final SmLengthFacetUOM Characters
Used for xs:string, types derived from xs:string, and xs:anyURI. Indicates the number of characters in the atomic value.


Octets

public static final SmLengthFacetUOM Octets
Used for xs:hexBinary and xs:base64Binary. Indicates the number of octets (8 bits) of binary data in the atomic value.


ListItems

public static final SmLengthFacetUOM ListItems
Used for typesderived by list. Indicates the number of list items.


NotApplicable

public static final SmLengthFacetUOM NotApplicable
Used to indicate that the length facet is not applicable for this type.

Method Detail

values

public static SmLengthFacetUOM[] 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 (SmLengthFacetUOM c : SmLengthFacetUOM.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SmLengthFacetUOM 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


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.