Top Description Fields Constructors Methods
javafx.css

public final Class Declaration

extends Object
Class Inheritance
Imports
com.sun.javafx.css.ParsedValueImpl, javafx.css.converter.URLConverter, java.io.DataInputStream, .DataOutputStream, .IOException

This class serves as a container of a CSS property and its value.
Since
9

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final ParsedValue<V, T>
pack-priv final String
pack-priv Rule

Constructor Summary

AccessConstructor and Description
pack-priv
Declaration(final String
name of the CSS property
propertyName
,
final ParsedValue<V, T>
value of the CSS property
parsedValue
,
final boolean
importance of the Declaration
important
)

Constructs a Declaration object.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this object is the same as the obj argument; false otherwise
equals
(Object
an Object to compare
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other Object is "equal to" this one.

pack-priv void
fixUrl(String stylesheetUrl)

private StyleOrigin
getOrigin()

Gets the StyleOrigin of this Declaration.

public ParsedValue<V, T>

Returns:

the parsed value
getParsedValue
()

Gets the parsed value.

public String

Returns:

the CSS property
getProperty
()

Gets the CSS property name.

public Rule

Returns:

the Rule
getRule
()

Gets the Rule to which this Declaration belongs.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public final boolean

Returns:

the important flag
isImportant
()

Gets the importance of this Declaration.

pack-priv static Declaration
readBinary(int bssVersion, DataInputStream is, String[] strings)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

pack-priv final void
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

importantback to summary
pack-priv final boolean important
parsedValueback to summary
pack-priv final ParsedValue<V, T> parsedValue
propertyback to summary
pack-priv final String property
ruleback to summary
pack-priv Rule rule

Constructor Detail

Declarationback to summary
pack-priv Declaration(final String propertyName, final ParsedValue<V, T> parsedValue, final boolean important)

Constructs a Declaration object.

Parameters
propertyName:String

name of the CSS property

parsedValue:ParsedValue<V, T>

value of the CSS property

important:boolean

importance of the Declaration

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Indicates whether some other Object is "equal to" this one.

One Declaration is equal to another regardless of the Rule to which the Declaration belongs. Only the property, value and importance are considered.

Parameters
obj:Object

an Object to compare

Returns:boolean

true if this object is the same as the obj argument; false otherwise

Annotations
@Override
fixUrlback to summary
pack-priv void fixUrl(String stylesheetUrl)
getOriginback to summary
private StyleOrigin getOrigin()

Gets the StyleOrigin of this Declaration.

getParsedValueback to summary
public ParsedValue<V, T> getParsedValue()

Gets the parsed value.

Returns:ParsedValue<V, T>

the parsed value

getPropertyback to summary
public String getProperty()

Gets the CSS property name.

Returns:String

the CSS property

getRuleback to summary
public Rule getRule()

Gets the Rule to which this Declaration belongs.

Returns:Rule

the Rule

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
isImportantback to summary
public final boolean isImportant()

Gets the importance of this Declaration.

Returns:boolean

the important flag

readBinaryback to summary
pack-priv static Declaration readBinary(int bssVersion, DataInputStream is, String[] strings) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
writeBinaryback to summary
pack-priv final void writeBinary(final DataOutputStream os, final StyleConverter.StringStore stringStore) throws IOException