public interface ICSSProperty extends ICSSVersionAware, Serializable
CCSSProperties for a list of
default CSS properties| Modifier and Type | Method and Description |
|---|---|
ICSSProperty |
getClone(ECSSProperty eProp)
Get a clone of this property with another (or the same) base property.
|
ICSSProperty |
getClone(ECSSVendorPrefix eVendorPrefix)
Get a clone of this property with the same base property but a different
vendor prefix.
|
ICSSPropertyCustomizer |
getCustomizer() |
int |
getMaximumArgumentCount() |
int |
getMinimumArgumentCount() |
ECSSProperty |
getProp() |
String |
getPropertyName() |
ECSSVendorPrefix |
getVendorPrefix() |
boolean |
isValidValue(String sValue)
Check if the passed value is valid for this property according to the
defined rule.
|
default ICSSValue |
newImportantValue(ICSSNamedColor aColor)
Create a new important CSS value with this property and the specified named
color.
|
default ICSSValue |
newImportantValue(String sValue)
Create a new important CSS value with this property and the specified
value.
|
default ICSSValue |
newValue(ICSSNamedColor aColor)
Create a new CSS value with this property and the specified named color.
|
default ICSSValue |
newValue(ICSSNamedColor aColor,
boolean bImportant)
Create a new CSS value with this property and the specified named color.
|
default ICSSValue |
newValue(String sValue)
Create a new CSS value with this property and the specified value.
|
ICSSValue |
newValue(String sValue,
boolean bImportant)
Create a new CSS value with this property and the specified value.
|
getMinimumCSSVersion@Nonnull ECSSProperty getProp()
null.@Nullable ECSSVendorPrefix getVendorPrefix()
null.@Nonnull @Nonempty String getPropertyName()
null nor empty.@Nullable ICSSPropertyCustomizer getCustomizer()
null.@Nonnegative int getMinimumArgumentCount()
@Nonnegative int getMaximumArgumentCount()
boolean isValidValue(@Nullable String sValue)
sValue - The value to check. May be null.true if the value is valid, false
otherwise@Nonnull ICSSValue newValue(@Nonnull @Nonempty String sValue, boolean bImportant)
sValue - The CSS String value. May neither be null nor empty.bImportant - true if it is an important value, false if
notnull.@Nonnull default ICSSValue newValue(@Nonnull @Nonempty String sValue)
newValue (sValue, false).sValue - The CSS String value. May neither be null nor empty.null.@Nonnull default ICSSValue newImportantValue(@Nonnull @Nonempty String sValue)
newValue (sValue, true).sValue - The CSS String value. May neither be null nor empty.null.@Nonnull default ICSSValue newValue(@Nonnull ICSSNamedColor aColor, boolean bImportant)
aColor - The CSS color valuebImportant - true if it is an important value, false if
notnull.@Nonnull default ICSSValue newValue(@Nonnull ICSSNamedColor aColor)
newValue (aColor, false).aColor - The CSS color valuenull.@Nonnull default ICSSValue newImportantValue(@Nonnull ICSSNamedColor aColor)
newValue (aColor, true).aColor - The CSS color valuenull.@Nonnull ICSSProperty getClone(@Nonnull ECSSProperty eProp)
eProp - The base property to use. May not be null.null@Nonnull ICSSProperty getClone(@Nullable ECSSVendorPrefix eVendorPrefix)
eVendorPrefix - The new vendor prefix to use. May be null.nullCopyright © 2014–2018 Philip Helger. All rights reserved.