Class EnumerationFacet

    • Field Detail

      • values

        public final java.util.Set values
        set of valid values
    • Constructor Detail

      • EnumerationFacet

        protected EnumerationFacet​(java.lang.String nsUri,
                                   java.lang.String typeName,
                                   XSDatatypeImpl baseType,
                                   java.util.Collection _values,
                                   boolean _isFixed)
                            throws org.relaxng.datatype.DatatypeException
        Throws:
        org.relaxng.datatype.DatatypeException
    • Method Detail

      • _createValue

        public java.lang.Object _createValue​(java.lang.String literal,
                                             org.relaxng.datatype.ValidationContext context)
        Description copied from class: XSDatatypeImpl
        converts a whitespace-processed lexical value into the corresponding value object
        Specified by:
        _createValue in class XSDatatypeImpl
      • diagnoseByFacet

        protected void diagnoseByFacet​(java.lang.String content,
                                       org.relaxng.datatype.ValidationContext context)
                                throws org.relaxng.datatype.DatatypeException
        Specified by:
        diagnoseByFacet in class DataTypeWithFacet
        Throws:
        org.relaxng.datatype.DatatypeException