Package com.helger.css.property
Class CSSPropertyColors
- java.lang.Object
-
- com.helger.css.property.AbstractCSSProperty
-
- com.helger.css.property.CSSPropertyColors
-
- All Implemented Interfaces:
ICSSVersionAware,ICSSProperty
@NotThreadSafe public class CSSPropertyColors extends AbstractCSSProperty
CSS property that is a list of color values (e.g. border-color)- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CSSPropertyColors(ECSSProperty eProp, int nMinArgCount, int nMaxArgCount)CSSPropertyColors(ECSSProperty eProp, ECSSVendorPrefix eVendorPrefix, ICSSPropertyCustomizer aCustomizer, int nMinArgCount, int nMaxArgCount)CSSPropertyColors(ECSSProperty eProp, ICSSPropertyCustomizer aCustomizer, int nMinArgCount, int nMaxArgCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CSSPropertyColorsgetClone(ECSSVendorPrefix eVendorPrefix)Get a clone of this property with the same base property but a different vendor prefix.CSSPropertyColorsgetClone(ECSSProperty eProp)Get a clone of this property with another (or the same) base property.intgetMaximumArgumentCount()intgetMinimumArgumentCount()inthashCode()booleanisValidValue(String sValue)Check if the passed value is valid for this property according to the defined rule.StringtoString()-
Methods inherited from class com.helger.css.property.AbstractCSSProperty
getCustomizer, getMinimumCSSVersion, getProp, getPropertyName, getVendorPrefix, isValidPropertyValue, newValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.css.property.ICSSProperty
newImportantValue, newImportantValue, newValue, newValue, newValue
-
-
-
-
Constructor Detail
-
CSSPropertyColors
public CSSPropertyColors(@Nonnull ECSSProperty eProp, @Nonnegative int nMinArgCount, @Nonnegative int nMaxArgCount)
-
CSSPropertyColors
public CSSPropertyColors(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnegative int nMinArgCount, @Nonnegative int nMaxArgCount)
-
CSSPropertyColors
public CSSPropertyColors(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnegative int nMinArgCount, @Nonnegative int nMaxArgCount)
-
-
Method Detail
-
getMinimumArgumentCount
@Nonnegative public final int getMinimumArgumentCount()
- Specified by:
getMinimumArgumentCountin interfaceICSSProperty- Overrides:
getMinimumArgumentCountin classAbstractCSSProperty- Returns:
- The minimum number of arguments for this property.
-
getMaximumArgumentCount
@Nonnegative public final int getMaximumArgumentCount()
- Specified by:
getMaximumArgumentCountin interfaceICSSProperty- Overrides:
getMaximumArgumentCountin classAbstractCSSProperty- Returns:
- The maximum number of arguments for this property.
-
isValidValue
@OverridingMethodsMustInvokeSuper public boolean isValidValue(@Nullable String sValue)
Description copied from interface:ICSSPropertyCheck if the passed value is valid for this property according to the defined rule.- Specified by:
isValidValuein interfaceICSSProperty- Overrides:
isValidValuein classAbstractCSSProperty- Parameters:
sValue- The value to check. May benull.- Returns:
trueif the value is valid,falseotherwise
-
getClone
@Nonnull public CSSPropertyColors getClone(@Nonnull ECSSProperty eProp)
Description copied from interface:ICSSPropertyGet a clone of this property with another (or the same) base property.- Parameters:
eProp- The base property to use. May not benull.- Returns:
- Never
null
-
getClone
@Nonnull public CSSPropertyColors getClone(@Nullable ECSSVendorPrefix eVendorPrefix)
Description copied from interface:ICSSPropertyGet a clone of this property with the same base property but a different vendor prefix.- Parameters:
eVendorPrefix- The new vendor prefix to use. May benull.- Returns:
- Never
null
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractCSSProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCSSProperty
-
toString
public String toString()
- Overrides:
toStringin classAbstractCSSProperty
-
-