JTools

net.jtools.tmpl.model
Class WriteableNode

java.lang.Object
  extended by net.jtools.tmpl.model.SimpleObject
      extended by net.jtools.tmpl.model.SimpleItem
          extended by net.jtools.tmpl.model.WriteableNode
All Implemented Interfaces:
Item, NodeItem, NodeItem.Support, NodeItem.Writeable
Direct Known Subclasses:
WriteableNode.Compiler, WriteableNode.Evaluation

public abstract class WriteableNode
extends SimpleItem
implements NodeItem.Writeable, NodeItem.Support


Nested Class Summary
static class WriteableNode.Code
           
static class WriteableNode.Comment
           
static class WriteableNode.Compiler
           
static class WriteableNode.Evaluation
           
static class WriteableNode.Expression
           
static class WriteableNode.Statement
           
static class WriteableNode.tagholder
           
 
Nested classes/interfaces inherited from class net.jtools.tmpl.model.SimpleItem
SimpleItem.External, SimpleItem.Reference, SimpleItem.Writeable
 
Nested classes/interfaces inherited from class net.jtools.tmpl.model.SimpleObject
SimpleObject.Description
 
Nested classes/interfaces inherited from interface net.jtools.tmpl.model.NodeItem
NodeItem.Evaluated, NodeItem.Reference, NodeItem.Support, NodeItem.Type, NodeItem.Writeable
 
Field Summary
protected  Map<String,NodeItem> childnames
           
protected  List<NodeItem> childs
           
protected  List<NodeItem> rawChilds
           
 
Fields inherited from class net.jtools.tmpl.model.SimpleItem
TAB
 
Fields inherited from class net.jtools.tmpl.model.SimpleObject
description
 
Constructor Summary
protected WriteableNode(NodeItem.Support parent, StyleItem style, NodeItem.Type type, String label, boolean linedelimited)
           
 
Method Summary
 void addEscapeTag(String tag)
           
 ReferencedNode createChildNodeRef()
           
 WriteableNode.tagholder createEnd()
           
static String createSimpleTag(String x)
           
static String createSimpleTags(Collection<String> x, boolean dynamic)
           
 Collection<String> getEndTags()
           
 Collection<String> getEscapeTags()
           
 String getLabel()
           
 NodeItem getNode(String name)
           
 Collection<NodeItem> getNodes()
           
 StyleItem getStyle()
           
 String getTag()
           
 NodeItem.Type getType()
           
 boolean isInheritEscapes()
           
 boolean isLineDelimited()
           
protected  boolean onCheck()
           
protected  void registerChilds()
           
 void setChildNodeRef(String node)
           
 void setChildNodeRefs(String nodes)
           
 void setEnd(String tag)
           
 void setInheritEscapes(boolean onOff)
           
 void setStart(String tag)
           
 void setTag(String tag)
           
 void writeJavaFileSetChildNodes(String prefix, JavaPrintStream out)
           
 
Methods inherited from class net.jtools.tmpl.model.SimpleItem
check, commaseparated, getClassname, getModel, getName, getParent, isChecked, literal, setName, solve
 
Methods inherited from class net.jtools.tmpl.model.SimpleObject
addDescription, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jtools.tmpl.model.NodeItem.Writeable
writeJavaFileCreate
 
Methods inherited from interface net.jtools.tmpl.model.NodeItem
setName
 
Methods inherited from interface net.jtools.tmpl.model.Item
check, getClassname, getModel, getName, getParent, isChecked, solve
 

Field Detail

childnames

protected Map<String,NodeItem> childnames

childs

protected List<NodeItem> childs

rawChilds

protected List<NodeItem> rawChilds
Constructor Detail

WriteableNode

protected WriteableNode(NodeItem.Support parent,
                        StyleItem style,
                        NodeItem.Type type,
                        String label,
                        boolean linedelimited)
Method Detail

createSimpleTag

public static String createSimpleTag(String x)

createSimpleTags

public static String createSimpleTags(Collection<String> x,
                                      boolean dynamic)

addEscapeTag

public void addEscapeTag(String tag)

createChildNodeRef

public ReferencedNode createChildNodeRef()

createEnd

public WriteableNode.tagholder createEnd()

getEndTags

public Collection<String> getEndTags()

getEscapeTags

public Collection<String> getEscapeTags()
Specified by:
getEscapeTags in interface NodeItem

getLabel

public String getLabel()

getNode

public NodeItem getNode(String name)
Specified by:
getNode in interface NodeItem
Specified by:
getNode in interface NodeItem.Support

getNodes

public Collection<NodeItem> getNodes()
Specified by:
getNodes in interface NodeItem
Specified by:
getNodes in interface NodeItem.Support

getStyle

public StyleItem getStyle()
Specified by:
getStyle in interface NodeItem

getTag

public String getTag()

getType

public NodeItem.Type getType()

isInheritEscapes

public boolean isInheritEscapes()

isLineDelimited

public boolean isLineDelimited()

onCheck

protected boolean onCheck()
Overrides:
onCheck in class SimpleItem

registerChilds

protected void registerChilds()

setChildNodeRef

public void setChildNodeRef(String node)

setChildNodeRefs

public void setChildNodeRefs(String nodes)

setEnd

public void setEnd(String tag)

setInheritEscapes

public void setInheritEscapes(boolean onOff)

setStart

public void setStart(String tag)

setTag

public void setTag(String tag)

writeJavaFileSetChildNodes

public void writeJavaFileSetChildNodes(String prefix,
                                       JavaPrintStream out)
Specified by:
writeJavaFileSetChildNodes in interface NodeItem.Writeable

JTools

© 2000-2006, JTools.org.