public interface NodeData
| Modifier and Type | Method and Description |
|---|---|
NodeData |
concretize()
Replaces all
inherit, initial and unset CSS properties
with the inherited values or default values of user agent. |
String |
getAsString(String name,
boolean includeInherited)
Returns a string representation of the property value.
|
<T extends CSSProperty> |
getProperty(String name)
Returns property of given name and supposed type.
|
<T extends CSSProperty> |
getProperty(String name,
boolean includeInherited)
Returns property of given name and supposed type.
|
Collection<String> |
getPropertyNames()
Returns the names of all the that are available in the current node.
|
Declaration |
getSourceDeclaration(String name)
Obtains the source declaration used for the given property.
|
Declaration |
getSourceDeclaration(String name,
boolean includeInherited)
Obtains the source declaration used for the given property.
|
<T extends CSSProperty> |
getSpecifiedProperty(String name)
Returns the property of the given name after applying the defaulting processes.
|
<T extends Term<?>> |
getSpecifiedValue(Class<T> clazz,
String name)
Returns the specified value of a property which corresponds to the
cascaded value (obtained by
getValue(String, boolean)) with
applying the defaulting processes. |
Term<?> |
getSpecifiedValue(String name)
Returns the specified value of a property which corresponds to the
cascaded value (obtained by
getValue(String, boolean)) with
applying the defaulting processes. |
<T extends Term<?>> |
getValue(Class<T> clazz,
String name)
Returns the cascaded value of property of given name and supposed type.
|
<T extends Term<?>> |
getValue(Class<T> clazz,
String name,
boolean includeInherited)
Returns the cascaded value of property of given name and supposed type.
|
Term<?> |
getValue(String name,
boolean includeInherited)
Returns the cascaded value of property of given name.
|
NodeData |
inheritFrom(NodeData parent)
Accepts values from parent as its own.
|
NodeData |
push(Declaration d)
Adds data stored in declaration into current instance
|
<T extends CSSProperty> T getProperty(String name)
T - Type of property returned. Let compiler infer returning type
from left part of statement, otherwise return just CSSPropertyname - Name of propertynull<T extends CSSProperty> T getProperty(String name, boolean includeInherited)
T - Type of property returned. Let compiler infer returning type
from left part of statement, otherwise return just CSSPropertyname - Name of propertyincludeInherited - Whether to include inherited properties or notnull<T extends CSSProperty> T getSpecifiedProperty(String name)
name - Property namenull if the
value is not available and no default value is applicable.Term<?> getValue(String name, boolean includeInherited)
name - Name of propertyincludeInherited - Whether to include inherited properties or notnull<T extends Term<?>> T getValue(Class<T> clazz, String name)
T - Type of value returnedclazz - Class of typename - Name of propertynull<T extends Term<?>> T getValue(Class<T> clazz, String name, boolean includeInherited)
T - Type of value returnedclazz - Class of typename - Name of propertyincludeInherited - Whether to include inherited properties or notnullTerm<?> getSpecifiedValue(String name)
getValue(String, boolean)) with
applying the defaulting processes.name - the property namenull when the property value is not defined
and no default value is available.<T extends Term<?>> T getSpecifiedValue(Class<T> clazz, String name)
getValue(String, boolean)) with
applying the defaulting processes.clazz - the expected class of the resultname - the property namenull when the property value is not defined
and no default value is available.String getAsString(String name, boolean includeInherited)
name - Property nameincludeInherited - Whether to include inherited properties or notnull when the property is not defined.NodeData inheritFrom(NodeData parent) throws ClassCastException
null parent is
allowed, than instance is returned unchanged.parent - Source of inheritanceClassCastException - When parent implementation class is not the sameNodeData concretize()
inherit, initial and unset CSS properties
with the inherited values or default values of user agent.NodeData push(Declaration d)
d - Declaration to be addedCollection<String> getPropertyNames()
Declaration getSourceDeclaration(String name)
name - The property name.Declaration getSourceDeclaration(String name, boolean includeInherited)
name - The property name.includeInherited - whether to include the inherited properties.Copyright © 2019. All rights reserved.