@NotThreadSafe public class CSSPropertyNumbers extends AbstractCSSProperty
Constructor and Description |
---|
CSSPropertyNumbers(ECSSProperty eProp,
boolean bWithPercentage,
int nMinNumbers,
int nMaxNumbers) |
CSSPropertyNumbers(ECSSProperty eProp,
ECSSVendorPrefix eVendorPrefix,
ICSSPropertyCustomizer aCustomizer,
boolean bWithPercentage,
int nMinNumbers,
int nMaxNumbers) |
CSSPropertyNumbers(ECSSProperty eProp,
ICSSPropertyCustomizer aCustomizer,
boolean bWithPercentage,
int nMinNumbers,
int nMaxNumbers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CSSPropertyNumbers |
getClone(ECSSProperty eProp)
Get a clone of this property with another (or the same) base property.
|
CSSPropertyNumbers |
getClone(ECSSVendorPrefix eVendorPrefix)
Get a clone of this property with the same base property but a different
vendor prefix.
|
int |
getMaximumArgumentCount() |
int |
getMinimumArgumentCount() |
int |
hashCode() |
boolean |
isValidValue(String sValue)
Check if the passed value is valid for this property according to the
defined rule.
|
String |
toString() |
getCustomizer, getMinimumCSSVersion, getProp, getPropertyName, getVendorPrefix, isValidPropertyValue, newImportantValue, newImportantValue, newValue, newValue, newValue, newValue
public CSSPropertyNumbers(@Nonnull ECSSProperty eProp, boolean bWithPercentage, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers)
public CSSPropertyNumbers(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer, boolean bWithPercentage, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers)
public CSSPropertyNumbers(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer, boolean bWithPercentage, @Nonnegative int nMinNumbers, @Nonnegative int nMaxNumbers)
public int getMinimumArgumentCount()
getMinimumArgumentCount
in interface ICSSProperty
getMinimumArgumentCount
in class AbstractCSSProperty
public int getMaximumArgumentCount()
getMaximumArgumentCount
in interface ICSSProperty
getMaximumArgumentCount
in class AbstractCSSProperty
@OverridingMethodsMustInvokeSuper public boolean isValidValue(@Nullable String sValue)
ICSSProperty
isValidValue
in interface ICSSProperty
isValidValue
in class AbstractCSSProperty
sValue
- The value to check. May be null
.true
if the value is valid, false
otherwise@Nonnull public CSSPropertyNumbers getClone(@Nonnull ECSSProperty eProp)
ICSSProperty
eProp
- The base property to use. May not be null
.null
@Nonnull public CSSPropertyNumbers getClone(@Nullable ECSSVendorPrefix eVendorPrefix)
ICSSProperty
eVendorPrefix
- The new vendor prefix to use. May be null
.null
public boolean equals(Object o)
equals
in class AbstractCSSProperty
public int hashCode()
hashCode
in class AbstractCSSProperty
public String toString()
toString
in class AbstractCSSProperty
Copyright © 2014–2015 Philip Helger. All rights reserved.