org.gxml.xs
Enum SmPrimeTypeKind

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

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

The following enumerated constants are used by SmMetaBridge to classify the sequence type instance.


Enum Constant Summary
ANY_ATOMIC_TYPE
          Represents the xs:anyAtomicType Atomic Ur-type.
ANY_SIMPLE_TYPE
          Represents the xs:anySimpleType Simple Ur-type.
ANY_TYPE
          Represents the xs:anyType Complex Ur-type.
ATOM
          Represents an atomic type.
ATTRIBUTE
          Represents an attribute node, i.e.
CHOICE
          Represents a choice between two types.
COMMENT
          Represents a comment node, i.e.
COMPLEX
          Represents a user-defined complex type.
DOCUMENT
          Represents a document node.
ELEMENT
          Represents an element node, i.e.
EMPTY
          Represents the type indicating an empty sequence.
ITEM
          Represents any kind of item.
NAMESPACE
          Represents a namespace node.
NODE
          Represents any kind of node.
NONE
          Represents the absence of a type, i.e.
PROCESSING_INSTRUCTION
          Represents a processing instruction node, i.e.
SCHEMA_ATTRIBUTE
          Represents an attribute node whose type annotation matches a schema type, i.e.
SCHEMA_ELEMENT
          Represents an element node whose type annotation matches a schema type, i.e.
TEXT
          Represents a text node, i.e.
 
Method Summary
static SmPrimeTypeKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SmPrimeTypeKind[] 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

ITEM

public static final SmPrimeTypeKind ITEM
Represents any kind of item.


ATOM

public static final SmPrimeTypeKind ATOM
Represents an atomic type. i.e. anything derived from xs:anyAtomicType.


NODE

public static final SmPrimeTypeKind NODE
Represents any kind of node.


DOCUMENT

public static final SmPrimeTypeKind DOCUMENT
Represents a document node.


COMMENT

public static final SmPrimeTypeKind COMMENT
Represents a comment node, i.e. the type comment() as defined in XQuery.


ELEMENT

public static final SmPrimeTypeKind ELEMENT
Represents an element node, i.e. the type element(...) as defined in XQuery.


SCHEMA_ELEMENT

public static final SmPrimeTypeKind SCHEMA_ELEMENT
Represents an element node whose type annotation matches a schema type, i.e. the type schema-element(...) as defined in XQuery.


ATTRIBUTE

public static final SmPrimeTypeKind ATTRIBUTE
Represents an attribute node, i.e. the type attribute(...) as defined in XQuery.


SCHEMA_ATTRIBUTE

public static final SmPrimeTypeKind SCHEMA_ATTRIBUTE
Represents an attribute node whose type annotation matches a schema type, i.e. the type schema-attribute(...) as defined in XQuery.


PROCESSING_INSTRUCTION

public static final SmPrimeTypeKind PROCESSING_INSTRUCTION
Represents a processing instruction node, i.e. the type processing-instruction(...) as defined in XQuery.


TEXT

public static final SmPrimeTypeKind TEXT
Represents a text node, i.e. the type text() as defined in XQuery.


NAMESPACE

public static final SmPrimeTypeKind NAMESPACE
Represents a namespace node.


NONE

public static final SmPrimeTypeKind NONE
Represents the absence of a type, i.e. an error.


EMPTY

public static final SmPrimeTypeKind EMPTY
Represents the type indicating an empty sequence.


CHOICE

public static final SmPrimeTypeKind CHOICE
Represents a choice between two types. i.e. type-1 | type-2.


ANY_TYPE

public static final SmPrimeTypeKind ANY_TYPE
Represents the xs:anyType Complex Ur-type.


ANY_SIMPLE_TYPE

public static final SmPrimeTypeKind ANY_SIMPLE_TYPE
Represents the xs:anySimpleType Simple Ur-type.


ANY_ATOMIC_TYPE

public static final SmPrimeTypeKind ANY_ATOMIC_TYPE
Represents the xs:anyAtomicType Atomic Ur-type.


COMPLEX

public static final SmPrimeTypeKind COMPLEX
Represents a user-defined complex type. i.e. anything derived from xs:anyType.

Method Detail

values

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

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

valueOf

public static SmPrimeTypeKind 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.