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, wait
getAttributes, getComplexContentType, getParticle
public XSTypeImpl.XSComplexTypeImpl(XSType pOwner, XsTComplexType pType)
protected XsTComplexType getXsTComplexType()
protected XSType getOwner()
public boolean isSequence()
public boolean isChoice()
public boolean isAll()
public boolean hasSimpleContent()
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.
hasSimpleContent
in interface XSComplexType
public XSSimpleContentType getSimpleContent()
XSComplexType
If the complex type has simple content, returns the contents type. This is, of course, a simple type.
getSimpleContent
in interface XSComplexType
public boolean hasComplexContent()
public boolean isEmpty() throws org.xml.sax.SAXException
XSComplexType
If the element hasn't simple content: Returns whether the
elements content is empty. Shortcut for
getComplexContentType().equals(EMPTY)
.
isEmpty
in interface XSComplexType
org.xml.sax.SAXException
XsComplexContentType.EMPTY
public boolean isElementOnly() throws org.xml.sax.SAXException
XSComplexType
If the element hasn't simple content: Returns whether the
elements content is elementOnly. Shortcut for
getComplexContentType().equals(ELEMENT_ONLY)
.
isElementOnly
in interface XSComplexType
org.xml.sax.SAXException
XsComplexContentType.ELEMENT_ONLY
public boolean isMixed() throws org.xml.sax.SAXException
XSComplexType
If the element hasn't simple content: Returns whether the
elements content is mixed. Shortcut for
getComplexContentType().equals(MIXED)
.
isMixed
in interface XSComplexType
org.xml.sax.SAXException
XsComplexContentType.MIXED
public void validate() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public boolean isExtension() throws org.xml.sax.SAXException
XSComplexType
Returns whether the element is a extension of another element.
isExtension
in interface XSComplexType
org.xml.sax.SAXException
public XSType getExtendedType() throws org.xml.sax.SAXException
XSComplexType
If the element is an extension: Returns the extended type.
getExtendedType
in interface XSComplexType
org.xml.sax.SAXException
public boolean isRestriction()
XSComplexType
Returns whether the element is a restriction of another element.
isRestriction
in interface XSComplexType
public XSType getRestrictedType()
XSComplexType
If the element is an restriction: Returns the restricted type.
getRestrictedType
in interface XSComplexType