org.apache.batik.css.value
Class ImmutableInherit

java.lang.Object
  |
  +--org.apache.batik.css.value.AbstractImmutableValue
        |
        +--org.apache.batik.css.value.ImmutableInherit
All Implemented Interfaces:
ImmutableValue

public class ImmutableInherit
extends AbstractImmutableValue

This singleton class represents the immutable 'inherit' value.


Field Summary
static ImmutableInherit INSTANCE
          The only instance of this class.
 
Constructor Summary
protected ImmutableInherit()
          Creates a new ImmutableInherit object.
 
Method Summary
 ImmutableValue createReadOnlyCopy()
          Returns a deep read-only copy of this object.
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getCssText()
          A string representation of the current value.
 short getCssValueType()
          A code defining the type of the value.
 java.lang.String getStringValue()
          This method is used to get the string value.
 
Methods inherited from class org.apache.batik.css.value.AbstractImmutableValue
getCounterValue, getFloatValue, getLength, getPrimitiveType, getRectValue, getRGBColorValue, item
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ImmutableInherit INSTANCE
The only instance of this class.
Constructor Detail

ImmutableInherit

protected ImmutableInherit()
Creates a new ImmutableInherit object.
Method Detail

createReadOnlyCopy

public ImmutableValue createReadOnlyCopy()
Returns a deep read-only copy of this object.

getCssText

public java.lang.String getCssText()
A string representation of the current value.

getCssValueType

public short getCssValueType()
A code defining the type of the value.
Overrides:
getCssValueType in class AbstractImmutableValue

getStringValue

public java.lang.String getStringValue()
                                throws DOMException
This method is used to get the string value.
Overrides:
getStringValue in class AbstractImmutableValue
Throws:
DOMException - INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value.

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.