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
This class provides an abstract implementation of the Value interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DOMException
Creates an INVALID_ACCESS_ERR exception.getBlue()
ImplementsValue.getBlue()
.ImplementsValue.getBottom()
.short
ImplementsValue.getCssValueType()
.float
ImplementsValue.getFloatValue()
.getGreen()
ImplementsValue.getGreen()
.ImplementsValue.getIdentifier()
.getLeft()
ImplementsValue.getLeft()
.int
ImplementsValue.getLength()
.ImplementsValue.getListStyle()
.short
ImplementsValue.getPrimitiveType()
.getRed()
ImplementsValue.getRed()
.getRight()
ImplementsValue.getRight()
.ImplementsValue.getSeparator()
.ImplementsValue.getStringValue()
.getTop()
ImplementsValue.getTop()
.item
(int index) ImplementsValue.item(int)
.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
-
Constructor Details
-
AbstractValue
public AbstractValue()
-
-
Method Details
-
getCssValueType
public short getCssValueType()ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
-
getPrimitiveType
public short getPrimitiveType()ImplementsValue.getPrimitiveType()
.- Specified by:
getPrimitiveType
in interfaceValue
-
getFloatValue
ImplementsValue.getFloatValue()
.- Specified by:
getFloatValue
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a float value.
-
getStringValue
ImplementsValue.getStringValue()
.- Specified by:
getStringValue
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a string value.
-
getRed
ImplementsValue.getRed()
.- Specified by:
getRed
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getGreen
ImplementsValue.getGreen()
.- Specified by:
getGreen
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getBlue
ImplementsValue.getBlue()
.- Specified by:
getBlue
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getLength
ImplementsValue.getLength()
.- Specified by:
getLength
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
item
ImplementsValue.item(int)
.- Specified by:
item
in interfaceValue
- Returns:
- The style rule at the
index
position in the list, ornull
if that is not a valid index. - Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a list value.
-
getTop
ImplementsValue.getTop()
.- Specified by:
getTop
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getRight
ImplementsValue.getRight()
.- Specified by:
getRight
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getBottom
ImplementsValue.getBottom()
.- Specified by:
getBottom
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getLeft
ImplementsValue.getLeft()
.- Specified by:
getLeft
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Rect value.
-
getIdentifier
ImplementsValue.getIdentifier()
.- Specified by:
getIdentifier
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getListStyle
ImplementsValue.getListStyle()
.- Specified by:
getListStyle
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
getSeparator
ImplementsValue.getSeparator()
.- Specified by:
getSeparator
in interfaceValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a Counter value.
-
createDOMException
Creates an INVALID_ACCESS_ERR exception.
-