|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.xs.impl.XSTypeImpl.XSComplexTypeImpl
public abstract class XSTypeImpl.XSComplexTypeImpl
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 |
---|
protected final XSType owner
protected XSType restrictedType
Constructor Detail |
---|
public XSTypeImpl.XSComplexTypeImpl(XSType pOwner, XsTComplexType pType)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |