|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.ContentType
public class ContentType
An XML Schema ContentType
Field Summary | |
---|---|
static ContentType |
any
|
static short |
ANY
|
static short |
ELEMENT_ONLY
|
static ContentType |
elemOnly
|
static ContentType |
empty
|
static short |
EMPTY
|
static ContentType |
mixed
|
static short |
MIXED
|
static short |
SIMPLE
|
static short |
TEXT_ONLY
|
static ContentType |
textOnly
|
Constructor Summary | |
---|---|
protected |
ContentType(short type)
Creates a new ContentType. |
Method Summary | |
---|---|
short |
getType()
Returns the type of this ContentType |
java.lang.String |
toString()
Returns the String representation of this ContentType |
static ContentType |
valueOf(java.lang.String contentType)
Creates a new ContentType based on the given String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short ELEMENT_ONLY
public static final short MIXED
public static final short EMPTY
public static final short ANY
public static final short SIMPLE
public static final short TEXT_ONLY
public static final ContentType elemOnly
public static final ContentType mixed
public static final ContentType empty
public static final ContentType any
public static final ContentType textOnly
Constructor Detail |
---|
protected ContentType(short type)
Method Detail |
---|
public short getType()
public java.lang.String toString()
toString
in class java.lang.Object
public static ContentType valueOf(java.lang.String contentType) throws java.lang.IllegalArgumentException
contentType
- the type of the ContentType to create.
The valid values are as follows: elemOnly, textOnly, mixed, empty, any, simple
java.lang.IllegalArgumentException
- when the given type is
not one of the possible valid values
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |