Package org.eclipse.wst.xml.xpath2.api.typesystem
public class ComplexTypeDefinition extends
Field Summary | |
public static short | CONTENT_ELEMENTRepresents an element-only content type. An element-only content type validates elements with children that conform to the supplied content model. |
public static short | CONTENT_EMPTYRepresents an empty content type. A content type with the distinguished value empty validates elements with no character or element information item children. |
public static short | CONTENT_MIXEDRepresents a mixed content type. |
public static short | CONTENT_SIMPLERepresents a simple content type. A content type which is simple validates elements with character-only children. |
Method Summary | |
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. |
public short | getContentType()[content type]: one of empty ( CONTENTTYPE_EMPTY), a simple
type definition (CONTENTTYPE_SIMPLE), mixed (
CONTENTTYPE_MIXED), or element-only (
CONTENTTYPE_ELEMENT). |
public short | getDerivationMethod()[derivation method]: either DERIVATION_EXTENSION,
DERIVATION_RESTRICTION, or DERIVATION_NONE
(see XSConstants). |
public short | getProhibitedSubstitutions()[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.SimpleTypeDefinition | getSimpleType()A simple type definition corresponding to a simple content model, otherwise null. |
public boolean | isProhibitedSubstitution(short restriction)[prohibited substitutions]: a subset of {extension, restriction} |
Field Detail |
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. |
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. |
public static short CONTENT_MIXED
| Represents a mixed content type. |
public static short CONTENT_SIMPLE
| Represents a simple content type. A content type which is simple validates elements with character-only children. |
Methods Detail |
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.
boolean
public short getContentType()
[content type]: one of empty (CONTENTTYPE_EMPTY), a simple
type definition (CONTENTTYPE_SIMPLE), mixed (
CONTENTTYPE_MIXED), or element-only (
CONTENTTYPE_ELEMENT).
short
public short getDerivationMethod()
[derivation method]: either DERIVATION_EXTENSION,
DERIVATION_RESTRICTION, or DERIVATION_NONE
(see XSConstants).
short
public short getProhibitedSubstitutions()
[prohibited substitutions]: A subset of {extension, restriction} or
DERIVATION_NONE represented as a bit flag (see
XSConstants).
short
public org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition getSimpleType()
A simple type definition corresponding to a simple content model,
otherwise null.
org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition
public boolean isProhibitedSubstitution(short restriction)
[prohibited substitutions]: a subset of {extension, restriction}
restriction - Extension or restriction constants (see XSConstants).
boolean - True if restriction is a prohibited substitution, otherwise false.