org.exolab.castor.xml.schema
Class ContentType
java.lang.Object
org.exolab.castor.xml.schema.ContentType
- java.io.Serializable
public class ContentType
extends java.lang.Object
implements java.io.Serializable
An XML Schema ContentType
$Revision: 1.2 $ $Date: 2003/03/03 18:08:27 $
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
|
ANY
public static final short ANY
ELEMENT_ONLY
public static final short ELEMENT_ONLY
EMPTY
public static final short EMPTY
MIXED
public static final short MIXED
SIMPLE
public static final short SIMPLE
TEXT_ONLY
public static final short TEXT_ONLY
ContentType
protected ContentType(short type)
Creates a new ContentType.
getType
public short getType()
Returns the type of this ContentType
- the type of this ContentType
toString
public String toString()
Returns the String representation of this ContentType
- the String representation of this ContentType
valueOf
public static ContentType valueOf(String contentType)
throws IllegalArgumentException
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
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com