Class ConcreteType

java.lang.Object
com.sun.msv.datatype.xsd.XSDatatypeImpl
com.sun.msv.datatype.xsd.ConcreteType
All Implemented Interfaces:
DatabindableDatatype, XSDatatype, Serializable, org.relaxng.datatype.Datatype
Direct Known Subclasses:
BuiltinAtomicType, ListType, UnionType

public abstract class ConcreteType extends XSDatatypeImpl
base class for types that union/list/atomic.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getConcreteType

      public final ConcreteType getConcreteType()
      Description copied from class: XSDatatypeImpl
      gets the concrete type object of the restriction chain.
      Specified by:
      getConcreteType in class XSDatatypeImpl
    • isFinal

      public boolean isFinal(int derivationType)
      Description copied from interface: XSDatatype
      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 - one of pre-defined values (DERIVATION_BY_XXX).
    • _checkValid

      protected void _checkValid(String content, org.relaxng.datatype.ValidationContext context) throws org.relaxng.datatype.DatatypeException
      Description copied from class: XSDatatypeImpl
      actual 'meat' of the checkValid method
      Specified by:
      _checkValid in class XSDatatypeImpl
      Throws:
      org.relaxng.datatype.DatatypeException
    • _createJavaObject

      public Object _createJavaObject(String literal, org.relaxng.datatype.ValidationContext context)
      Specified by:
      _createJavaObject in class XSDatatypeImpl
    • serializeJavaObject

      public String serializeJavaObject(Object value, SerializationContext context)
      Description copied from interface: DatabindableDatatype
      converts a value object back to the lexical representation.

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

      context - 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:
      null if the given object is invalid with respect to this datatype.