public abstract class CssContentTypeBase<TValue,TUnit> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TValue |
defaultValue
Contains the default value of this
|
protected TUnit |
unit
The unit which is placed at the en
|
protected TValue |
value
The string representation of the value of this CSSValue.
|
| Constructor and Description |
|---|
CssContentTypeBase(TValue defaultValue)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks whether the object is reference equal or if its also a
CssContentTypeBase and its value and unit are the same. |
TValue |
getDefaultValue() |
TUnit |
getUnit() |
TValue |
getValue()
Returns the
value. |
int |
hashCode() |
abstract void |
parseCssText(String cssText)
Consumes the given css text setting the values in the process
|
void |
setUnit(TUnit unit)
Sets the
unit. |
void |
setValue(TValue value)
Sets the
value. |
protected TValue value
protected final TValue defaultValue
protected TUnit unit
public CssContentTypeBase(TValue defaultValue)
defaultValue - the default value of this to usepublic TValue getDefaultValue()
defaultValue.public abstract void parseCssText(String cssText) throws Exception
cssText - text to consume.Exception - if there is any exceptionCopyright © 2016 Saxonia Systems AG. All rights reserved.