|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.xs.types.AbstractBuiltinType org.apache.ws.jaxme.xs.types.XSAnyType
public class 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()
XSType
Returns whether the type is simple or not.
isSimple
in interface XSType
public XSSimpleType getSimpleType() throws org.xml.sax.SAXException
XSType
Returns the simple types information.
getSimpleType
in interface XSType
org.xml.sax.SAXException
public XSComplexType getComplexType() throws org.xml.sax.SAXException
XSType
Returns the complex types information.
getComplexType
in interface XSType
org.xml.sax.SAXException
public XsQName getName()
XSType
If the type is global: Returns the types name. Otherwise returns null.
getName
in interface XSType
public boolean isTopLevelObject()
XSObject
Returns 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 XSObject
public XSObject getParentObject()
XSObject
Returns either of the following:
getParentObject
in interface XSObject
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 boolean isEmpty()
XSComplexType
If the element hasn't simple content: Returns whether the
elements content is empty. Shortcut for
getComplexContentType().equals(EMPTY)
.
isEmpty
in interface XSComplexType
XsComplexContentType.EMPTY
public boolean isElementOnly()
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
XsComplexContentType.ELEMENT_ONLY
public boolean isMixed()
XSComplexType
If the element hasn't simple content: Returns whether the
elements content is mixed. Shortcut for
getComplexContentType().equals(MIXED)
.
isMixed
in interface XSComplexType
XsComplexContentType.MIXED
public XSParticle getParticle()
XSComplexType
If the element hasn't simple content: Returns the complex elements particle.
getParticle
in interface XSComplexType
public XSAttributable[] getAttributes()
XSComplexType
Returns the complex types attributes.
getAttributes
in interface XSComplexType
public boolean isExtension()
XSComplexType
Returns whether the element is a extension of another element.
isExtension
in interface XSComplexType
public XSType getExtendedType()
XSComplexType
If the element is an extension: Returns the extended type.
getExtendedType
in interface XSComplexType
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
public XsComplexContentType getComplexContentType()
XSComplexType
If the element hasn't simple content: Returns the element contents type.
getComplexContentType
in interface XSComplexType
XsComplexContentType.EMPTY
,
XsComplexContentType.ELEMENT_ONLY
,
XsComplexContentType.MIXED
,
XSComplexType.isEmpty()
,
XSComplexType.isElementOnly()
,
XSComplexType.isMixed()
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 isBuiltin()
XSType
Returns 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 |