Package org.exolab.castor.xml.schema
Class ContentType
java.lang.Object
org.exolab.castor.xml.schema.ContentType
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SimpleContent
An XML Schema ContentType
- Version:
- $Revision$ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContentType
static final short
static final short
static final ContentType
static final ContentType
static final short
static final ContentType
static final short
static final short
static final short
static final ContentType
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ELEMENT_ONLY
public static final short ELEMENT_ONLY- See Also:
-
MIXED
public static final short MIXED- See Also:
-
EMPTY
public static final short EMPTY- See Also:
-
ANY
public static final short ANY- See Also:
-
SIMPLE
public static final short SIMPLE- See Also:
-
TEXT_ONLY
public static final short TEXT_ONLY- See Also:
-
elemOnly
-
mixed
-
empty
-
any
-
textOnly
-
-
Constructor Details
-
ContentType
protected ContentType(short type) Creates a new ContentType.
-
-
Method Details
-
getType
public short getType()Returns the type of this ContentType- Returns:
- the type of this ContentType
-
toString
-
valueOf
Creates a new ContentType based on the given String- Parameters:
contentType
- the type of the ContentType to create.
The valid values are as follows: elemOnly, textOnly, mixed, empty, any, simple
- Throws:
IllegalArgumentException
- when the given type is not one of the possible valid values
-