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:
EnvVariableValue,LexicalValue
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
ConstructorsModifierConstructorDescriptionprotectedProxyValue(CSSValue.Type unitType) protectedProxyValue(ProxyValue copied) -
Method Summary
Modifier and TypeMethodDescriptionGet the general category to which this value belongs.booleanvoidThis value is expected to contain an integer.Methods inherited from class io.sf.carte.doc.style.css.property.PrimitiveValue
clone, equals, getPrecedingComments, getPrimitiveType, getTrailingComments, hashCode, isPrimitiveValue, isSubproperty, setSubpropertyMethods inherited from class io.sf.carte.doc.style.css.property.StyleValue
getCssText, getMinifiedCssText, isSystemDefault, matches, setCssText, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumberMethods 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:CSSValueGet 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:CSSPrimitiveValueThis 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:
setExpectIntegerin interfaceCSSPrimitiveValue- Overrides:
setExpectIntegerin classPrimitiveValue
-