Package com.helger.css.property
Interface ICSSProperty
- All Superinterfaces:
ICSSVersionAware
- All Known Implementing Classes:
AbstractCSSProperty,AbstractCSSPropertyEnums,CSSPropertyColor,CSSPropertyColors,CSSPropertyDouble,CSSPropertyEnum,CSSPropertyEnumOrColor,CSSPropertyEnumOrColors,CSSPropertyEnumOrInt,CSSPropertyEnumOrNumber,CSSPropertyEnumOrNumbers,CSSPropertyEnumOrRect,CSSPropertyEnumOrURL,CSSPropertyEnums,CSSPropertyFree,CSSPropertyLong,CSSPropertyNumber,CSSPropertyNumbers,CSSPropertyURL
Base interface for a single CSS property.
- Author:
- Philip Helger
- See Also:
-
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.intintgetProp()booleanisValidValue(String sValue) Check if the passed value is valid for this property according to the defined rule.default ICSSValuenewImportantValue(ICSSNamedColor aColor) Create a new important CSS value with this property and the specified named color.default ICSSValuenewImportantValue(String sValue) Create a new important CSS value with this property and the specified value.default ICSSValuenewValue(ICSSNamedColor aColor) Create a new CSS value with this property and the specified named color.default ICSSValuenewValue(ICSSNamedColor aColor, boolean bImportant) Create a new CSS value with this property and the specified named color.default ICSSValueCreate a new CSS value with this property and the specified value.Create a new CSS value with this property and the specified value.Methods inherited from interface com.helger.css.ICSSVersionAware
getMinimumCSSVersion
-
Method Details
-
getProp
- Returns:
- The underlying base property. Never
null.
-
getVendorPrefix
- Returns:
- The vendor prefix to be used. May be
null. - Since:
- 3.9.0
-
getPropertyName
- Returns:
- The property name including an eventually contained vendor prefix.
Neither
nullnor empty. - Since:
- 3.9.0
-
getCustomizer
- Returns:
- The CSS customizer assigned to this property. May be
null.
-
getMinimumArgumentCount
- Returns:
- The minimum number of arguments for this property.
- Since:
- 3.7.4
-
getMaximumArgumentCount
- Returns:
- The maximum number of arguments for this property.
- Since:
- 3.7.4
-
isValidValue
Check if the passed value is valid for this property according to the defined rule.- Parameters:
sValue- The value to check. May benull.- Returns:
trueif the value is valid,falseotherwise
-
newValue
Create a new CSS value with this property and the specified value.- Parameters:
sValue- The CSS String value. May neither benullnor empty.bImportant-trueif it is an important value,falseif not- Returns:
- Never
null.
-
newValue
Create a new CSS value with this property and the specified value. This is a shortcut fornewValue (sValue, false).- Parameters:
sValue- The CSS String value. May neither benullnor empty.- Returns:
- Never
null.
-
newImportantValue
Create a new important CSS value with this property and the specified value. This is a shortcut fornewValue (sValue, true).- Parameters:
sValue- The CSS String value. May neither benullnor empty.- Returns:
- Never
null.
-
newValue
Create a new CSS value with this property and the specified named color.- Parameters:
aColor- The CSS color valuebImportant-trueif it is an important value,falseif not- Returns:
- Never
null.
-
newValue
Create a new CSS value with this property and the specified named color. This is a shortcut fornewValue (aColor, false).- Parameters:
aColor- The CSS color value- Returns:
- Never
null.
-
newImportantValue
Create a new important CSS value with this property and the specified named color. This is a shortcut fornewValue (aColor, true).- Parameters:
aColor- The CSS color value- Returns:
- Never
null.
-
getClone
Get 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
Get 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 - Since:
- 3.9.0
-