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
Version:
- Keith Visco
- Serialized Form
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
- 3
ELEMENT_ONLY
public static final short ELEMENT_ONLY
- 0
EMPTY
public static final short EMPTY
- 2
MIXED
public static final short MIXED
- 1
SIMPLE
public static final short SIMPLE
- 4
TEXT_ONLY
public static final short TEXT_ONLY
- 5
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