Liferay 7.0-ce-b4

com.liferay.portal.kernel.templateparser
Class TemplateNode

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,Object>
              extended by com.liferay.portal.kernel.templateparser.TemplateNode
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class TemplateNode
extends LinkedHashMap<String,Object>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
TemplateNode(ThemeDisplay themeDisplay, String name, String data, String type, Map<String,String> attributes)
           
 
Method Summary
 void appendChild(TemplateNode templateNode)
           
 void appendChildren(List<TemplateNode> templateNodes)
           
 void appendOption(String option)
           
 void appendOptionMap(String value, String label)
           
 void appendOptions(List<String> options)
           
 void appendOptionsMap(Map<String,String> optionMap)
           
 void appendSibling(TemplateNode templateNode)
           
 String getAttribute(String name)
           
 Map<String,String> getAttributes()
           
 TemplateNode getChild(String name)
           
 List<TemplateNode> getChildren()
           
 String getData()
           
 String getFriendlyUrl()
           
protected  long getLayoutGroupId()
           
protected  long getLayoutId()
           
protected  String getLayoutType()
           
 String getName()
           
 List<String> getOptions()
           
 Map<String,String> getOptionsMap()
           
 List<TemplateNode> getSiblings()
           
 String getType()
           
 String getUrl()
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

TemplateNode

public TemplateNode(ThemeDisplay themeDisplay,
                    String name,
                    String data,
                    String type,
                    Map<String,String> attributes)
Method Detail

appendChild

public void appendChild(TemplateNode templateNode)

appendChildren

public void appendChildren(List<TemplateNode> templateNodes)

appendOption

public void appendOption(String option)

appendOptionMap

public void appendOptionMap(String value,
                            String label)

appendOptions

public void appendOptions(List<String> options)

appendOptionsMap

public void appendOptionsMap(Map<String,String> optionMap)

appendSibling

public void appendSibling(TemplateNode templateNode)

getAttribute

public String getAttribute(String name)

getAttributes

public Map<String,String> getAttributes()

getChild

public TemplateNode getChild(String name)

getChildren

public List<TemplateNode> getChildren()

getData

public String getData()

getFriendlyUrl

public String getFriendlyUrl()

getName

public String getName()

getOptions

public List<String> getOptions()

getOptionsMap

public Map<String,String> getOptionsMap()

getSiblings

public List<TemplateNode> getSiblings()

getType

public String getType()

getUrl

public String getUrl()

getLayoutGroupId

protected long getLayoutGroupId()

getLayoutId

protected long getLayoutId()

getLayoutType

protected String getLayoutType()

Liferay 7.0-ce-b4