@NotThreadSafe public abstract class AbstractCSSProperty extends Object implements ICSSProperty
ICSSProperty
Modifier | Constructor and Description |
---|---|
protected |
AbstractCSSProperty(ECSSProperty eProp,
ECSSVendorPrefix eVendorPrefix,
ICSSPropertyCustomizer aCustomizer)
Constructor
|
protected |
AbstractCSSProperty(ECSSProperty eProp,
ICSSPropertyCustomizer aCustomizer)
Deprecated.
|
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 |
newImportantValue(ICSSNamedColor aColor)
Create a new important CSS value with this property and the specified named
color.
|
ICSSValue |
newImportantValue(String sValue)
Create a new important CSS value with this property and the specified
value.
|
ICSSValue |
newValue(ICSSNamedColor aColor)
Create a new CSS value with this property and the specified named color.
|
ICSSValue |
newValue(ICSSNamedColor aColor,
boolean bImportant)
Create a new CSS value with this property and the specified named color.
|
ICSSValue |
newValue(String sValue)
Create a new CSS value with this property and the specified value.
|
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, wait
getClone, getClone
@Deprecated protected AbstractCSSProperty(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer)
eProp
- The base property to use. May not be null
.aCustomizer
- The customizer to be used. May be null
.protected 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 ICSSVersionAware
null
.@Nonnull public final ECSSProperty getProp()
getProp
in interface ICSSProperty
null
.@Nullable public final ECSSVendorPrefix getVendorPrefix()
getVendorPrefix
in interface ICSSProperty
null
.@Nonnull @Nonempty public final String getPropertyName()
getPropertyName
in interface ICSSProperty
null
nor empty.@Nullable public final ICSSPropertyCustomizer getCustomizer()
getCustomizer
in interface ICSSProperty
null
.@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)
ICSSProperty
isValidValue
in interface ICSSProperty
sValue
- 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)
ICSSProperty
newValue
in interface ICSSProperty
sValue
- The CSS String value. May neither be null
nor empty.bIsImportant
- true
if it is an important value, false
if
notnull
.@Nonnull public final ICSSValue newValue(@Nonnull@Nonempty String sValue)
ICSSProperty
newValue (sValue, false)
.newValue
in interface ICSSProperty
sValue
- The CSS String value. May neither be null
nor empty.null
.@Nonnull public final ICSSValue newImportantValue(@Nonnull@Nonempty String sValue)
ICSSProperty
newValue (sValue, true)
.newImportantValue
in interface ICSSProperty
sValue
- The CSS String value. May neither be null
nor empty.null
.@Nonnull public final ICSSValue newValue(@Nonnull ICSSNamedColor aColor, boolean bImportant)
ICSSProperty
newValue
in interface ICSSProperty
aColor
- The CSS color valuebImportant
- true
if it is an important value, false
if
notnull
.@Nonnull public final ICSSValue newValue(@Nonnull ICSSNamedColor aColor)
ICSSProperty
newValue (aColor, false)
.newValue
in interface ICSSProperty
aColor
- The CSS color valuenull
.@Nonnull public final ICSSValue newImportantValue(@Nonnull ICSSNamedColor aColor)
ICSSProperty
newValue (aColor, true)
.newImportantValue
in interface ICSSProperty
aColor
- The CSS color valuenull
.Copyright © 2014–2015 Philip Helger. All rights reserved.