public class QuadrupleMapNodeData extends Object implements NodeData
| Modifier and Type | Field and Description |
|---|---|
protected static SupportedCSS |
css |
protected static DeclarationTransformer |
transformer |
| Constructor and Description |
|---|
QuadrupleMapNodeData() |
| 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. |
boolean |
equals(Object obj) |
<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.
|
int |
hashCode() |
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() |
protected static DeclarationTransformer transformer
protected static SupportedCSS css
public <T extends CSSProperty> T getProperty(String name)
NodeDatagetProperty in interface 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)
NodeDatagetProperty in interface 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)
NodeDatapublic <T extends Term<?>> T getValue(Class<T> clazz, String name, boolean includeInherited)
NodeDatapublic <T extends Term<?>> T getValue(Class<T> clazz, String name)
NodeDatapublic NodeData push(Declaration d)
NodeDatapublic NodeData inheritFrom(NodeData parent) throws ClassCastException
NodeDatanull parent is
allowed, than instance is returned unchanged.inheritFrom in interface NodeDataparent - Source of inheritanceClassCastException - When parent implementation class is not the samepublic NodeData concretize()
NodeDatainherit CSS properties either with values of
parent, or, if not present, with default values of user agent.concretize in interface NodeDatapublic Collection<String> getPropertyNames()
NodeDatagetPropertyNames in interface NodeDatapublic Declaration getSourceDeclaration(String name)
NodeDatagetSourceDeclaration in interface NodeDataCopyright © 2014. All rights reserved.