Class AbstractValue
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
AbstractCIEColor
,DeviceColor
,FloatValue
,ICCColor
,ICCNamedColor
,InheritValue
,ListValue
,RectValue
,RGBColorValue
,StringValue
public abstract class AbstractValue extends java.lang.Object implements Value
This class provides an abstract implementation of the Value interface.- Version:
- $Id: AbstractValue.java 1802297 2017-07-18 13:58:12Z ssteiner $
-
-
Constructor Summary
Constructors Constructor Description AbstractValue()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.css.engine.value.Value
getCssText
-
-
-
-
Method Detail
-
getCssValueType
public short getCssValueType()
ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
-
getPrimitiveType
public short getPrimitiveType()
ImplementsValue.getPrimitiveType()
.- Specified by:
getPrimitiveType
in interfaceValue
-
getFloatValue
public float getFloatValue() throws org.w3c.dom.DOMException
ImplementsValue.getFloatValue()
.- Specified by:
getFloatValue
in interfaceValue
- Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a float value.
-
getStringValue
public java.lang.String getStringValue() throws org.w3c.dom.DOMException
ImplementsValue.getStringValue()
.- Specified by:
getStringValue
in interfaceValue
- Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
getRed
public Value getRed() throws org.w3c.dom.DOMException
ImplementsValue.getRed()
.
-
getGreen
public Value getGreen() throws org.w3c.dom.DOMException
ImplementsValue.getGreen()
.
-
getBlue
public Value getBlue() throws org.w3c.dom.DOMException
ImplementsValue.getBlue()
.
-
getLength
public int getLength() throws org.w3c.dom.DOMException
ImplementsValue.getLength()
.
-
item
public Value item(int index) throws org.w3c.dom.DOMException
ImplementsValue.item(int)
.
-
getTop
public Value getTop() throws org.w3c.dom.DOMException
ImplementsValue.getTop()
.
-
getRight
public Value getRight() throws org.w3c.dom.DOMException
ImplementsValue.getRight()
.
-
getBottom
public Value getBottom() throws org.w3c.dom.DOMException
ImplementsValue.getBottom()
.
-
getLeft
public Value getLeft() throws org.w3c.dom.DOMException
ImplementsValue.getLeft()
.
-
getIdentifier
public java.lang.String getIdentifier() throws org.w3c.dom.DOMException
ImplementsValue.getIdentifier()
.- Specified by:
getIdentifier
in interfaceValue
- Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getListStyle
public java.lang.String getListStyle() throws org.w3c.dom.DOMException
ImplementsValue.getListStyle()
.- Specified by:
getListStyle
in interfaceValue
- Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getSeparator
public java.lang.String getSeparator() throws org.w3c.dom.DOMException
ImplementsValue.getSeparator()
.- Specified by:
getSeparator
in interfaceValue
- Throws:
org.w3c.dom.DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
createDOMException
protected org.w3c.dom.DOMException createDOMException()
Creates an INVALID_ACCESS_ERR exception.
-
-