Package org.exolab.castor.xml.schema
Class SimpleContent
java.lang.Object
org.exolab.castor.xml.schema.ContentType
org.exolab.castor.xml.schema.SimpleContent
- All Implemented Interfaces:
Serializable
An extension of the ContentType to support simple content
extension and restriction for complexTypes.
- Version:
- $Revision: 5951 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimpleContentSimpleContent
(Schema schema, String typeName) Creates a new SimpleContentSimpleContent
(SimpleContent content) Creates a new SimpleContent using the given SimpleContent.SimpleContent
(SimpleType simpleType) Creates a new SimpleContent -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a copy of this SimpleContentReturns the simpleType that represents that contentType.Returns the name of the associated type for this SimpleContentvoid
setSimpleType
(SimpleType simpleType) Sets the simpleType that represents that contentType.Methods inherited from class org.exolab.castor.xml.schema.ContentType
getType, toString, valueOf
-
Constructor Details
-
SimpleContent
public SimpleContent()Creates a new SimpleContent -
SimpleContent
Creates a new SimpleContent using the given SimpleContent. This constructor will copy from the given SimpleContent.- Parameters:
content
- the SimpleContent to copy from
-
SimpleContent
Creates a new SimpleContent- Parameters:
simpleType
- the simpleType of this SimpleContent
-
SimpleContent
Creates a new SimpleContent- Parameters:
schema
- the associated parent SchematypeName
- the name of the base simpleType, or complexType (must also be a SimpleContent).
-
-
Method Details
-
copy
Creates a copy of this SimpleContent- Returns:
- the new SimpleContent which is a copy of this SimpleContent
-
getSimpleType
Returns the simpleType that represents that contentType. This may be null, if no simpleType has been set.- Returns:
- the simpleType that represents that contentType.
-
getTypeName
Returns the name of the associated type for this SimpleContent- Returns:
- the associated type name for this SimpleContent.
-
setSimpleType
Sets the simpleType that represents that contentType.- Parameters:
simpleType
- the simpleType to set
-