org.apache.ws.jaxme.xs.impl

Class XSTypeImpl.XSComplexTypeImpl

Enclosing Class:
XSTypeImpl
Implemented Interfaces:
XSComplexType
Known Direct Subclasses:
XSTypeImpl.XSBasicComplexTypeImpl, XSTypeImpl.XSComplexContentImpl, XSTypeImpl.XSSimpleContentImpl

public abstract class XSTypeImpl.XSComplexTypeImpl
extends java.lang.Object
implements XSComplexType

Field Summary

protected XSType
owner
protected XSType
restrictedType

Constructor Summary

XSComplexTypeImpl(XSType pOwner, XsTComplexType pType)

Method Summary

XSType
getExtendedType()
If the element is an extension: Returns the extended type.
protected XSType
getOwner()
XSType
getRestrictedType()
If the element is an restriction: Returns the restricted type.
XSSimpleContentType
getSimpleContent()
If the complex type has simple content, returns the contents type.
protected XsTComplexType
getXsTComplexType()
boolean
hasComplexContent()
boolean
hasSimpleContent()
Returns whether the complex type has simple content.
boolean
isAll()
boolean
isChoice()
boolean
isElementOnly()
If the element hasn't simple content: Returns whether the elements content is elementOnly.
boolean
isEmpty()
If the element hasn't simple content: Returns whether the elements content is empty.
boolean
isExtension()
Returns whether the element is a extension of another element.
boolean
isMixed()
If the element hasn't simple content: Returns whether the elements content is mixed.
boolean
isRestriction()
Returns whether the element is a restriction of another element.
boolean
isSequence()
void
validate()

Field Details

owner

protected final XSType owner

restrictedType

protected XSType restrictedType

Constructor Details

XSComplexTypeImpl

public XSComplexTypeImpl(XSType pOwner,
                         XsTComplexType pType)

Method Details

getExtendedType

public XSType getExtendedType()
            throws SAXException
If the element is an extension: Returns the extended type.
Specified by:
getExtendedType in interface XSComplexType

getOwner

protected XSType getOwner()

getRestrictedType

public XSType getRestrictedType()
If the element is an restriction: Returns the restricted type.
Specified by:
getRestrictedType in interface XSComplexType

getSimpleContent

public XSSimpleContentType getSimpleContent()
If the complex type has simple content, returns the contents type. This is, of course, a simple type.
Specified by:
getSimpleContent in interface XSComplexType

getXsTComplexType

protected XsTComplexType getXsTComplexType()

hasComplexContent

public boolean hasComplexContent()

hasSimpleContent

public boolean hasSimpleContent()
Specified by:
hasSimpleContent in interface XSComplexType

isAll

public boolean isAll()

isChoice

public boolean isChoice()

isElementOnly

public boolean isElementOnly()
            throws SAXException
If the element hasn't simple content: Returns whether the elements content is elementOnly. Shortcut for getComplexContentType().equals(ELEMENT_ONLY).
Specified by:
isElementOnly in interface XSComplexType

isEmpty

public boolean isEmpty()
            throws SAXException
If the element hasn't simple content: Returns whether the elements content is empty. Shortcut for getComplexContentType().equals(EMPTY).
Specified by:
isEmpty in interface XSComplexType

isExtension

public boolean isExtension()
            throws SAXException
Returns whether the element is a extension of another element.
Specified by:
isExtension in interface XSComplexType

isMixed

public boolean isMixed()
            throws SAXException
If the element hasn't simple content: Returns whether the elements content is mixed. Shortcut for getComplexContentType().equals(MIXED).
Specified by:
isMixed in interface XSComplexType

isRestriction

public boolean isRestriction()
Returns whether the element is a restriction of another element.
Specified by:
isRestriction in interface XSComplexType

isSequence

public boolean isSequence()

validate

public void validate()
            throws SAXException