Class CssNumberValueValidator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean allowedNegative  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValid​(java.lang.String objectString)
      Checks if a value is a valid data type (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • allowedNegative

        private final boolean allowedNegative
    • Constructor Detail

      • CssNumberValueValidator

        public CssNumberValueValidator​(boolean allowedNegative)
        Creates a new CssNumberValueValidator instance.
        Parameters:
        allowedNegative - is negative value allowed
    • Method Detail

      • isValid

        public boolean isValid​(java.lang.String objectString)
        Checks if a value is a valid data type (e.g. a color, an identifier,...).
        Specified by:
        isValid in interface ICssDataTypeValidator
        Parameters:
        objectString - the value
        Returns:
        true, if the value is a valid data type