public class XSTypeImpl.XSSimpleContentImpl extends XSTypeImpl.XSComplexTypeImpl
extendedType, owner, restrictedType| Constructor and Description |
|---|
XSTypeImpl.XSSimpleContentImpl(XSType pOwner,
XsTComplexType pType,
XsESimpleContent pSimpleContent) |
| Modifier and Type | Method and Description |
|---|---|
XSAttributable[] |
getAttributes()
Returns the complex types attributes.
|
XsComplexContentType |
getComplexContentType()
If the element hasn't simple content: Returns the element contents
type.
|
XSParticle |
getParticle()
If the element hasn't simple content: Returns the complex
elements particle.
|
XSSimpleContentType |
getSimpleContent()
If the complex type has simple content, returns the contents
type.
|
boolean |
hasSimpleContent()
Returns whether the complex type has simple content.
|
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 |
isMixed()
If the element hasn't simple content: Returns whether the
elements content is mixed.
|
getExtendedType, getOwner, getRestrictedType, getXsTComplexType, hasComplexContent, isAll, isChoice, isExtension, isRestriction, isSequence, validatepublic XSTypeImpl.XSSimpleContentImpl(XSType pOwner, XsTComplexType pType, XsESimpleContent pSimpleContent) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic 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 XSComplexTypeisElementOnly in class XSTypeImpl.XSComplexTypeImplXsComplexContentType.ELEMENT_ONLYpublic boolean isEmpty()
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is empty. Shortcut for
getComplexContentType().equals(EMPTY).
isEmpty in interface XSComplexTypeisEmpty in class XSTypeImpl.XSComplexTypeImplXsComplexContentType.EMPTYpublic boolean isMixed()
XSComplexTypeIf the element hasn't simple content: Returns whether the
elements content is mixed. Shortcut for
getComplexContentType().equals(MIXED).
isMixed in interface XSComplexTypeisMixed in class XSTypeImpl.XSComplexTypeImplXsComplexContentType.MIXEDpublic 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 XSComplexTypehasSimpleContent in class XSTypeImpl.XSComplexTypeImplpublic XSSimpleContentType getSimpleContent()
XSComplexTypeIf the complex type has simple content, returns the contents type. This is, of course, a simple type.
getSimpleContent in interface XSComplexTypegetSimpleContent in class XSTypeImpl.XSComplexTypeImplpublic XSAttributable[] getAttributes()
XSComplexTypeReturns the complex types attributes.
public XSParticle getParticle()
XSComplexTypeIf the element hasn't simple content: Returns the complex elements particle.
public XsComplexContentType getComplexContentType()
XSComplexTypeIf the element hasn't simple content: Returns the element contents type.