com.liferay.portal.kernel.templateparser
Class TemplateNode
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
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
| Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
TemplateNode
public TemplateNode(ThemeDisplay themeDisplay,
String name,
String data,
String type,
Map<String,String> attributes)
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()