Package com.helger.css.property
Class CSSPropertyEnum
java.lang.Object
com.helger.css.property.AbstractCSSProperty
com.helger.css.property.CSSPropertyEnum
- All Implemented Interfaces:
ICSSVersionAware,ICSSProperty
- Direct Known Subclasses:
AbstractCSSPropertyEnums,CSSPropertyEnumOrColor,CSSPropertyEnumOrInt,CSSPropertyEnumOrNumber,CSSPropertyEnumOrNumbers,CSSPropertyEnumOrRect,CSSPropertyEnumOrURL
CSS property with a predefined list of possible values (e.g. "cursor")
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCSSPropertyEnum(ECSSProperty eProp) Deprecated.CSSPropertyEnum(ECSSProperty eProp, ECSSVendorPrefix eVendorPrefix, ICSSPropertyCustomizer aCustomizer, Iterable<String> aEnumValues) CSSPropertyEnum(ECSSProperty eProp, ECSSVendorPrefix eVendorPrefix, ICSSPropertyCustomizer aCustomizer, String... aEnumValues) CSSPropertyEnum(ECSSProperty eProp, ICSSPropertyCustomizer aCustomizer, Iterable<String> aEnumValues) CSSPropertyEnum(ECSSProperty eProp, ICSSPropertyCustomizer aCustomizer, String... aEnumValues) CSSPropertyEnum(ECSSProperty eProp, Iterable<String> aEnumValues) CSSPropertyEnum(ECSSProperty eProp, String... aEnumValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected final com.helger.commons.collection.impl.ICommonsSet<String> booleangetClone(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.inthashCode()booleanisValidValue(String sValue) Check if the passed value is valid for this property according to the defined rule.toString()Methods inherited from class com.helger.css.property.AbstractCSSProperty
getCustomizer, getMaximumArgumentCount, getMinimumArgumentCount, 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
-
CSSPropertyEnum
Deprecated. -
CSSPropertyEnum
-
CSSPropertyEnum
public CSSPropertyEnum(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty String... aEnumValues) -
CSSPropertyEnum
public CSSPropertyEnum(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty String... aEnumValues) -
CSSPropertyEnum
public CSSPropertyEnum(@Nonnull ECSSProperty eProp, @Nonnull @Nonempty Iterable<String> aEnumValues) -
CSSPropertyEnum
public CSSPropertyEnum(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty Iterable<String> aEnumValues) -
CSSPropertyEnum
public CSSPropertyEnum(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty Iterable<String> aEnumValues)
-
-
Method Details
-
directGetEnumValues
@Nonnull @ReturnsMutableObject("Design") protected final com.helger.commons.collection.impl.ICommonsSet<String> directGetEnumValues()- Returns:
- The Set with the enum values - only used for derived classes. Never
null.
-
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 classAbstractCSSProperty- 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.- 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.- Parameters:
eVendorPrefix- The new vendor prefix to use. May benull.- Returns:
- Never
null
-
equals
- Overrides:
equalsin classAbstractCSSProperty
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractCSSProperty
-
toString
- Overrides:
toStringin classAbstractCSSProperty
-