|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.xs.types.AbstractBuiltinType
org.apache.ws.jaxme.xs.types.XSAnyType
The "anyType" is a type with arbitrary content.
| Method Summary | |
XSAttributable[] |
getAttributes()
Returns the complex types attributes. |
XsComplexContentType |
getComplexContentType()
If the element hasn't simple content: Returns the element contents type. |
XSComplexType |
getComplexType()
Returns the complex types information. |
XSType |
getExtendedType()
If the element is an extension: Returns the extended type. |
static XSAnyType |
getInstance()
|
XsQName |
getName()
If the type is global: Returns the types name. |
XSObject |
getParentObject()
Returns either of the following: If the object is the schema itself, returns null. |
XSParticle |
getParticle()
If the element hasn't simple content: Returns the complex elements particle. |
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. |
XSSimpleType |
getSimpleType()
Returns the simple types information. |
boolean |
hasSimpleContent()
Returns whether the complex type has simple content. |
boolean |
isBuiltin()
Returns whether the type is a builtin type of XML Schema. |
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 |
isSimple()
Returns whether the type is simple or not. |
boolean |
isTopLevelObject()
Returns whether the object is a top-level object. |
| Methods inherited from class org.apache.ws.jaxme.xs.types.AbstractBuiltinType |
getAnnotations, getLocator, getOpenAttributes, getSchemaHeader, getXSSchema, isGlobal, setGlobal, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final XSAnyType getInstance()
public boolean isSimple()
XSTypeReturns whether the type is simple or not.
isSimple in interface XSType
public XSSimpleType getSimpleType()
throws org.xml.sax.SAXException
XSTypeReturns the simple types information.
getSimpleType in interface XSTypeorg.xml.sax.SAXException
public XSComplexType getComplexType()
throws org.xml.sax.SAXException
XSTypeReturns the complex types information.
getComplexType in interface XSTypeorg.xml.sax.SAXExceptionpublic XsQName getName()
XSTypeIf the type is global: Returns the types name. Otherwise returns null.
getName in interface XSTypepublic boolean isTopLevelObject()
XSObjectReturns whether the object is a top-level object. This is the case for the XsESchema itself and for all its childs only.
isTopLevelObject in interface XSObjectpublic XSObject getParentObject()
XSObjectReturns either of the following:
getParentObject in interface XSObjectpublic 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 boolean isEmpty()
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is empty. Shortcut for
getComplexContentType().equals(EMPTY).
isEmpty in interface XSComplexTypeXsComplexContentType.EMPTYpublic boolean isElementOnly()
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is elementOnly. Shortcut for
getComplexContentType().equals(ELEMENT_ONLY).
isElementOnly in interface XSComplexTypeXsComplexContentType.ELEMENT_ONLYpublic boolean isMixed()
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is mixed. Shortcut for
getComplexContentType().equals(MIXED).
isMixed in interface XSComplexTypeXsComplexContentType.MIXEDpublic XSParticle getParticle()
XSComplexTypeIf the element hasn't simple content: Returns the complex elements particle.
getParticle in interface XSComplexTypepublic XSAttributable[] getAttributes()
XSComplexTypeReturns the complex types attributes.
getAttributes in interface XSComplexTypepublic boolean isExtension()
XSComplexTypeReturns whether the element is a extension of another element.
isExtension in interface XSComplexTypepublic XSType getExtendedType()
XSComplexTypeIf the element is an extension: Returns the extended type.
getExtendedType in interface XSComplexTypepublic 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 XSComplexTypepublic XsComplexContentType getComplexContentType()
XSComplexTypeIf the element hasn't simple content: Returns the element contents type.
getComplexContentType in interface XSComplexTypeXsComplexContentType.EMPTY,
XsComplexContentType.ELEMENT_ONLY,
XsComplexContentType.MIXED,
XSComplexType.isEmpty(),
XSComplexType.isElementOnly(),
XSComplexType.isMixed()public 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 isBuiltin()
XSTypeReturns whether the type is a builtin type of XML Schema.
isBuiltin in interface XSType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||