com.osbcp.cssparser
Class PropertyValue

java.lang.Object
  extended by com.osbcp.cssparser.PropertyValue

public final class PropertyValue
extends java.lang.Object

Represents a property and its value of a CSS rule.

Author:
Christoffer Pettersson

Constructor Summary
PropertyValue(java.lang.String property, java.lang.String value)
          Creates a new PropertyValue based on a property and its value.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getProperty()
          Returns the property.
 java.lang.String getValue()
          Returns the value.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyValue

public PropertyValue(java.lang.String property,
                     java.lang.String value)
Creates a new PropertyValue based on a property and its value.

Parameters:
property - The CSS property (such as 'width' or 'color').
value - The value of the property (such as '100px' or 'red').
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getProperty

public java.lang.String getProperty()
Returns the property.

Returns:
The property.

getValue

public java.lang.String getValue()
Returns the value.

Returns:
The value.