org.gxml.xs
Enum SmContentTypeKind

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

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

The content model kind defines the combinations of elements and text nodes that may be included in the child axis of a type.


Enum Constant Summary
ElementOnly
          Indicates that a complex type has a complex type {content type} property; only elements are accepted.
Empty
          No child elements or text nodes are allowed.
Mixed
          Indicates that a complex type has a complex type {content type} property and mixed is enabled; both text nodes and element nodes are accepted.
Simple
          Indicates that a complex type has a simple type {content type} property.
 
Method Summary
 boolean isComplex()
           
 boolean isElementOnly()
           
 boolean isEmpty()
           
 boolean isMixed()
           
 boolean isSimple()
           
static SmContentTypeKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SmContentTypeKind[] 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

ElementOnly

public static final SmContentTypeKind ElementOnly
Indicates that a complex type has a complex type {content type} property; only elements are accepted.


Empty

public static final SmContentTypeKind Empty
No child elements or text nodes are allowed.


Mixed

public static final SmContentTypeKind Mixed
Indicates that a complex type has a complex type {content type} property and mixed is enabled; both text nodes and element nodes are accepted.


Simple

public static final SmContentTypeKind Simple
Indicates that a complex type has a simple type {content type} property.

Method Detail

values

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

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

valueOf

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

isComplex

public boolean isComplex()

isElementOnly

public boolean isElementOnly()

isEmpty

public boolean isEmpty()

isMixed

public boolean isMixed()

isSimple

public boolean isSimple()


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.