- 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 booleanequals(Object obj)Indicates whether some otherObjectis "equal to" this one.ParsedValuegetParsedValue()Gets the parsed value.StringgetProperty()Gets the CSS property name.RulegetRule()Gets theRuleto which thisDeclarationbelongs.booleanisImportant()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 theRuleto which thisDeclarationbelongs.- 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 otherObjectis "equal to" this one.One
Declarationis equal to another regardless of theRuleto which theDeclarationbelongs. Only the property, value and importance are considered.
-
-