info.magnolia.templating.elements
Class MarkupHelper

java.lang.Object
  extended by 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$

Constructor Summary
MarkupHelper(Appendable appendable)
           
 
Method Summary
 Appendable append(char c)
           
 Appendable append(CharSequence charSequence)
           
 Appendable append(CharSequence charSequence, int i, int i1)
           
 MarkupHelper attribute(String name, String value)
           
 MarkupHelper closeComment(String tagName)
           
 MarkupHelper closeTag(String tagName)
           
 MarkupHelper endContent(javax.jcr.Node node)
           
protected  String getNodeId(javax.jcr.Node node)
           
protected  String getNodeType(javax.jcr.Node node)
           
 MarkupHelper openComment(String tagName)
           
 MarkupHelper openTag(String tagName)
           
 MarkupHelper startContent(javax.jcr.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkupHelper

public MarkupHelper(Appendable appendable)
Method Detail

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.