de.neuland.jade4j.parser.node
Class AttributedNode

java.lang.Object
  extended by de.neuland.jade4j.parser.node.Node
      extended by de.neuland.jade4j.parser.node.AttributedNode
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MixinInjectNode, TagNode

public abstract class AttributedNode
extends Node


Field Summary
protected  Map<String,Object> attributes
           
protected  boolean inheritsAttributes
           
protected  Map<String,List<Object>> preparedAttributeValues
           
 
Fields inherited from class de.neuland.jade4j.parser.node.Node
block, fileName, lineNumber, name, nodes, value
 
Constructor Summary
AttributedNode()
           
 
Method Summary
 void addAttribute(String key, Object value)
           
 void addAttributes(Map<String,Object> attributeMap)
           
 AttributedNode clone()
           
 String getAttribute(String key)
           
 Map<String,Object> getAttributes()
           
protected  Map<String,Object> mergeInheritedAttributes(JadeModel model)
           
 
Methods inherited from class de.neuland.jade4j.parser.node.Node
execute, getBlock, getFileName, getLineNumber, getName, getNodes, getValue, hasBlock, hasNodes, pollNode, push, setBlock, setFileName, setLineNumber, setName, setNodes, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

protected Map<String,Object> attributes

preparedAttributeValues

protected Map<String,List<Object>> preparedAttributeValues

inheritsAttributes

protected boolean inheritsAttributes
Constructor Detail

AttributedNode

public AttributedNode()
Method Detail

addAttribute

public void addAttribute(String key,
                         Object value)

getAttribute

public String getAttribute(String key)

addAttributes

public void addAttributes(Map<String,Object> attributeMap)

getAttributes

public Map<String,Object> getAttributes()

mergeInheritedAttributes

protected Map<String,Object> mergeInheritedAttributes(JadeModel model)

clone

public AttributedNode clone()
                     throws CloneNotSupportedException
Overrides:
clone in class Node
Throws:
CloneNotSupportedException


Copyright © 2013. All rights reserved.