|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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()
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.EMPTY
public 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_ONLY
public 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.MIXED
public void validate()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public boolean isExtension()
throws org.xml.sax.SAXException
XSComplexTypeReturns whether the element is a extension of another element.
isExtension in interface XSComplexTypeorg.xml.sax.SAXException
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||