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

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSTypeImpl.XSComplexTypeImpl
      extended by org.apache.ws.jaxme.xs.impl.XSTypeImpl.XSSimpleContentImpl
All Implemented Interfaces:
XSComplexType
Enclosing class:
XSTypeImpl

public class XSTypeImpl.XSSimpleContentImpl
extends XSTypeImpl.XSComplexTypeImpl


Field Summary
 
Fields inherited from class org.apache.ws.jaxme.xs.impl.XSTypeImpl.XSComplexTypeImpl
owner, restrictedType
 
Constructor Summary
XSTypeImpl.XSSimpleContentImpl(XSType pOwner, XsTComplexType pType, XsESimpleContent pSimpleContent)
           
 
Method Summary
 XSAttributable[] getAttributes()
          Returns the complex types attributes.
 XsComplexContentType getComplexContentType()
          If the element hasn't simple content: Returns the element contents type.
 XSType getExtendedType()
          If the element is an extension: Returns the extended type.
 XSParticle getParticle()
          If the element hasn't simple content: Returns the complex elements particle.
 XSSimpleContentType getSimpleContent()
          If the complex type has simple content, returns the contents type.
 boolean hasSimpleContent()
          Returns whether the complex type has simple content.
 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.
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSTypeImpl.XSComplexTypeImpl
getOwner, getRestrictedType, getXsTComplexType, hasComplexContent, isAll, isChoice, isRestriction, isSequence, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSTypeImpl.XSSimpleContentImpl

public XSTypeImpl.XSSimpleContentImpl(XSType pOwner,
                                      XsTComplexType pType,
                                      XsESimpleContent pSimpleContent)
                               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

isElementOnly

public boolean isElementOnly()
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
Overrides:
isElementOnly in class XSTypeImpl.XSComplexTypeImpl
See Also:
XsComplexContentType.ELEMENT_ONLY

isEmpty

public boolean isEmpty()
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
Overrides:
isEmpty in class XSTypeImpl.XSComplexTypeImpl
See Also:
XsComplexContentType.EMPTY

isMixed

public boolean isMixed()
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
Overrides:
isMixed in class XSTypeImpl.XSComplexTypeImpl
See Also:
XsComplexContentType.MIXED

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
Overrides:
getExtendedType in class XSTypeImpl.XSComplexTypeImpl
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
Overrides:
isExtension in class XSTypeImpl.XSComplexTypeImpl
Throws:
org.xml.sax.SAXException

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
Overrides:
hasSimpleContent in class XSTypeImpl.XSComplexTypeImpl

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
Overrides:
getSimpleContent in class XSTypeImpl.XSComplexTypeImpl

getAttributes

public XSAttributable[] getAttributes()
Description copied from interface: XSComplexType

Returns the complex types attributes.


getParticle

public XSParticle getParticle()
Description copied from interface: XSComplexType

If the element hasn't simple content: Returns the complex elements particle.


getComplexContentType

public XsComplexContentType getComplexContentType()
Description copied from interface: XSComplexType

If the element hasn't simple content: Returns the element contents type.

See Also:
XsComplexContentType.EMPTY, XsComplexContentType.ELEMENT_ONLY, XsComplexContentType.MIXED, XSComplexType.isEmpty(), XSComplexType.isElementOnly(), XSComplexType.isMixed()