org.apache.ws.jaxme.xs.impl
Class XSTypeImpl.XSComplexTypeImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSTypeImpl.XSComplexTypeImpl
All Implemented Interfaces:
XSComplexType
Direct Known Subclasses:
XSTypeImpl.XSBasicComplexTypeImpl, XSTypeImpl.XSComplexContentImpl, XSTypeImpl.XSSimpleContentImpl
Enclosing class:
XSTypeImpl

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


Field Summary
protected  XSType owner
           
protected  XSType restrictedType
           
 
Constructor Summary
XSTypeImpl.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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.xs.XSComplexType
getAttributes, getComplexContentType, getParticle
 

Field Detail

owner

protected final XSType owner

restrictedType

protected XSType restrictedType
Constructor Detail

XSTypeImpl.XSComplexTypeImpl

public XSTypeImpl.XSComplexTypeImpl(XSType pOwner,
                                    XsTComplexType pType)
Method Detail

getXsTComplexType

protected XsTComplexType getXsTComplexType()

getOwner

protected XSType getOwner()

isSequence

public boolean isSequence()

isChoice

public boolean isChoice()

isAll

public boolean isAll()

hasSimpleContent

public boolean hasSimpleContent()
Description copied from interface: XSComplexType

Returns whether the complex type has simple content. If so, you may use the method XSComplexType.getSimpleContent() to fetch the simple contents type. If not, you may use XSComplexType.getComplexContentType(), XSComplexType.isEmpty(), XSComplexType.isElementOnly(), XSComplexType.isMixed(), and XSComplexType.getParticle(). The method XSComplexType.getAttributes() is always valid.

Specified by:
hasSimpleContent in interface XSComplexType

getSimpleContent

public XSSimpleContentType getSimpleContent()
Description copied from interface: XSComplexType

If the complex type has simple content, returns the contents type. This is, of course, a simple type.

Specified by:
getSimpleContent in interface XSComplexType

hasComplexContent

public boolean hasComplexContent()

isEmpty

public boolean isEmpty()
                throws org.xml.sax.SAXException
Description copied from interface: XSComplexType

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
Throws:
org.xml.sax.SAXException
See Also:
XsComplexContentType.EMPTY

isElementOnly

public boolean isElementOnly()
                      throws org.xml.sax.SAXException
Description copied from interface: XSComplexType

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
Throws:
org.xml.sax.SAXException
See Also:
XsComplexContentType.ELEMENT_ONLY

isMixed

public boolean isMixed()
                throws org.xml.sax.SAXException
Description copied from interface: XSComplexType

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
Throws:
org.xml.sax.SAXException
See Also:
XsComplexContentType.MIXED

validate

public void validate()
              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

isExtension

public boolean isExtension()
                    throws org.xml.sax.SAXException
Description copied from interface: XSComplexType

Returns whether the element is a extension of another element.

Specified by:
isExtension in interface XSComplexType
Throws:
org.xml.sax.SAXException

getExtendedType

public XSType getExtendedType()
                       throws org.xml.sax.SAXException
Description copied from interface: XSComplexType

If the element is an extension: Returns the extended type.

Specified by:
getExtendedType in interface XSComplexType
Throws:
org.xml.sax.SAXException

isRestriction

public boolean isRestriction()
Description copied from interface: XSComplexType

Returns whether the element is a restriction of another element.

Specified by:
isRestriction in interface XSComplexType

getRestrictedType

public XSType getRestrictedType()
Description copied from interface: XSComplexType

If the element is an restriction: Returns the restricted type.

Specified by:
getRestrictedType in interface XSComplexType