com.steadystate.css.dom
Class Property

java.lang.Object
  extended by com.steadystate.css.dom.CSSOMObjectImpl
      extended by com.steadystate.css.dom.Property
All Implemented Interfaces:
CSSOMObject, Serializable

public class Property
extends CSSOMObjectImpl

Author:
David Schweinsberg, rbri
See Also:
Serialized Form

Constructor Summary
Property()
          Constructor.
Property(String name, org.w3c.dom.css.CSSValue value, boolean important)
          Creates new Property.
 
Method Summary
 boolean equals(Object obj)
          
 String getName()
          Returns the name.
 org.w3c.dom.css.CSSValue getValue()
          Returns the value.
 int hashCode()
          
 boolean isImportant()
          Returns true if the important flag is set.
 void setImportant(boolean important)
          Sets the important flag to a new value.
 void setName(String name)
          Sets the name to a new value.
 void setValue(org.w3c.dom.css.CSSValue value)
          Sets the value to a new value.
 String toString()
          
 
Methods inherited from class com.steadystate.css.dom.CSSOMObjectImpl
getUserData, getUserDataMap, setUserData, setUserDataMap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property(String name,
                org.w3c.dom.css.CSSValue value,
                boolean important)
Creates new Property.

Parameters:
name - the name
value - the value
important - true if the important flag set

Property

public Property()
Constructor. The attributes are null.

Method Detail

getName

public String getName()
Returns the name.

Returns:
the name

setName

public void setName(String name)
Sets the name to a new value.

Parameters:
name - the new name

getValue

public org.w3c.dom.css.CSSValue getValue()
Returns the value.

Returns:
the value

isImportant

public boolean isImportant()
Returns true if the important flag is set.

Returns:
true or false

setValue

public void setValue(org.w3c.dom.css.CSSValue value)
Sets the value to a new value.

Parameters:
value - the new CSSValue

setImportant

public void setImportant(boolean important)
Sets the important flag to a new value.

Parameters:
important - the new flag value

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class CSSOMObjectImpl

hashCode

public int hashCode()

Overrides:
hashCode in class CSSOMObjectImpl


Copyright © 2013. All rights reserved.