Package org.htmlunit.cssparser.dom
Class Property
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.dom.Property
-
- All Implemented Interfaces:
java.io.Serializable
,Locatable
public class Property extends AbstractLocatable implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
important_
private java.lang.String
name_
private CSSValueImpl
value_
-
Constructor Summary
Constructors Constructor Description Property(java.lang.String name, CSSValueImpl value, boolean important)
Creates new Property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Returns the name.CSSValueImpl
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(java.lang.String name)
Sets the name to a new value.void
setValue(CSSValueImpl value)
Sets the value to a new value.java.lang.String
toString()
-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
-
-
-
Field Detail
-
name_
private java.lang.String name_
-
value_
private CSSValueImpl value_
-
important_
private boolean important_
-
-
Constructor Detail
-
Property
public Property(java.lang.String name, CSSValueImpl value, boolean important)
Creates new Property.- Parameters:
name
- the namevalue
- the valueimportant
- true if the important flag set
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)
Sets the name to a new value.- Parameters:
name
- the new name
-
getValue
public CSSValueImpl 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(CSSValueImpl 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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-