Class ConcreteType

    • Constructor Detail

      • ConcreteType

        protected ConcreteType​(java.lang.String nsUri,
                               java.lang.String typeName,
                               WhiteSpaceProcessor whiteSpace)
      • ConcreteType

        protected ConcreteType​(java.lang.String nsUri,
                               java.lang.String typeName)
    • Method Detail

      • 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​(java.lang.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 java.lang.Object _createJavaObject​(java.lang.String literal,
                                                  org.relaxng.datatype.ValidationContext context)
        Specified by:
        _createJavaObject in class XSDatatypeImpl
      • serializeJavaObject

        public java.lang.String serializeJavaObject​(java.lang.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.