| Modifier and Type | Field and Description |
|---|---|
| public final XSDatatypeImpl | baseType
immediate base type, which may be a concrete type or DataTypeWithFacet |
| protected final ConcreteType | concreteType
base concrete type |
| public final String | facetName
name of this facet |
| public final boolean | isFacetFixed
a flag that indicates the facet is fixed (derived types cannot specify this value anymore) |
| private final boolean | needValueCheckFlag
a flag that indicates this type has value-constraint facet. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | DataTypeWithFacet(String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed)
constructor for facets other than WhiteSpaceFacet |
| pack-priv | DataTypeWithFacet(String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace)
constructor for WhiteSpaceFacet |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | _checkValid(String content, ValidationContext context)
Implements abstract com. |
| public final Object | _createJavaObject(String literal, ValidationContext context)
Implements abstract com. |
| public final String | convertToLexicalValue(Object o, SerializationContext
Context information that will be possibly used for the conversion.
Currently, this object is used only by QName, but may be extended
in the future. context)Implements com. |
| protected abstract void | |
| public final String | displayName()
Implements com. |
| public final XSDatatype | getBaseType()
Implements com. |
| public final ConcreteType | getConcreteType()
Implements abstract com. |
| public final DataTypeWithFacet | getFacetObject(String facetName)
Overrides com. Implements com. |
| public int | getIdType()
Overrides com. Implements org. |
| public final Class | getJavaObjectType()
Implements com. |
| public final int | getVariety()
Implements com. |
| public boolean | isContextDependent()
Overrides com. Implements org. |
| public final int | isFacetApplicable(String facetName)
Implements com. |
| public final boolean | isFinal(int
one of pre-defined values (DERIVATION_BY_XXX). derivationType)Implements com. |
| protected boolean | |
| public String | serializeJavaObject(Object value, SerializationContext
The context object is used to obtain information necessary to
serialize the value object. For example, QName type uses the context
to encode the URI into a prefix. context)Implements com. |
| baseType | back to summary |
|---|---|
| public final XSDatatypeImpl baseType immediate base type, which may be a concrete type or DataTypeWithFacet | |
| concreteType | back to summary |
|---|---|
| protected final ConcreteType concreteType base concrete type | |
| facetName | back to summary |
|---|---|
| public final String facetName name of this facet | |
| isFacetFixed | back to summary |
|---|---|
| public final boolean isFacetFixed a flag that indicates the facet is fixed (derived types cannot specify this value anymore) | |
| needValueCheckFlag | back to summary |
|---|---|
| private final boolean needValueCheckFlag a flag that indicates this type has value-constraint facet. this value is used to cache this flag. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| DataTypeWithFacet | back to summary |
|---|---|
| pack-priv DataTypeWithFacet(String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed) throws DatatypeException constructor for facets other than WhiteSpaceFacet | |
| DataTypeWithFacet | back to summary |
|---|---|
| pack-priv DataTypeWithFacet(String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace) throws DatatypeException constructor for WhiteSpaceFacet | |
| _checkValid | back to summary |
|---|---|
| protected final void _checkValid(String content, ValidationContext context) throws DatatypeException Implements abstract com. Doc from com. actual 'meat' of the checkValid method | |
| _createJavaObject | back to summary |
|---|---|
| public final Object _createJavaObject(String literal, ValidationContext context) Implements abstract com. | |
| convertToLexicalValue | back to summary |
|---|---|
| public final String convertToLexicalValue(Object o, SerializationContext context) Implements com. Doc from com. converts value object back to the corresponding value in the lexical space. This method does the reverse operation of the createValue method. The returned string is not necessarily the canonical representation. Also note that the implementation may accept invalid values without throwing IllegalArgumentException. To make sure that the result is actually a valid representation, call the isValid method.
Be careful not to confuse this method with
The serializeJavaObject method, which is defined in
the
| |
| diagnoseByFacet | back to summary |
|---|---|
| protected abstract void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException | |
| displayName | back to summary |
|---|---|
| public final String displayName() Implements com. Doc from com. gets the displayable name of this type. This method always return something. It is useful to provide a message to the user. This method is an ad-hoc method and there is no corresponding property in the spec. | |
| getBaseType | back to summary |
|---|---|
| public final XSDatatype getBaseType() Implements com. Doc from com. gets the base type of this type. This method returns null if this object represents the simple ur-type. This method is intended to capture the semantics of the base type definition property of the simple type component, but there is an important difference. Specifically, if you derive a type D from another type B, then calling D.getBaseType() does not necessarily return B. Instead, it may return an intermediate object (that represents a facet). Calling the getBaseType method recursively will eventually return B. | |
| getConcreteType | back to summary |
|---|---|
| public final ConcreteType getConcreteType() Implements abstract com. Doc from com. gets the concrete type object of the restriction chain. | |
| getFacetObject | back to summary |
|---|---|
| public final DataTypeWithFacet getFacetObject(String facetName) Overrides com. Implements com. Doc from com. gets the facet object that restricts the specified facet
| |
| getIdType | back to summary |
|---|---|
| public int getIdType() Overrides com. Implements org. Doc from com. A property for RELAX NG DTD compatibility datatypes.
| |
| getJavaObjectType | back to summary |
|---|---|
| public final Class Implements com. Doc from com. gets the type of the objects that are created by the createJavaObject method. | |
| getVariety | back to summary |
|---|---|
| public final int getVariety() Implements com. Doc from com. gets the variety of this simple type.
| |
| isContextDependent | back to summary |
|---|---|
| public boolean isContextDependent() Overrides com. Implements org. Doc from com. A property for RELAX NG DTD compatibility datatypes. Context-independent by default.
| |
| isFacetApplicable | back to summary |
|---|---|
| public final int isFacetApplicable(String facetName) Implements com. Doc from com. returns if the specified facet is applicable to this datatype.
| |
| isFinal | back to summary |
|---|---|
| public final boolean isFinal(int derivationType) Implements com. Doc from com. checks if this type is declared as final for the specified kind of derivation. In the terminology of the spec, this method can be used to examine the final property of this component.
| |
| needValueCheck | back to summary |
|---|---|
| protected boolean needValueCheck() Overrides com. | |
| serializeJavaObject | back to summary |
|---|---|
| public String serializeJavaObject(Object value, SerializationContext context) Implements com. Doc from com. converts a value object back to the lexical representation. This method is a kind of the "reverse" function of the createJavaObject method.
| |