java.io.Serializable
SimpleContent
public class ContentType
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
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 |
Modifier | Constructor | Description |
---|---|---|
protected |
ContentType(short type) |
Creates a new ContentType.
|
Modifier and Type | Method | Description |
---|---|---|
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
|
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
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 valuesIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com