|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.ContentType
org.exolab.castor.xml.schema.SimpleContent
public class SimpleContent
An extension of the ContentType to support simple content extension and restriction for complexTypes.
Field Summary |
---|
Fields inherited from class org.exolab.castor.xml.schema.ContentType |
---|
any, ANY, ELEMENT_ONLY, elemOnly, empty, EMPTY, mixed, MIXED, SIMPLE, TEXT_ONLY, textOnly |
Constructor Summary | |
---|---|
SimpleContent()
Creates a new SimpleContent |
|
SimpleContent(Schema schema,
java.lang.String typeName)
Creates a new SimpleContent |
|
SimpleContent(SimpleContent content)
Creates a new SimpleContent using the given SimpleContent. |
|
SimpleContent(SimpleType simpleType)
Creates a new SimpleContent |
Method Summary | |
---|---|
SimpleContent |
copy()
Creates a copy of this SimpleContent |
SimpleType |
getSimpleType()
Returns the simpleType that represents that contentType. |
java.lang.String |
getTypeName()
Returns the name of the associated type for this SimpleContent |
void |
setSimpleType(SimpleType simpleType)
Sets the simpleType that represents that contentType. |
Methods inherited from class org.exolab.castor.xml.schema.ContentType |
---|
getType, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleContent()
public SimpleContent(SimpleContent content)
content
- the SimpleContent to copy frompublic SimpleContent(SimpleType simpleType)
simpleType
- the simpleType of this SimpleContentpublic SimpleContent(Schema schema, java.lang.String typeName)
schema
- the associated parent SchematypeName
- the name of the base simpleType, or
complexType (must also be a SimpleContent).Method Detail |
---|
public SimpleContent copy()
public SimpleType getSimpleType()
public java.lang.String getTypeName()
public void setSimpleType(SimpleType simpleType)
simpleType
- the simpleType to set
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |