public class SingleMapNodeData extends BaseNodeDataImpl
css, transformer| Constructor and Description |
|---|
SingleMapNodeData() |
| 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 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
|
String |
toString() |
getSpecifiedProperty, getSpecifiedValue, getSpecifiedValuepublic <T extends CSSProperty> T getProperty(String name)
NodeDataT - Type of property returned. Let compiler infer returning type
from left part of statement, otherwise return just CSSPropertyname - Name of propertynullpublic <T extends CSSProperty> T getProperty(String name, boolean includeInherited)
NodeDataT - 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 notnullpublic Term<?> getValue(String name, boolean includeInherited)
NodeDataname - Name of propertyincludeInherited - Whether to include inherited properties or notnullpublic <T extends Term<?>> T getValue(Class<T> clazz, String name)
NodeDataT - Type of value returnedclazz - Class of typename - Name of propertynullpublic String getAsString(String name, boolean includeInherited)
NodeDataname - Property nameincludeInherited - Whether to include inherited properties or notnull when the property is not defined.public <T extends Term<?>> T getValue(Class<T> clazz, String name, boolean includeInherited)
NodeDataT - Type of value returnedclazz - Class of typename - Name of propertyincludeInherited - Whether to include inherited properties or notnullpublic NodeData push(Declaration d)
NodeDatad - Declaration to be addedpublic NodeData concretize()
NodeDatainherit, initial and unset CSS properties
with the inherited values or default values of user agent.public NodeData inheritFrom(NodeData parent) throws ClassCastException
NodeDatanull parent is
allowed, than instance is returned unchanged.parent - Source of inheritanceClassCastException - When parent implementation class is not the samepublic Collection<String> getPropertyNames()
NodeDatapublic Declaration getSourceDeclaration(String name)
NodeDataname - The property name.public Declaration getSourceDeclaration(String name, boolean includeInherited)
NodeDataname - The property name.includeInherited - whether to include the inherited properties.Copyright © 2019. All rights reserved.