Top Description Fields Constructors Methods
com.sun.msv.datatype.xsd

public abstract Class ConcreteType

extends XSDatatypeImpl
Class Inheritance
Known Direct Subclasses
com.sun.msv.datatype.xsd.ListType, com.sun.msv.datatype.xsd.UnionType, com.sun.msv.datatype.xsd.BuiltinAtomicType
Imports
com.sun.msv.datatype.SerializationContext, org.relaxng.datatype.DatatypeException, .ValidationContext

base class for types that union/list/atomic.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.sun.msv.datatype.xsd.XSDatatypeImpl:
ERR_DUPLICATE_FACETERR_EMPTY_UNIONERR_ENUMERATIONERR_ENUMERATION_WITH_ARGERR_FACET_MUST_BE_NON_NEGATIVE_INTEGERERR_FACET_MUST_BE_POSITIVE_INTEGERERR_INAPPROPRIATE_FOR_TYPEERR_INCONSISTENT_FACETS_1ERR_INCONSISTENT_FACETS_2ERR_INVALID_BASE_TYPEERR_INVALID_ITEMTYPEERR_INVALID_MEMBER_TYPEERR_INVALID_VALUE_FOR_THIS_TYPEERR_INVALID_WHITESPACE_VALUEERR_LENGTHERR_LOOSENED_FACETERR_MAXLENGTHERR_MINLENGTHERR_NOT_APPLICABLE_FACETERR_OUT_OF_RANGEERR_OVERRIDING_FIXED_FACETERR_PARSE_ERRORERR_PATTERN_1ERR_PATTERN_MANYERR_SCALE_IS_GREATER_THAN_PRECISIONERR_TOO_MUCH_PRECISIONERR_TOO_MUCH_SCALEERR_X_AND_Y_ARE_EXCLUSIVEserializedValueCheckerwhiteSpace

Constructor Summary

AccessConstructor and Description
protected
ConcreteType(String nsUri, String typeName, WhiteSpaceProcessor whiteSpace)

protected
ConcreteType(String nsUri, String typeName)

Method Summary

Modifier and TypeMethod and Description
protected void
_checkValid(String content, ValidationContext context)

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl._checkValid.

actual 'meat' of the checkValid method
public Object
public final ConcreteType
getConcreteType()

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl.getConcreteType.

gets the concrete type object of the restriction chain.
public boolean
isFinal(int
one of pre-defined values (DERIVATION_BY_XXX).
derivationType
)

Implements com.sun.msv.datatype.xsd.XSDatatype.isFinal.

checks if this type is declared as final for the specified kind of derivation.
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.sun.msv.datatype.DatabindableDatatype.serializeJavaObject.

converts a value object back to the lexical representation.
Inherited from com.sun.msv.datatype.xsd.XSDatatypeImpl:
_createValuecheckFormatcheckValidcreateJavaObjectcreateStreamingValidatorcreateValuegetAncestorBuiltinTypegetApplicableFacetNamesgetFacetObjectgetIdTypegetNamegetNamespaceUriisAlwaysValidisContextDependentisDerivedTypeOfisDerivedTypeOfisValidlocalizelocalizelocalizelocalizelocalizeneedValueChecksameValuevalueHashCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.XSDatatypeImpl.serialVersionUID.

Constructor Detail

ConcreteTypeback to summary
protected ConcreteType(String nsUri, String typeName, WhiteSpaceProcessor whiteSpace)
ConcreteTypeback to summary
protected ConcreteType(String nsUri, String typeName)

Method Detail

_checkValidback to summary
protected void _checkValid(String content, ValidationContext context) throws DatatypeException

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl._checkValid.

Doc from com.sun.msv.datatype.xsd.XSDatatypeImpl._checkValid.

actual 'meat' of the checkValid method

_createJavaObjectback to summary
public Object _createJavaObject(String literal, ValidationContext context)

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl._createJavaObject.

getConcreteTypeback to summary
public final ConcreteType getConcreteType()

Implements abstract com.sun.msv.datatype.xsd.XSDatatypeImpl.getConcreteType.

Doc from com.sun.msv.datatype.xsd.XSDatatypeImpl.getConcreteType.

gets the concrete type object of the restriction chain.

isFinalback to summary
public boolean isFinal(int derivationType)

Implements com.sun.msv.datatype.xsd.XSDatatype.isFinal.

Doc from com.sun.msv.datatype.xsd.XSDatatype.isFinal.

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.

Parameters
derivationType:int

one of pre-defined values (DERIVATION_BY_XXX).

serializeJavaObjectback to summary
public String serializeJavaObject(Object value, SerializationContext context)

Implements com.sun.msv.datatype.DatabindableDatatype.serializeJavaObject.

Doc from com.sun.msv.datatype.DatabindableDatatype.serializeJavaObject.

converts a value object back to the lexical representation.

This method is a kind of the "reverse" function of the createJavaObject method.

Parameters
context: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.

Returns:String

null if the given object is invalid with respect to this datatype.