public abstract class XSTypeImpl.XSComplexTypeImpl extends java.lang.Object implements XSComplexType
| Modifier and Type | Field and Description |
|---|---|
protected XSType |
owner |
protected XSType |
restrictedType |
| Constructor and Description |
|---|
XSTypeImpl.XSComplexTypeImpl(XSType pOwner,
XsTComplexType pType) |
| Modifier and Type | Method and Description |
|---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getComplexContentType, getParticlepublic XSTypeImpl.XSComplexTypeImpl(XSType pOwner, XsTComplexType pType)
protected XsTComplexType getXsTComplexType()
protected XSType getOwner()
public boolean isSequence()
public boolean isChoice()
public boolean isAll()
public boolean hasSimpleContent()
XSComplexTypeReturns 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.
hasSimpleContent in interface XSComplexTypepublic XSSimpleContentType getSimpleContent()
XSComplexTypeIf the complex type has simple content, returns the contents type. This is, of course, a simple type.
getSimpleContent in interface XSComplexTypepublic boolean hasComplexContent()
public boolean isEmpty()
throws org.xml.sax.SAXException
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is empty. Shortcut for
getComplexContentType().equals(EMPTY).
isEmpty in interface XSComplexTypeorg.xml.sax.SAXExceptionXsComplexContentType.EMPTYpublic boolean isElementOnly()
throws org.xml.sax.SAXException
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is elementOnly. Shortcut for
getComplexContentType().equals(ELEMENT_ONLY).
isElementOnly in interface XSComplexTypeorg.xml.sax.SAXExceptionXsComplexContentType.ELEMENT_ONLYpublic boolean isMixed()
throws org.xml.sax.SAXException
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is mixed. Shortcut for
getComplexContentType().equals(MIXED).
isMixed in interface XSComplexTypeorg.xml.sax.SAXExceptionXsComplexContentType.MIXEDpublic void validate()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic boolean isExtension()
throws org.xml.sax.SAXException
XSComplexTypeReturns whether the element is a extension of another element.
isExtension in interface XSComplexTypeorg.xml.sax.SAXExceptionpublic XSType getExtendedType() throws org.xml.sax.SAXException
XSComplexTypeIf the element is an extension: Returns the extended type.
getExtendedType in interface XSComplexTypeorg.xml.sax.SAXExceptionpublic boolean isRestriction()
XSComplexTypeReturns whether the element is a restriction of another element.
isRestriction in interface XSComplexTypepublic XSType getRestrictedType()
XSComplexTypeIf the element is an restriction: Returns the restricted type.
getRestrictedType in interface XSComplexType