Class ValueRangeFacet

    • Constructor Detail

      • ValueRangeFacet

        public ValueRangeFacet()
    • Method Detail

      • getValue

        public UnicodeString getValue()
        Description copied from class: Facet
        Returns the lexical representation of the value of this facet
        Specified by:
        getValue in class Facet
        Returns:
        the value of this facet, as a string
      • setRequiredValue

        public void setRequiredValue​(AtomicValue value)
      • getRequiredValue

        public AtomicValue getRequiredValue()
      • testAtomicValue

        public boolean testAtomicValue​(AtomicValue value)
        Test whether an atomic value conforms to this facet
        Specified by:
        testAtomicValue in class Facet
        Parameters:
        value - the value to be tested
        Returns:
        true if the value conforms; false if it doesn't conform, or if the test fails
      • testComparisonOK

        protected abstract boolean testComparisonOK​(int comparisonResult)
        Test whether the comparison with the min or max value is a valid result
        Parameters:
        comparisonResult - the result of comparing the actual value with the specified min or max value, as defined using the compareTo() method
        Returns:
        true if the comparison is OK, that is, if the value conforms to the facet
      • getFacetAsFunctionItem

        public FunctionItem getFacetAsFunctionItem()
        Description copied from class: Facet
        Get a function item that represents this Facet schema component.
        Specified by:
        getFacetAsFunctionItem in class Facet