org.exolab.castor.xml.schema
public class ContentType extends Object implements Serializable
Version: $Revision: 1.2 $ $Date: 2003/03/03 18:08:27 $
| 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