public interface NodeData
| Modifier and Type | Method and Description |
|---|---|
NodeData |
concretize()
Replaces all
inherit CSS properties either with values of
parent, or, if not present, with default values of user agent. |
<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 this property.
|
<T extends Term<?>> |
getValue(Class<T> clazz,
String name)
Returns value of property of given name and supposed type.
|
<T extends Term<?>> |
getValue(Class<T> clazz,
String name,
boolean includeInherited)
Returns value of property of given name and supposed type.
|
Term<?> |
getValue(String name,
boolean includeInherited)
Returns value of property of given name as a generic type.
|
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 notnullTerm<?> 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 notnullNodeData 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 CSS properties either with values of
parent, or, if not present, with default values of user agent.NodeData push(Declaration d)
d - Declaration to be addedCollection<String> getPropertyNames()
Declaration getSourceDeclaration(String name)
Copyright © 2014. All rights reserved.