public class Property extends AbstractLocatable implements Serializable
| Constructor and Description |
|---|
Property(String name,
CSSValueImpl value,
boolean important)
Creates new Property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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(String name)
Sets the name to a new value.
|
void |
setValue(CSSValueImpl value)
Sets the value to a new value.
|
String |
toString() |
getLocator, setLocatorpublic Property(String name, CSSValueImpl value, boolean important)
name - the namevalue - the valueimportant - true if the important flag setpublic String getName()
public void setName(String name)
name - the new namepublic CSSValueImpl getValue()
public boolean isImportant()
public void setValue(CSSValueImpl value)
value - the new CSSValuepublic void setImportant(boolean important)
important - the new flag valueCopyright © 2021. All rights reserved.