biz.c24.io.api.data
Class ContentModelEnum

java.lang.Object
  extended by biz.c24.io.api.data.ContentModelEnum
All Implemented Interfaces:
Serializable

public final class ContentModelEnum
extends Object
implements Serializable

An enumeration of possible content model values.

Content models specify the order and required presence of elements with a complex type.

See Also:
Serialized Form

Field Summary
static ContentModelEnum ALL
          Specifies the types content model is an all, i.e. all elements must appear but in any order.
static ContentModelEnum CHOICE
          Specifies the types content model is a choice, i.e. exactly one element must appear.
static ContentModelEnum SEQUENCE
          Specifies the types content model is a sequence, i.e. all elements must appear in the specified order.
 
Method Summary
static ContentModelEnum[] getEnumArray()
          Returns an array containing the members of this enumeration.
static ContentModelEnum getEnumValue(String name)
          Returns the enumeration value called name.
 String getName()
          Returns the name of this enumeration value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEQUENCE

public static final ContentModelEnum SEQUENCE
Specifies the types content model is a sequence, i.e. all elements must appear in the specified order.


ALL

public static final ContentModelEnum ALL
Specifies the types content model is an all, i.e. all elements must appear but in any order.


CHOICE

public static final ContentModelEnum CHOICE
Specifies the types content model is a choice, i.e. exactly one element must appear.

Method Detail

getName

public String getName()
Returns the name of this enumeration value.

Returns:
The name.

toString

public String toString()
Overrides:
toString in class Object

getEnumArray

public static ContentModelEnum[] getEnumArray()
Returns an array containing the members of this enumeration.

Returns:
The enumeration as an array.

getEnumValue

public static ContentModelEnum getEnumValue(String name)
Returns the enumeration value called name.

Parameters:
name - The name of the enumeration value to return.
Returns:
The enumeration value or null if none was found.


C24 Technologies © 2002-2012: All Rights Reserved.