org.apache.ws.jaxme.xs

Interface XSComplexType

public interface XSComplexType

Details of a complex type.

Author: Jochen Wiedmann

Method Summary
XSAttributable[]getAttributes()

Returns the complex types attributes.

XsComplexContentTypegetComplexContentType()

If the element hasn't simple content: Returns the element contents type.

XSTypegetExtendedType()

If the element is an extension: Returns the extended type.

XSParticlegetParticle()

If the element hasn't simple content: Returns the complex elements particle.

XSTypegetRestrictedType()

If the element is an restriction: Returns the restricted type.

XSSimpleContentTypegetSimpleContent()

If the complex type has simple content, returns the contents type.

booleanhasSimpleContent()

Returns whether the complex type has simple content.

booleanisElementOnly()

If the element hasn't simple content: Returns whether the elements content is elementOnly.

booleanisEmpty()

If the element hasn't simple content: Returns whether the elements content is empty.

booleanisExtension()

Returns whether the element is a extension of another element.

booleanisMixed()

If the element hasn't simple content: Returns whether the elements content is mixed.

booleanisRestriction()

Returns whether the element is a restriction of another element.

Method Detail

getAttributes

public XSAttributable[] getAttributes()

Returns the complex types attributes.

getComplexContentType

public XsComplexContentType getComplexContentType()

If the element hasn't simple content: Returns the element contents type.

Throws: IllegalStateException The element does not have complex content

See Also: EMPTY ELEMENT_ONLY MIXED isEmpty isElementOnly isMixed

getExtendedType

public XSType getExtendedType()

If the element is an extension: Returns the extended type.

Throws: IllegalStateException The element is no extension.

getParticle

public XSParticle getParticle()

If the element hasn't simple content: Returns the complex elements particle.

Throws: IllegalStateException The element has simple content

getRestrictedType

public XSType getRestrictedType()

If the element is an restriction: Returns the restricted type.

Throws: IllegalStateException The element is no restriction.

getSimpleContent

public XSSimpleContentType getSimpleContent()

If the complex type has simple content, returns the contents type. This is, of course, a simple type.

hasSimpleContent

public boolean hasSimpleContent()

Returns whether the complex type has simple content. If so, you may use the method getSimpleContent to fetch the simple contents type. If not, you may use getComplexContentType, isEmpty, isElementOnly, isMixed, and getParticle. The method getAttributes is always valid.

isElementOnly

public boolean isElementOnly()

If the element hasn't simple content: Returns whether the elements content is elementOnly. Shortcut for getComplexContentType().equals(ELEMENT_ONLY).

Throws: IllegalStateException The element does not have complex content

See Also: ELEMENT_ONLY

isEmpty

public boolean isEmpty()

If the element hasn't simple content: Returns whether the elements content is empty. Shortcut for getComplexContentType().equals(EMPTY).

Throws: IllegalStateException The element does not have complex content

See Also: EMPTY

isExtension

public boolean isExtension()

Returns whether the element is a extension of another element.

isMixed

public boolean isMixed()

If the element hasn't simple content: Returns whether the elements content is mixed. Shortcut for getComplexContentType().equals(MIXED).

Throws: IllegalStateException The element does not have complex content

See Also: MIXED

isRestriction

public boolean isRestriction()

Returns whether the element is a restriction of another element.