Package org.eclipse.wst.xml.xpath2.api.typesystem


org.eclipse.wst.xml.xpath2.api.typesystem
Class SimpleTypeDefinition



public class SimpleTypeDefinition
extends 


Field Summary

public static shortVARIETY_ABSENT
     The variety is absent for the anySimpleType definition.
public static shortVARIETY_ATOMIC
     <code>Atomic</code> type.
public static shortVARIETY_LIST
     <code>List</code> type.
public static shortVARIETY_UNION
     <code>Union</code> type.

Method Summary

public booleangetBounded()
     Fundamental Facet: bounded.
public shortgetBuiltInKind()
     Returns the closest built-in type category this type represents or derived from. For example, if this simple type is a built-in derived type integer the INTEGER_DV is returned. KILL!
public booleangetFinite()
     Fundamental Facet: cardinality.
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetItemType()
     If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null.
public java.util.ListgetMemberTypes()
     If variety is union the list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwise an empty XSObjectList.
public booleangetNumeric()
     Fundamental Facet: numeric.
public shortgetOrdered()
     Fundamental Facet: ordered.
public org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinitiongetPrimitiveType()
     If variety is atomic the primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwise null.
public shortgetVariety()
     [variety]: one of {atomic, list, union} or absent.

Field Detail

VARIETY_ABSENT

public static short VARIETY_ABSENT

The variety is absent for the anySimpleType definition.

VARIETY_ATOMIC

public static short VARIETY_ATOMIC

Atomic type.

VARIETY_LIST

public static short VARIETY_LIST

List type.

VARIETY_UNION

public static short VARIETY_UNION

Union type.

Methods Detail

getBounded

public boolean getBounded()

Fundamental Facet: bounded.

Returns

boolean


getBuiltInKind

public short getBuiltInKind()

Returns the closest built-in type category this type represents or derived from. For example, if this simple type is a built-in derived type integer the INTEGER_DV is returned. KILL!

Returns

short


getFinite

public boolean getFinite()

Fundamental Facet: cardinality.

Returns

boolean


getItemType

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getItemType()

If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null.

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition


getMemberTypes

public java.util.List getMemberTypes()

If variety is union the list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwise an empty XSObjectList.

Returns

java.util.List


getNumeric

public boolean getNumeric()

Fundamental Facet: numeric.

Returns

boolean


getOrdered

public short getOrdered()

Fundamental Facet: ordered.

Returns

short


getPrimitiveType

public org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition getPrimitiveType()

If variety is atomic the primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwise null.

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition


getVariety

public short getVariety()

[variety]: one of {atomic, list, union} or absent.

Returns

short