| java.lang.Object org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl
XSSimpleTypeDecl | public class XSSimpleTypeDecl implements XSSimpleType,TypeInfo(Code) | | author: Sandy Gao, IBM author: Neeraj Bajaj, Sun Microsystems, inc. version: $Id: XSSimpleTypeDecl.java 548093 2007-06-17 18:36:08Z mrglavas $ |
Constructor Summary | |
public | XSSimpleTypeDecl() | protected | XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, short validateDV, short ordered, boolean bounded, boolean finite, boolean numeric, boolean isImmutable, short builtInKind) | protected | XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, String uri, short finalSet, boolean isImmutable, XSObjectList annotations, short builtInKind) | protected | XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, String uri, short finalSet, boolean isImmutable, XSObjectList annotations) | protected | XSSimpleTypeDecl(String name, String uri, short finalSet, XSSimpleTypeDecl itemType, boolean isImmutable, XSObjectList annotations) | protected | XSSimpleTypeDecl(String name, String uri, short finalSet, XSSimpleTypeDecl[] memberTypes, XSObjectList annotations) |
Method Summary | |
public void | applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) | void | applyFacets(XSFacets facets, short presentFacet, short fixedFacet, short patternType, ValidationContext context) | void | applyFacets1(XSFacets facets, short presentFacet, short fixedFacet) | void | applyFacets1(XSFacets facets, short presentFacet, short fixedFacet, short patternType) | public boolean | derivedFrom(String ancestorNS, String ancestorName, short derivation) | public boolean | derivedFromType(XSTypeDefinition ancestor, short derivation) | public ObjectList | getActualEnumeration() A list of actual enumeration values if it exists, otherwise an empty
ObjectList . | public XSObjectList | getAnnotations() [annotations]: a set of annotations for this simple type component if
it exists, otherwise an empty XSObjectList . | public boolean | getAnonymous() | public XSTypeDefinition | getBaseType() | public boolean | getBounded() Fundamental Facet: bounded. | public short | getBuiltInKind() Returns the closest built-in type category this type represents or
derived from. | public short | getDefinedFacets() [facets]: all facets defined on this type. | public ObjectList | getEnumerationItemTypeList() | public ShortList | getEnumerationTypeList() | public XSObjectList | getFacets() A list of constraining facets if it exists, otherwise an empty
XSObjectList . | public short | getFinal() | public boolean | getFinite() Fundamental Facet: cardinality. | public short | getFixedFacets() [facets]: all defined facets for this type which are fixed. | public XSSimpleTypeDefinition | getItemType() If variety is list the item type definition (an atomic or
union simple type definition) is available, otherwise
null . | public StringList | getLexicalEnumeration() A list of enumeration values if it exists, otherwise an empty
StringList . | public String | getLexicalFacetValue(short facetName) Convenience method. | public StringList | getLexicalPattern() A list of pattern values if it exists, otherwise an empty
StringList . | public Object | getMaxExclusiveValue() | public Object | getMaxInclusiveValue() | public XSObjectList | 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 . | public Object | getMinExclusiveValue() | public Object | getMinInclusiveValue() | public XSObjectList | getMultiValueFacets() A list of enumeration and pattern constraining facets if it exists,
otherwise an empty XSObjectList . | public String | getName() | public String | getNamespace() | public XSNamespaceItem | getNamespaceItem() | public boolean | getNumeric() Fundamental Facet: numeric. | public short | getOrdered() Fundamental Facet: ordered. | public short | getPrimitiveKind() | public XSSimpleTypeDefinition | 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 . | public short | getType() | public short | getTypeCategory() | public String | getTypeName() | public String | getTypeNamespace() | public short | getVariety() | public short | getWhitespace() | public boolean | isDOMDerivedFrom(String ancestorNS, String ancestorName, int derivationMethod) Checks if a type is derived from another by restriction, given the name
and namespace. | public boolean | isDefinedFacet(short facetName) Convenience method. | public boolean | isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) | public boolean | isEqual(Object value1, Object value2) | public boolean | isFinal(short derivation) | public boolean | isFixedFacet(short facetName) Convenience method. | public boolean | isIDType() | public boolean | isIdentical(Object value1, Object value2) | public static String | normalize(String content, short ws) | protected String | normalize(Object content, short ws) | void | reportError(String key, Object[] args) | public void | reset() | public void | setAnonymous(boolean anon) | protected XSSimpleTypeDecl | setListValues(String name, String uri, short finalSet, XSSimpleTypeDecl itemType, XSObjectList annotations) | protected XSSimpleTypeDecl | setRestrictionValues(XSSimpleTypeDecl base, String name, String uri, short finalSet, XSObjectList annotations) | protected XSSimpleTypeDecl | setUnionValues(String name, String uri, short finalSet, XSSimpleTypeDecl[] memberTypes, XSObjectList annotations) | public String | toString() | public Object | validate(String content, ValidationContext context, ValidatedInfo validatedInfo) | public Object | validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) | public void | validate(ValidationContext context, ValidatedInfo validatedInfo) | public ValidatedInfo | validateWithInfo(String content, ValidationContext context, ValidatedInfo validatedInfo) |
ANYATOMICTYPE_DT | final public static short ANYATOMICTYPE_DT(Code) | | |
DAYTIMEDURATION_DT | final public static short DAYTIMEDURATION_DT(Code) | | |
DERIVATION_ANY | final static int DERIVATION_ANY(Code) | | |
DERIVATION_EXTENSION | final static int DERIVATION_EXTENSION(Code) | | |
DERIVATION_LIST | final static int DERIVATION_LIST(Code) | | |
DERIVATION_RESTRICTION | final static int DERIVATION_RESTRICTION(Code) | | |
DERIVATION_UNION | final static int DERIVATION_UNION(Code) | | |
DV_ANYATOMICTYPE | final static short DV_ANYATOMICTYPE(Code) | | |
DV_ANYSIMPLETYPE | final static short DV_ANYSIMPLETYPE(Code) | | |
DV_ANYURI | final static short DV_ANYURI(Code) | | |
DV_BASE64BINARY | final static short DV_BASE64BINARY(Code) | | |
DV_BOOLEAN | final static short DV_BOOLEAN(Code) | | |
DV_DATE | final static short DV_DATE(Code) | | |
DV_DATETIME | final static short DV_DATETIME(Code) | | |
DV_DAYTIMEDURATION | final static short DV_DAYTIMEDURATION(Code) | | |
DV_DECIMAL | final static short DV_DECIMAL(Code) | | |
DV_DOUBLE | final static short DV_DOUBLE(Code) | | |
DV_DURATION | final static short DV_DURATION(Code) | | |
DV_ENTITY | final static short DV_ENTITY(Code) | | |
DV_FLOAT | final static short DV_FLOAT(Code) | | |
DV_GDAY | final static short DV_GDAY(Code) | | |
DV_GMONTH | final static short DV_GMONTH(Code) | | |
DV_GMONTHDAY | final static short DV_GMONTHDAY(Code) | | |
DV_GYEAR | final static short DV_GYEAR(Code) | | |
DV_GYEARMONTH | final static short DV_GYEARMONTH(Code) | | |
DV_HEXBINARY | final static short DV_HEXBINARY(Code) | | |
DV_ID | final static short DV_ID(Code) | | |
DV_IDREF | final static short DV_IDREF(Code) | | |
DV_INTEGER | final static short DV_INTEGER(Code) | | |
DV_LIST | final static short DV_LIST(Code) | | |
DV_NOTATION | final static short DV_NOTATION(Code) | | |
DV_PRECISIONDECIMAL | final static short DV_PRECISIONDECIMAL(Code) | | |
DV_QNAME | final static short DV_QNAME(Code) | | |
DV_STRING | final static short DV_STRING(Code) | | |
DV_TIME | final static short DV_TIME(Code) | | |
DV_UNION | final static short DV_UNION(Code) | | |
DV_YEARMONTHDURATION | final static short DV_YEARMONTHDURATION(Code) | | |
NORMALIZE_FULL | final static short NORMALIZE_FULL(Code) | | |
NORMALIZE_NONE | final static short NORMALIZE_NONE(Code) | | |
NORMALIZE_TRIM | final static short NORMALIZE_TRIM(Code) | | |
PRECISIONDECIMAL_DT | final public static short PRECISIONDECIMAL_DT(Code) | | |
SPECIAL_PATTERN_NAME | final static short SPECIAL_PATTERN_NAME(Code) | | |
SPECIAL_PATTERN_NCNAME | final static short SPECIAL_PATTERN_NCNAME(Code) | | |
SPECIAL_PATTERN_NMTOKEN | final static short SPECIAL_PATTERN_NMTOKEN(Code) | | |
SPECIAL_PATTERN_NONE | final static short SPECIAL_PATTERN_NONE(Code) | | |
SPECIAL_PATTERN_STRING | final static String[] SPECIAL_PATTERN_STRING(Code) | | |
URI_SCHEMAFORSCHEMA | final static String URI_SCHEMAFORSCHEMA(Code) | | |
YEARMONTHDURATION_DT | final public static short YEARMONTHDURATION_DT(Code) | | |
fDVNormalizeType | final static short[] fDVNormalizeType(Code) | | |
XSSimpleTypeDecl | public XSSimpleTypeDecl()(Code) | | |
XSSimpleTypeDecl | protected XSSimpleTypeDecl(XSSimpleTypeDecl base, String name, short validateDV, short ordered, boolean bounded, boolean finite, boolean numeric, boolean isImmutable, short builtInKind)(Code) | | |
applyFacets1 | void applyFacets1(XSFacets facets, short presentFacet, short fixedFacet)(Code) | | built-in derived types by restriction
|
applyFacets1 | void applyFacets1(XSFacets facets, short presentFacet, short fixedFacet, short patternType)(Code) | | built-in derived types by restriction
|
derivedFrom | public boolean derivedFrom(String ancestorNS, String ancestorName, short derivation)(Code) | | |
getActualEnumeration | public ObjectList getActualEnumeration()(Code) | | A list of actual enumeration values if it exists, otherwise an empty
ObjectList .
|
getAnnotations | public XSObjectList getAnnotations()(Code) | | [annotations]: a set of annotations for this simple type component if
it exists, otherwise an empty XSObjectList .
|
getAnonymous | public boolean getAnonymous()(Code) | | |
getBounded | public boolean getBounded()(Code) | | Fundamental Facet: bounded.
|
getBuiltInKind | public short getBuiltInKind()(Code) | | 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.
|
getDefinedFacets | public short getDefinedFacets()(Code) | | [facets]: all facets defined on this type. The value is a bit
combination of FACET_XXX constants of all defined facets.
|
getEnumerationItemTypeList | public ObjectList getEnumerationItemTypeList()(Code) | | A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns
null
|
getFacets | public XSObjectList getFacets()(Code) | | A list of constraining facets if it exists, otherwise an empty
XSObjectList . Note: This method must not be used to
retrieve values for enumeration and pattern
facets.
|
getFinal | public short getFinal()(Code) | | |
getFinite | public boolean getFinite()(Code) | | Fundamental Facet: cardinality.
|
getFixedFacets | public short getFixedFacets()(Code) | | [facets]: all defined facets for this type which are fixed.
|
getItemType | public XSSimpleTypeDefinition getItemType()(Code) | | If variety is list the item type definition (an atomic or
union simple type definition) is available, otherwise
null .
|
getLexicalEnumeration | public StringList getLexicalEnumeration()(Code) | | A list of enumeration values if it exists, otherwise an empty
StringList .
|
getLexicalFacetValue | public String getLexicalFacetValue(short facetName)(Code) | | Convenience method. Returns a value of a single constraining facet for
this simple type definition. This method must not be used to retrieve
values for enumeration and pattern facets.
Parameters: facetName - The name of the facet, i.e.FACET_LENGTH, FACET_TOTALDIGITS (seeXSConstants ). To retrieve the value for a pattern oran enumeration, see enumeration andpattern . A value of the facet specified in facetName forthis simple type definition or null . |
getLexicalPattern | public StringList getLexicalPattern()(Code) | | A list of pattern values if it exists, otherwise an empty
StringList .
|
getMaxExclusiveValue | public Object getMaxExclusiveValue()(Code) | | |
getMaxInclusiveValue | public Object getMaxInclusiveValue()(Code) | | |
getMemberTypes | public XSObjectList getMemberTypes()(Code) | | If variety is union the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList .
|
getMinExclusiveValue | public Object getMinExclusiveValue()(Code) | | |
getMinInclusiveValue | public Object getMinInclusiveValue()(Code) | | |
getMultiValueFacets | public XSObjectList getMultiValueFacets()(Code) | | A list of enumeration and pattern constraining facets if it exists,
otherwise an empty XSObjectList .
|
getNumeric | public boolean getNumeric()(Code) | | Fundamental Facet: numeric.
|
getOrdered | public short getOrdered()(Code) | | Fundamental Facet: ordered.
|
getPrimitiveKind | public short getPrimitiveKind()(Code) | | |
getPrimitiveType | public XSSimpleTypeDefinition getPrimitiveType()(Code) | | If variety is atomic the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null .
|
getType | public short getType()(Code) | | |
getTypeCategory | public short getTypeCategory()(Code) | | |
getVariety | public short getVariety()(Code) | | |
isDOMDerivedFrom | public boolean isDOMDerivedFrom(String ancestorNS, String ancestorName, int derivationMethod)(Code) | | Checks if a type is derived from another by restriction, given the name
and namespace. See:
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#TypeInfo-isDerivedFrom
Parameters: ancestorNS - The namspace of the ancestor type declaration Parameters: ancestorName - The name of the ancestor type declaration Parameters: derivationMethod - The derivation method boolean True if the ancestor type is derived from the reference type by the specifiied derivation method. |
isDefinedFacet | public boolean isDefinedFacet(short facetName)(Code) | | Convenience method. [Facets]: check whether a facet is defined on this
type.
Parameters: facetName - The name of the facet. True if the facet is defined, false otherwise. |
isDerivedFrom | public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod)(Code) | | |
isFinal | public boolean isFinal(short derivation)(Code) | | |
isFixedFacet | public boolean isFixedFacet(short facetName)(Code) | | Convenience method. [Facets]: check whether a facet is defined and
fixed on this type.
Parameters: facetName - The name of the facet. True if the facet is fixed, false otherwise. |
isIDType | public boolean isIDType()(Code) | | |
reset | public void reset()(Code) | | |
setAnonymous | public void setAnonymous(boolean anon)(Code) | | |
|
|