Class CssBackgroundValidator

    • Field Detail

      • backgroundProperty

        private final java.lang.String backgroundProperty
    • Constructor Detail

      • CssBackgroundValidator

        public CssBackgroundValidator​(java.lang.String backgroundProperty)
        Creates a new CssBackgroundValidator instance.
        Parameters:
        backgroundProperty - is background property corresponding to current validator
    • 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
      • isValidProperty

        private boolean isValidProperty​(java.util.List<java.lang.String> propertyValues,
                                        int index)
      • checkMultiValuePositionXY

        private boolean checkMultiValuePositionXY​(java.util.List<java.lang.String> propertyValues,
                                                  int index)
      • isMultiValueAllowedForThisType

        private boolean isMultiValueAllowedForThisType()
      • isMultiValueAllowedForThisValue

        private static boolean isMultiValueAllowedForThisValue​(java.lang.String value)
      • isPropertyValueCorrespondsPropertyType

        private boolean isPropertyValueCorrespondsPropertyType​(java.lang.String value)