Package org.htmlunit.cssparser.dom
Class Property
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.Property
- All Implemented Interfaces:
Serializable
,Locatable
Property class.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionProperty
(String name, CSSValueImpl value, boolean important) Creates new Property. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Returns the name.getValue()
Returns the value.int
hashCode()
boolean
Returns true if the important flag is set.void
setImportant
(boolean important) Sets the important flag to a new value.void
Sets the name to a new value.void
setValue
(CSSValueImpl value) Sets the value to a new value.toString()
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Constructor Details
-
Property
Creates new Property.- Parameters:
name
- the namevalue
- the valueimportant
- true if the important flag set
-
-
Method Details
-
getName
Returns the name.- Returns:
- the name
-
setName
Sets the name to a new value.- Parameters:
name
- the new name
-
getValue
Returns the value.- Returns:
- the value
-
isImportant
public boolean isImportant()Returns true if the important flag is set.- Returns:
- true or false
-
setValue
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
-
equals
-
hashCode
public int hashCode()
-