JTools

net.jtools.tmpl.model
Class WriteableStyle

java.lang.Object
  extended by net.jtools.tmpl.model.SimpleObject
      extended by net.jtools.tmpl.model.SimpleItem
          extended by net.jtools.tmpl.model.SimpleItem.Writeable
              extended by net.jtools.tmpl.model.WriteableStyle
All Implemented Interfaces:
Item, Item.Writeable, NodeItem.Support, StyleItem, StyleItem.Writeable

public class WriteableStyle
extends SimpleItem.Writeable
implements StyleItem.Writeable


Nested Class Summary
static class WriteableStyle.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.StyleItem
StyleItem.Reference, StyleItem.Support, StyleItem.Writeable
 
Field Summary
 
Fields inherited from class net.jtools.tmpl.model.SimpleItem
TAB
 
Fields inherited from class net.jtools.tmpl.model.SimpleObject
description
 
Constructor Summary
WriteableStyle(Item parent)
           
 
Method Summary
 WriteableNode.Code createBlockCode()
           
 WriteableNode.Comment createBlockComment()
           
 WriteableNode.Evaluation createBlockEvaluation()
           
 WriteableNode.Expression createBlockExpression()
           
 WriteableNode.Statement createBlockStmt()
           
 WriteableStyle.TagHolder createEscape()
           
 WriteableNode.Code createLineCode()
           
 WriteableNode.Comment createLineComment()
           
 WriteableNode.Evaluation createLineEvaluation()
           
 WriteableNode.Expression createLineExpression()
           
 WriteableNode.Statement createLineStmt()
           
 ReferencedNode createNodeRef()
           
 ReferencedStyle createStyle()
           
 Collection<String> getEscapeTags()
           
 NodeItem getNode(String name)
           
 Collection<NodeItem> getNodes()
           
 StyleItem getStyle(String name)
           
 Collection<StyleItem> getStyles()
           
 boolean onCheck()
           
protected  void register()
           
 void setEscape(String tag)
           
 void setNodeRef(String node)
           
 void setNodeRefs(String nodes)
           
 void setStyle(String style)
           
 void setStyles(String styles)
           
 void solve()
           
 void writeJavaFile(JavaPrintStream out)
           
 void writeJavaFile(String prefix, JavaPrintStream out)
           
 
Methods inherited from class net.jtools.tmpl.model.SimpleItem.Writeable
getClassname, setClassname
 
Methods inherited from class net.jtools.tmpl.model.SimpleItem
check, commaseparated, getModel, getName, getParent, isChecked, literal, setName
 
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.StyleItem
setName
 

Constructor Detail

WriteableStyle

public WriteableStyle(Item parent)
Method Detail

createBlockCode

public WriteableNode.Code createBlockCode()

createBlockComment

public WriteableNode.Comment createBlockComment()

createBlockEvaluation

public WriteableNode.Evaluation createBlockEvaluation()

createBlockExpression

public WriteableNode.Expression createBlockExpression()

createBlockStmt

public WriteableNode.Statement createBlockStmt()

createEscape

public WriteableStyle.TagHolder createEscape()

createLineCode

public WriteableNode.Code createLineCode()

createLineComment

public WriteableNode.Comment createLineComment()

createLineEvaluation

public WriteableNode.Evaluation createLineEvaluation()

createLineExpression

public WriteableNode.Expression createLineExpression()

createLineStmt

public WriteableNode.Statement createLineStmt()

createNodeRef

public ReferencedNode createNodeRef()

createStyle

public ReferencedStyle createStyle()

getEscapeTags

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

getNode

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

getNodes

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

getStyle

public StyleItem getStyle(String name)
Specified by:
getStyle in interface StyleItem

getStyles

public Collection<StyleItem> getStyles()
Specified by:
getStyles in interface StyleItem

onCheck

public boolean onCheck()
Overrides:
onCheck in class SimpleItem

register

protected void register()

setEscape

public void setEscape(String tag)

setNodeRef

public void setNodeRef(String node)

setNodeRefs

public void setNodeRefs(String nodes)

setStyle

public void setStyle(String style)

setStyles

public void setStyles(String styles)

solve

public void solve()
Specified by:
solve in interface Item
Overrides:
solve in class SimpleItem

writeJavaFile

public void writeJavaFile(JavaPrintStream out)
Specified by:
writeJavaFile in interface Item.Writeable

writeJavaFile

public void writeJavaFile(String prefix,
                          JavaPrintStream out)

JTools

© 2000-2006, JTools.org.