info.magnolia.templating.elements
Class MarkupHelper
java.lang.Object
info.magnolia.templating.elements.MarkupHelper
- All Implemented Interfaces:
- Appendable
public class MarkupHelper
- extends Object
- implements Appendable
Helper class for building markup in templating elements.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkupHelper
public MarkupHelper(Appendable appendable)
attribute
public MarkupHelper attribute(String name,
String value)
throws IOException
- Throws:
IOException
startContent
public MarkupHelper startContent(javax.jcr.Node node)
throws IOException,
RenderException
- Throws:
IOException
RenderException
endContent
public MarkupHelper endContent(javax.jcr.Node node)
throws IOException,
RenderException
- Throws:
IOException
RenderException
openTag
public MarkupHelper openTag(String tagName)
throws IOException
- Throws:
IOException
closeTag
public MarkupHelper closeTag(String tagName)
throws IOException
- Throws:
IOException
openComment
public MarkupHelper openComment(String tagName)
throws IOException
- Throws:
IOException
closeComment
public MarkupHelper closeComment(String tagName)
throws IOException
- Throws:
IOException
getNodeId
protected String getNodeId(javax.jcr.Node node)
throws RenderException
- Throws:
RenderException
getNodeType
protected String getNodeType(javax.jcr.Node node)
throws RenderException
- Throws:
RenderException
append
public Appendable append(CharSequence charSequence)
throws IOException
- Specified by:
append
in interface Appendable
- Throws:
IOException
append
public Appendable append(CharSequence charSequence,
int i,
int i1)
throws IOException
- Specified by:
append
in interface Appendable
- Throws:
IOException
append
public Appendable append(char c)
throws IOException
- Specified by:
append
in interface Appendable
- Throws:
IOException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.