Package com.helger.css.property
Class CSSPropertyEnums
java.lang.Object
com.helger.css.property.AbstractCSSProperty
com.helger.css.property.CSSPropertyEnum
com.helger.css.property.AbstractCSSPropertyEnums
com.helger.css.property.CSSPropertyEnums
- All Implemented Interfaces:
ICSSVersionAware,ICSSProperty
CSS property that is a list of enumeration entries (e.g. border-style)
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCSSPropertyEnums(ECSSProperty eProp, int nMinNumbers, int nMaxNumbers, Iterable<String> aEnumValues) CSSPropertyEnums(ECSSProperty eProp, int nMinNumbers, int nMaxNumbers, String... aEnumValues) CSSPropertyEnums(ECSSProperty eProp, ECSSVendorPrefix eVendorPrefix, ICSSPropertyCustomizer aCustomizer, int nMinNumbers, int nMaxNumbers, Iterable<String> aEnumValues) CSSPropertyEnums(ECSSProperty eProp, ECSSVendorPrefix eVendorPrefix, ICSSPropertyCustomizer aCustomizer, int nMinNumbers, int nMaxNumbers, String... aEnumValues) CSSPropertyEnums(ECSSProperty eProp, ICSSPropertyCustomizer aCustomizer, int nMinNumbers, int nMaxNumbers, Iterable<String> aEnumValues) CSSPropertyEnums(ECSSProperty eProp, ICSSPropertyCustomizer aCustomizer, int nMinNumbers, int nMaxNumbers, String... aEnumValues) -
Method Summary
Modifier and TypeMethodDescriptiongetClone(ECSSVendorPrefix eVendorPrefix) Get a clone of this property with the same base property but a different vendor prefix.getClone(ECSSProperty eProp) Get a clone of this property with another (or the same) base property.booleanisValidValue(String sValue) Check if the passed value is valid for this property according to the defined rule.Methods inherited from class com.helger.css.property.AbstractCSSPropertyEnums
equals, getMaximumArgumentCount, getMinimumArgumentCount, hashCode, toStringMethods inherited from class com.helger.css.property.CSSPropertyEnum
directGetEnumValuesMethods inherited from class com.helger.css.property.AbstractCSSProperty
getCustomizer, getMinimumCSSVersion, getProp, getPropertyName, getVendorPrefix, isValidPropertyValue, newValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.css.property.ICSSProperty
newImportantValue, newImportantValue, newValue, newValue, newValue
-
Constructor Details
-
CSSPropertyEnums
public CSSPropertyEnums(@Nonnull ECSSProperty eProp, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers, @Nonnull @Nonempty String... aEnumValues) -
CSSPropertyEnums
public CSSPropertyEnums(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers, @Nonnull @Nonempty String... aEnumValues) -
CSSPropertyEnums
public CSSPropertyEnums(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers, @Nonnull @Nonempty String... aEnumValues) -
CSSPropertyEnums
public CSSPropertyEnums(@Nonnull ECSSProperty eProp, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers, @Nonnull @Nonempty Iterable<String> aEnumValues) -
CSSPropertyEnums
public CSSPropertyEnums(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers, @Nonnull @Nonempty Iterable<String> aEnumValues) -
CSSPropertyEnums
public CSSPropertyEnums(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers, @Nonnull @Nonempty Iterable<String> aEnumValues)
-
-
Method Details
-
isValidValue
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 classCSSPropertyEnum- Parameters:
sValue- The value to check. May benull.- Returns:
trueif the value is valid,falseotherwise
-
getClone
Description copied from interface:ICSSPropertyGet a clone of this property with another (or the same) base property.- Specified by:
getClonein interfaceICSSProperty- Overrides:
getClonein classCSSPropertyEnum- Parameters:
eProp- The base property to use. May not benull.- Returns:
- Never
null
-
getClone
Description copied from interface:ICSSPropertyGet a clone of this property with the same base property but a different vendor prefix.- Specified by:
getClonein interfaceICSSProperty- Overrides:
getClonein classCSSPropertyEnum- Parameters:
eVendorPrefix- The new vendor prefix to use. May benull.- Returns:
- Never
null
-