org.apache.ws.jaxme.xs

Interface XSType

public interface XSType extends XSOpenAttrs

Interface of an XML Schema type. Includes complex and simple types.

Author: Jochen Wiedmann

Method Summary
XSAnnotation[]getAnnotations()

Returns the array of annotations.

XSComplexTypegetComplexType()

Returns the complex types information.

XsQNamegetName()

If the type is global: Returns the types name.

XsSchemaHeadergetSchemaHeader()

Returns the types syntactical context or null, if no such context is available.

XSSimpleTypegetSimpleType()

Returns the simple types information.

booleanisBuiltin()

Returns whether the type is a builtin type of XML Schema.

booleanisGlobal()

Returns whether the type is global or not.

booleanisSimple()

Returns whether the type is simple or not.

voidsetGlobal(boolean pGlobal)

Sets whether the type is global or not.

Method Detail

getAnnotations

public XSAnnotation[] getAnnotations()

Returns the array of annotations.

getComplexType

public XSComplexType getComplexType()

Returns the complex types information.

Throws: IllegalStateException The type is simple

getName

public XsQName getName()

If the type is global: Returns the types name. Otherwise returns null.

getSchemaHeader

public XsSchemaHeader getSchemaHeader()

Returns the types syntactical context or null, if no such context is available.

getSimpleType

public XSSimpleType getSimpleType()

Returns the simple types information.

Throws: IllegalStateException The type is complex.

isBuiltin

public boolean isBuiltin()

Returns whether the type is a builtin type of XML Schema.

isGlobal

public boolean isGlobal()

Returns whether the type is global or not.

isSimple

public boolean isSimple()

Returns whether the type is simple or not.

setGlobal

public void setGlobal(boolean pGlobal)

Sets whether the type is global or not.