Modifier and Type | Class and Description |
---|---|
private abstract static class | |
pack-priv static class | XSSimpleTypeDecl.
A wrapper of ValidationContext, to provide a way of switching to a different Namespace declaration context. |
private static class | |
private static class |
Modifier and Type | Field and Description |
---|---|
pack-priv static final String | |
public static final short | |
public static final short | |
pack-priv static final int | |
pack-priv static final int | |
pack-priv static final int | |
pack-priv static final int | |
pack-priv static final int | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
protected static final short | |
public XSObjectList | |
private ObjectList | |
private XSObjectList | |
private boolean | |
pack-priv static final XSSimpleTypeDecl | |
pack-priv static final XSSimpleTypeDecl | |
private XSSimpleTypeDecl | |
private boolean | |
private short | |
pack-priv static final ValidationContext | fDummyContext
Validation context used to validate facet values. |
pack-priv static final short[] | |
private TypeValidator[] | |
pack-priv static final ValidationContext | |
private ValidatedInfo[] | |
private ObjectList | |
private int | |
private ShortList | |
private XSObjectListImpl | |
private short | |
private short | |
private boolean | |
private short | |
private int | |
private boolean | |
private XSSimpleTypeDecl | |
private int | |
private StringList | |
private StringList | |
private Object | |
private Object | |
private int | |
private XSSimpleTypeDecl[] | |
private Object | |
private Object | |
private int | |
private XSObjectListImpl | |
private XSNamespaceItem | |
private boolean | |
private short | |
private List | |
private List | |
private short | |
public XSAnnotation | |
private String | |
private int | |
private String | |
private short | |
private short | |
private short | |
private static final TypeValidator[] | |
public XSAnnotation | |
public XSAnnotation | |
public XSAnnotation | |
public XSAnnotation | |
public XSAnnotation | |
public XSAnnotation | |
public XSAnnotation | |
pack-priv static final short | |
pack-priv static final short | |
pack-priv static final short | |
public XSObjectListImpl | |
public static final short | |
pack-priv static final short | |
pack-priv static final short | |
pack-priv static final short | |
pack-priv static final short | |
pack-priv static final String[] | |
public XSAnnotation | |
pack-priv static final String | |
public XSAnnotation | |
pack-priv static final String[] | |
public static final short |
Access | Constructor and Description |
---|---|
public | |
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)
|
Modifier and Type | Method and Description |
---|---|
private void | |
public void | applyFacets(XSFacets
the value of all the facets facets, short bit combination value of the costraining facet
constants which are present. presentFacet, short bit combination value of the costraining facet
constants which are fixed. fixedFacet, ValidationContext the validation context context)Implements com. If <restriction> is chosen |
pack-priv void | applyFacets(XSFacets facets, short presentFacet, short fixedFacet, short patternType, ValidationContext context)
If <restriction> is chosen, or built-in derived types by restriction |
pack-priv void | applyFacets1(XSFacets facets, short presentFacet, short fixedFacet)
built-in derived types by restriction |
pack-priv void | applyFacets1(XSFacets facets, short presentFacet, short fixedFacet, short patternType)
built-in derived types by restriction |
private void | |
private void | |
private void | |
private short | |
public boolean | derivedFrom(String
An ancestor type namespace. ancestorNS, String An ancestor type name. ancestorName, short A bit combination representing a subset of {
derivation)DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.Implements com. Convenience method which checks if this type is derived from the given ancestor type. |
public boolean | derivedFromType(XSTypeDefinition
An ancestor type definition. ancestor, short A bit combination representing a subset of {
derivation)DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.Implements com. Convenience method which checks if this type is derived from the given
|
public ObjectList | getActualEnumeration()
A list of actual enumeration values if it exists, otherwise an empty
|
protected ValidatedInfo | |
private Object | getActualValue(Object content, ValidationContext context, ValidatedInfo validatedInfo, boolean needNormalize)
|
public XSObjectList | getAnnotations()
Implements com. [annotations]: a set of annotations for this simple type component if
it exists, otherwise an empty |
public boolean | getAnonymous()
Implements com. Convenience attribute. |
public XSTypeDefinition | getBaseType()
Implements com. {base type definition}: either a simple type definition or a complex type definition. |
public boolean | getBounded()
Implements com. Fundamental Facet: bounded. |
public short | getBuiltInKind()
Implements com. Returns the closest built-in type category this type represents or derived from. |
public short | getDefinedFacets()
Implements com. [facets]: all facets defined on this type. |
public ObjectList | getEnumerationItemTypeList()
A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns null |
public ShortList | |
public XSObject | getFacet(int facetType)
Implements com. A constraining facet object. |
public XSObjectList | getFacets()
Implements com. A list of constraining facets if it exists, otherwise an empty
|
public short | getFinal()
Implements com. For complex types the returned value is a bit combination of the subset
of { |
public boolean | getFinite()
Implements com. Fundamental Facet: cardinality. |
public short | getFixedFacets()
Implements com. [facets]: all defined facets for this type which are fixed. |
protected static TypeValidator[] | |
public XSSimpleTypeDefinition | getItemType()
Implements com. If variety is |
public StringList | getLexicalEnumeration()
Implements com. A list of enumeration values if it exists, otherwise an empty
|
public String | Returns: A value of the facet specified infacetName for
this simple type definition or null .The name of the facet, i.e.
facetName)FACET_LENGTH, FACET_TOTALDIGITS (see
XSConstants ). To retrieve the value for a pattern or
an enumeration, see enumeration and
pattern .Implements com. Convenience method. |
public StringList | getLexicalPattern()
Implements com. A list of pattern values if it exists, otherwise an empty
|
public Object | |
public Object | |
public XSObjectList | getMemberTypes()
Implements com. If variety is |
public Object | |
public Object | |
public XSObjectList | getMultiValueFacets()
Implements com. A list of enumeration and pattern constraining facets if it exists,
otherwise an empty |
public String | getName()
Implements com. The name of type |
public String | getNamespace()
Implements com. The [target namespace] of this object, or |
public XSNamespaceItem | getNamespaceItem()
Implements com. A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
|
public boolean | getNumeric()
Implements com. Fundamental Facet: numeric. |
public short | getOrdered()
Implements com. Fundamental Facet: ordered. |
private short | |
public short | getPrimitiveKind()
Implements com. return an ID representing the built-in primitive base type. |
public XSSimpleTypeDefinition | getPrimitiveType()
Implements com. If variety is |
public short | getType()
Implements com. The |
public short | getTypeCategory()
Implements com. Return whether this type definition is a simple type or complex type. |
public String | getTypeName()
Implements org. The name of a type declared for the associated element or attribute,
or |
public String | getTypeNamespace()
Implements org. The namespace of the type declared for the associated element or
attribute or |
public short | getVariety()
Implements com. [variety]: one of {atomic, list, union} or absent. |
public short | getWhitespace()
Implements com. Return the whitespace corresponding to this datatype. |
public boolean | Returns: True if the facet is defined, false otherwise.The name of the facet. facetName)Implements com. Convenience method. |
private boolean | Returns: boolean True if the type is derived by restriciton for the reference typeThe namspace of the ancestor type declaration ancestorNS, String The name of the ancestor type declaration ancestorName, XSTypeDefinition The reference type definition type)Checks if a type is derived from another by any combination of restriction, list ir union. |
private boolean | Returns: boolean True if the type is derived by list for the reference typeThe namspace of the ancestor type declaration ancestorNS, String The name of the ancestor type declaration ancestorName, XSTypeDefinition The reference type definition type)Checks if a type is derived from another by list. |
private boolean | Returns: boolean True if the type is derived by restriciton for the reference typeThe namspace of the ancestor type declaration ancestorNS, String The name of the ancestor type declaration ancestorName, XSTypeDefinition The reference type definition type)DOM Level 3 Checks if a type is derived from another by restriction. |
private boolean | Returns: boolean True if the type is derived by union for the reference typeThe namspace of the ancestor type declaration ancestorNS, String The name of the ancestor type declaration ancestorName, XSTypeDefinition The reference type definition type)Checks if a type is derived from another by union. |
public boolean | isDerivedFrom(String
the namespace of the other type definition. typeNamespaceArg, String the name of the other type definition. typeNameArg, int the type of derivation and conditions applied
between two types, as described in the list of constants provided
in this interface. derivationMethod)Implements org. This method returns if there is a derivation between the reference
type definition, i.e. the |
public boolean | Returns: boolean True if the ancestor type is derived from the reference type by the specifiied derivation method.The namspace of the ancestor type declaration ancestorNS, String The name of the ancestor type declaration ancestorName, int The derivation method derivationMethod)Checks if a type is derived from another by restriction, given the name and namespace. |
public boolean | isEqual(Object
the first value value1, Object the second value value2)Implements com. Check whether two actual values are equal. |
public boolean | isFinal(short
Extension, restriction, list, union constants
(defined in derivation)XSConstants ).Implements com. {final}. |
public boolean | Returns: True if the facet is fixed, false otherwise.The name of the facet. facetName)Implements com. Convenience method. |
public boolean | |
public boolean | isIDType()
Implements com. Check whether this type is or is derived from ID. Revisit this method makes ID special, which is not a good design. |
public static String | |
protected String | |
pack-priv void | |
public void | |
public void | |
private void | |
private void | |
protected void | |
protected XSSimpleTypeDecl | setListValues(String name, String uri, short finalSet, XSSimpleTypeDecl itemType, XSObjectList annotations)
|
public void | |
private void | |
private void | |
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)
|
private boolean | |
public String | |
public Object | validate(String
the string value that needs to be validated content, ValidationContext the validation context context, ValidatedInfo used to store validation result validatedInfo)Implements com. validate a value, and return the compiled form |
public Object | validate(Object
the string value that needs to be validated content, ValidationContext the validation context context, ValidatedInfo used to store validation result validatedInfo)Implements com. validate a value, and return the compiled form |
public void | validate(ValidationContext
the validation context context, ValidatedInfo used to provide the actual value and member types validatedInfo)Implements com. validate an actual value against this DV |
public ValidatedInfo | validateWithInfo(String content, ValidationContext context, ValidatedInfo validatedInfo)
validate a value, and return the compiled form |
private String |