Public Member Functions | |
short | getType () |
String | toString () |
Static Public Member Functions | |
static ContentType | valueOf (String contentType) throws IllegalArgumentException |
Static Public Attributes | |
static final short | ELEMENT_ONLY = 0 |
static final short | MIXED = 1 |
static final short | EMPTY = 2 |
static final short | ANY = 3 |
static final short | SIMPLE = 4 |
static final short | TEXT_ONLY = 5 |
static final ContentType | elemOnly = new ContentType(ELEMENT_ONLY) |
static final ContentType | mixed = new ContentType(MIXED) |
static final ContentType | empty = new ContentType(EMPTY) |
static final ContentType | any = new ContentType(ANY) |
static final ContentType | textOnly = new ContentType(TEXT_ONLY) |
Protected Member Functions | |
ContentType (short type) |
An XML Schema ContentType
org.exolab.castor.xml.schema.ContentType.ContentType | ( | short | type | ) | [protected] |
Creates a new ContentType.
short org.exolab.castor.xml.schema.ContentType.getType | ( | ) |
Returns the type of this ContentType
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
String org.exolab.castor.xml.schema.ContentType.toString | ( | ) |
Returns the String representation of this ContentType
static ContentType org.exolab.castor.xml.schema.ContentType.valueOf | ( | String | contentType | ) | throws IllegalArgumentException [static] |
Creates a new ContentType based on the given String
contentType | the type of the ContentType to create. The valid values are as follows: elemOnly, textOnly, mixed, empty, any, simple |
IllegalArgumentException | when the given type is not one of the possible valid values |
References org.exolab.castor.xml.schema.ContentType.any, org.exolab.castor.xml.schema.ContentType.ANY, org.exolab.castor.xml.schema.ContentType.ELEMENT_ONLY, org.exolab.castor.xml.schema.ContentType.elemOnly, org.exolab.castor.xml.schema.ContentType.empty, org.exolab.castor.xml.schema.ContentType.EMPTY, org.exolab.castor.xml.schema.ContentType.mixed, org.exolab.castor.xml.schema.ContentType.MIXED, org.exolab.castor.xml.schema.ContentType.SIMPLE, org.exolab.castor.xml.schema.ContentType.TEXT_ONLY, and org.exolab.castor.xml.schema.ContentType.textOnly.
final short org.exolab.castor.xml.schema.ContentType.ANY = 3 [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final ContentType org.exolab.castor.xml.schema.ContentType.any = new ContentType(ANY) [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final short org.exolab.castor.xml.schema.ContentType.ELEMENT_ONLY = 0 [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final ContentType org.exolab.castor.xml.schema.ContentType.elemOnly = new ContentType(ELEMENT_ONLY) [static] |
final ContentType org.exolab.castor.xml.schema.ContentType.empty = new ContentType(EMPTY) [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final short org.exolab.castor.xml.schema.ContentType.EMPTY = 2 [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final ContentType org.exolab.castor.xml.schema.ContentType.mixed = new ContentType(MIXED) [static] |
final short org.exolab.castor.xml.schema.ContentType.MIXED = 1 [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final short org.exolab.castor.xml.schema.ContentType.SIMPLE = 4 [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final short org.exolab.castor.xml.schema.ContentType.TEXT_ONLY = 5 [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().
final ContentType org.exolab.castor.xml.schema.ContentType.textOnly = new ContentType(TEXT_ONLY) [static] |
Referenced by org.exolab.castor.xml.schema.ContentType.valueOf().