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


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



public class ComplexTypeDefinition
extends 


Field Summary

public static shortCONTENT_ELEMENT
     Represents an element-only content type. An element-only content type validates elements with children that conform to the supplied content model.
public static shortCONTENT_EMPTY
     Represents an empty content type. A content type with the distinguished value empty validates elements with no character or element information item children.
public static shortCONTENT_MIXED
     Represents a mixed content type.
public static shortCONTENT_SIMPLE
     Represents a simple content type. A content type which is simple validates elements with character-only children.

Method Summary

public booleangetAbstract()
     [abstract]: a boolean. Complex types for which abstract is true must not be used as the type definition for the validation of element information items.
public shortgetContentType()
     [content type]: one of empty (CONTENTTYPE_EMPTY), a simple type definition (CONTENTTYPE_SIMPLE), mixed ( CONTENTTYPE_MIXED), or element-only ( CONTENTTYPE_ELEMENT).
public shortgetDerivationMethod()
     [derivation method]: either DERIVATION_EXTENSION, DERIVATION_RESTRICTION, or DERIVATION_NONE (see XSConstants).
public shortgetProhibitedSubstitutions()
     [prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE represented as a bit flag (see XSConstants).
public org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinitiongetSimpleType()
     A simple type definition corresponding to a simple content model, otherwise null.
public booleanisProhibitedSubstitution(short restriction)
     [prohibited substitutions]: a subset of {extension, restriction}

Field Detail

CONTENT_ELEMENT

public static short CONTENT_ELEMENT

Represents an element-only content type. An element-only content type validates elements with children that conform to the supplied content model.

CONTENT_EMPTY

public static short CONTENT_EMPTY

Represents an empty content type. A content type with the distinguished value empty validates elements with no character or element information item children.

CONTENT_MIXED

public static short CONTENT_MIXED

Represents a mixed content type.

CONTENT_SIMPLE

public static short CONTENT_SIMPLE

Represents a simple content type. A content type which is simple validates elements with character-only children.

Methods Detail

getAbstract

public boolean getAbstract()

[abstract]: a boolean. Complex types for which abstract is true must not be used as the type definition for the validation of element information items.

Returns

boolean


getContentType

public short getContentType()

[content type]: one of empty (CONTENTTYPE_EMPTY), a simple type definition (CONTENTTYPE_SIMPLE), mixed ( CONTENTTYPE_MIXED), or element-only ( CONTENTTYPE_ELEMENT).

Returns

short


getDerivationMethod

public short getDerivationMethod()

[derivation method]: either DERIVATION_EXTENSION, DERIVATION_RESTRICTION, or DERIVATION_NONE (see XSConstants).

Returns

short


getProhibitedSubstitutions

public short getProhibitedSubstitutions()

[prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE represented as a bit flag (see XSConstants).

Returns

short


getSimpleType

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

A simple type definition corresponding to a simple content model, otherwise null.

Returns

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


isProhibitedSubstitution

public boolean isProhibitedSubstitution(short restriction)

[prohibited substitutions]: a subset of {extension, restriction}

Parameters

restriction - Extension or restriction constants (see XSConstants).

Returns

boolean - True if restriction is a prohibited substitution, otherwise false.