java.lang.Object
io.sf.carte.doc.style.css.property.StyleValue
io.sf.carte.doc.style.css.property.PrimitiveValue
io.sf.carte.doc.style.css.property.ProxyValue
- All Implemented Interfaces:
CSSPrimitiveValue
,CSSValue
,Serializable
,Cloneable
- Direct Known Subclasses:
AttrValue
,EnvVariableValue
,LexicalValue
,VarValue
A PROXY value, like
attr()
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValue
CSSValue.CssType, CSSValue.Type
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProxyValue
(CSSValue.Type unitType) protected
ProxyValue
(ProxyValue copied) -
Method Summary
Modifier and TypeMethodDescriptionGet the general category to which this value belongs.boolean
void
This value is expected to contain an integer.Methods inherited from class io.sf.carte.doc.style.css.property.PrimitiveValue
clone, equals, getPrimitiveType, hashCode, isPrimitiveValue, isSubproperty, setSubproperty
Methods inherited from class io.sf.carte.doc.style.css.property.StyleValue
getCssText, getMinifiedCssText, isSystemDefault, matches, setCssText, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber
Methods inherited from interface io.sf.carte.doc.style.css.CSSValue
getCssText, getMinifiedCssText, getMinifiedCssText, matches, setCssText, writeCssText
-
Constructor Details
-
ProxyValue
-
ProxyValue
-
-
Method Details
-
getCssValueType
Description copied from interface:CSSValue
Get the general category to which this value belongs.- Returns:
- the general value type.
-
isExpectingInteger
public boolean isExpectingInteger() -
setExpectInteger
public void setExpectInteger()Description copied from interface:CSSPrimitiveValue
This value is expected to contain an integer.If this value is a non-integer number, an exception will be thrown immediately.
If this value is a
calc()
that ever produces a non-integer number, the value shall be rounded to the nearest integer.If the value is a proxy that ever produces other than an integer number (without
calc()
involvement), an exception should be thrown later.- Specified by:
setExpectInteger
in interfaceCSSPrimitiveValue
- Overrides:
setExpectInteger
in classPrimitiveValue
-