org.exolab.castor.xml.schema
public class ContentType extends Object implements Serializable
Version: $Revision: 5951 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Field Summary | |
---|---|
static short | ANY |
static ContentType | any |
static ContentType | elemOnly |
static ContentType | empty |
static short | ELEMENT_ONLY |
static short | EMPTY |
static ContentType | mixed |
static short | MIXED |
static short | SIMPLE |
static ContentType | textOnly |
static short | TEXT_ONLY |
Constructor Summary | |
---|---|
protected | ContentType(short type)
Creates a new ContentType. |
Method Summary | |
---|---|
short | getType()
Returns the type of this ContentType
|
String | toString()
Returns the String representation of this ContentType
|
static ContentType | valueOf(String contentType)
Creates a new ContentType based on the given String |
Returns: the type of this ContentType
Returns: the String representation of this ContentType
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