@NotThreadSafe public abstract class AbstractCSSProperty extends Object implements ICSSProperty
ICSSProperty| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCSSProperty(ECSSProperty eProp,
ECSSVendorPrefix eVendorPrefix,
ICSSPropertyCustomizer aCustomizer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ICSSPropertyCustomizer |
getCustomizer() |
int |
getMaximumArgumentCount() |
int |
getMinimumArgumentCount() |
ECSSVersion |
getMinimumCSSVersion() |
ECSSProperty |
getProp() |
String |
getPropertyName() |
ECSSVendorPrefix |
getVendorPrefix() |
int |
hashCode() |
static boolean |
isValidPropertyValue(String sValue) |
boolean |
isValidValue(String sValue)
Check if the passed value is valid for this property according to the
defined rule.
|
ICSSValue |
newValue(String sValue,
boolean bIsImportant)
Create a new CSS value with this property and the specified value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetClone, getClone, newImportantValue, newImportantValue, newValue, newValue, newValueprotected AbstractCSSProperty(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer)
eProp - The base property to use. May not be null.eVendorPrefix - The vendor prefix to be used. May be null.aCustomizer - The customizer to be used. May be null.@Nonnull public final ECSSVersion getMinimumCSSVersion()
getMinimumCSSVersion in interface ICSSVersionAwarenull.@Nonnull public final ECSSProperty getProp()
getProp in interface ICSSPropertynull.@Nullable public final ECSSVendorPrefix getVendorPrefix()
getVendorPrefix in interface ICSSPropertynull.@Nonnull @Nonempty public final String getPropertyName()
getPropertyName in interface ICSSPropertynull nor empty.@Nullable public final ICSSPropertyCustomizer getCustomizer()
getCustomizer in interface ICSSPropertynull.@Nonnegative @OverrideOnDemand public int getMinimumArgumentCount()
getMinimumArgumentCount in interface ICSSProperty@Nonnegative @OverrideOnDemand public int getMaximumArgumentCount()
getMaximumArgumentCount in interface ICSSProperty@OverridingMethodsMustInvokeSuper public boolean isValidValue(@Nullable String sValue)
ICSSPropertyisValidValue in interface ICSSPropertysValue - The value to check. May be null.true if the value is valid, false
otherwise@Nonnull public ICSSValue newValue(@Nonnull @Nonempty String sValue, boolean bIsImportant)
ICSSPropertynewValue in interface ICSSPropertysValue - The CSS String value. May neither be null nor empty.bIsImportant - true if it is an important value, false if
notnull.Copyright © 2014–2022 Philip Helger. All rights reserved.