org.exolab.castor.xml.schema
Class SimpleContent
- java.io.Serializable
public class SimpleContent
implements java.io.Serializable
An extension of the ContentType to support simple content
extension and restriction for complexTypes.
$Revision: 1.1 $ $Date: 2003/03/03 17:44:01 $
ANY , ELEMENT_ONLY , EMPTY , MIXED , SIMPLE , TEXT_ONLY , any , elemOnly , empty , mixed , textOnly |
SimpleContent
public SimpleContent()
Creates a new SimpleContent
SimpleContent
public SimpleContent(Schema schema,
String typeName)
Creates a new SimpleContent
schema
- the associated parent SchematypeName
- the name of the base simpleType, or
complexType (must also be a SimpleContent).
SimpleContent
public SimpleContent(SimpleContent content)
Creates a new SimpleContent using the given SimpleContent.
This constructor will copy from the given SimpleContent.
content
- the SimpleContent to copy from
SimpleContent
public SimpleContent(SimpleType simpleType)
Creates a new SimpleContent
simpleType
- the simpleType of this SimpleContent
copy
public SimpleContent copy()
Creates a copy of this SimpleContent
- the new SimpleContent which is a copy of this SimpleContent
getSimpleType
public SimpleType getSimpleType()
Returns the simpleType that represents that contentType. This may
be null, if no simpleType has been set.
- the simpleType that represents that contentType.
getTypeName
public String getTypeName()
Returns the name of the associated type for this SimpleContent
- the associated type name for this SimpleContent.
setSimpleType
public void setSimpleType(SimpleType simpleType)
Sets the simpleType that represents that contentType.
simpleType
- the simpleType to set
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com