- java.lang.Object
-
- javafx.css.Declaration
-
public final class Declaration extends Object
This class serves as a container of a CSS property and its value.- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Indicates whether some otherObject
is "equal to" this one.ParsedValue
getParsedValue()
Gets the parsed value.String
getProperty()
Gets the CSS property name.Rule
getRule()
Gets theRule
to which thisDeclaration
belongs.boolean
isImportant()
Gets the importance of thisDeclaration
.
-
-
-
Method Detail
-
getParsedValue
public ParsedValue getParsedValue()
Gets the parsed value.- Returns:
- the parsed value
-
getProperty
public String getProperty()
Gets the CSS property name.- Returns:
- the CSS property
-
getRule
public Rule getRule()
Gets theRule
to which thisDeclaration
belongs.- Returns:
- the
Rule
-
isImportant
public final boolean isImportant()
Gets the importance of thisDeclaration
.- Returns:
- the important flag
-
equals
public boolean equals(Object obj)
Indicates whether some otherObject
is "equal to" this one.One
Declaration
is equal to another regardless of theRule
to which theDeclaration
belongs. Only the property, value and importance are considered.
-
-