Class MaxInclusiveFacet


  • public class MaxInclusiveFacet
    extends ValueRangeFacet
    Implements the maxInclusive facet on a simple type
    • Constructor Detail

      • MaxInclusiveFacet

        public MaxInclusiveFacet()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: Facet
        Returns the name of this Facet
        Specified by:
        getName in class Facet
        Returns:
        the name of this Facet
      • testComparisonOK

        protected boolean testComparisonOK​(int comparisonResult)
        Description copied from class: ValueRangeFacet
        Test whether the comparison with the min or max value is a valid result
        Specified by:
        testComparisonOK in class ValueRangeFacet
        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