org.apache.velocity.tools.generic
Class MarkupTool.Tag

java.lang.Object
  extended by org.apache.velocity.tools.generic.MarkupTool.Tag
Enclosing class:
MarkupTool

public static class MarkupTool.Tag
extends Object


Constructor Summary
MarkupTool.Tag(MarkupTool tool)
           
 
Method Summary
 MarkupTool.Tag addClass(Object c)
           
 MarkupTool.Tag append(Object o)
           
 MarkupTool.Tag attr(Object k, Object v)
           
 MarkupTool.Tag body(Object o)
           
 List<Object> children()
           
 MarkupTool.Tag id(Object id)
           
 boolean isEmpty()
           
 boolean isOrphan()
           
 boolean matches(MarkupTool.Tag tag)
           
protected  boolean missed(List<Object> targets, List<Object> arrows)
           
protected  boolean missed(Object target, Object arrow)
           
 MarkupTool.Tag name(Object name)
           
 MarkupTool.Tag orphan()
           
 MarkupTool.Tag parent()
           
 MarkupTool.Tag parent(MarkupTool.Tag parent)
           
 MarkupTool.Tag prepend(Object o)
           
protected  void render_attributes(StringBuilder s)
           
protected  void render_body(String indent, StringBuilder s)
           
protected  void render_classes(StringBuilder s)
           
protected  void render_end(String indent, StringBuilder s)
           
protected  void render_id(StringBuilder s)
           
protected  void render_name(StringBuilder s)
           
protected  boolean render_start(String indent, StringBuilder s)
           
protected  void render(String indent, StringBuilder s)
          rendering methods
 MarkupTool.Tag root()
           
 String toString()
           
 MarkupTool.Tag wrap(String tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarkupTool.Tag

public MarkupTool.Tag(MarkupTool tool)
Method Detail

name

public MarkupTool.Tag name(Object name)

id

public MarkupTool.Tag id(Object id)

addClass

public MarkupTool.Tag addClass(Object c)

attr

public MarkupTool.Tag attr(Object k,
                           Object v)

body

public MarkupTool.Tag body(Object o)

append

public MarkupTool.Tag append(Object o)

prepend

public MarkupTool.Tag prepend(Object o)

wrap

public MarkupTool.Tag wrap(String tag)

orphan

public MarkupTool.Tag orphan()

parent

public MarkupTool.Tag parent(MarkupTool.Tag parent)

parent

public MarkupTool.Tag parent()

root

public MarkupTool.Tag root()

children

public List<Object> children()

isOrphan

public boolean isOrphan()

isEmpty

public boolean isEmpty()

matches

public boolean matches(MarkupTool.Tag tag)

missed

protected boolean missed(Object target,
                         Object arrow)

missed

protected boolean missed(List<Object> targets,
                         List<Object> arrows)

render

protected void render(String indent,
                      StringBuilder s)
rendering methods


render_start

protected boolean render_start(String indent,
                               StringBuilder s)

render_name

protected void render_name(StringBuilder s)

render_id

protected void render_id(StringBuilder s)

render_classes

protected void render_classes(StringBuilder s)

render_attributes

protected void render_attributes(StringBuilder s)

render_body

protected void render_body(String indent,
                           StringBuilder s)

render_end

protected void render_end(String indent,
                          StringBuilder s)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.