Class Property
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.Property
- All Implemented Interfaces:
Serializable, Locatable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProperty(String name, CSSValueImpl value, boolean important) Creates new Property. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns the name.getValue()Returns the value.inthashCode()booleanReturns true if the important flag is set.voidsetImportant(boolean important) Sets the important flag to a new value.voidSets the name to a new value.voidsetValue(CSSValueImpl value) Sets the value to a new value.toString()Methods inherited from class AbstractLocatable
getLocator, setLocator
-
Field Details
-
name_
-
value_
-
important_
private boolean important_
-
-
Constructor Details
-
Property
Creates new Property.- Parameters:
name- the namevalue- the valueimportant- true if the important flag set
-
-
Method Details
-
getName
-
setName
-
getValue
-
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
-