lapis.tools
Class Template

java.lang.Object
  extended bylapis.tools.Template
Direct Known Subclasses:
Template.FieldTemplate, Template.ListTemplate, Template.LiteralTemplate, Template.SelfTemplate, Template.SequenceTemplate

public abstract class Template
extends Object


Nested Class Summary
static class Template.FieldTemplate
           
static class Template.ListTemplate
           
static class Template.LiteralTemplate
           
static class Template.SelfTemplate
           
static class Template.SequenceTemplate
           
 
Field Summary
static Template HTML_BULLETS
           
static Template HTML_LINES
           
static Template HTML_PARAGRAPHS
           
static Template SELF
           
static Template SIMPLE_LIST
           
static Template TEXT_BULLETS
           
static Template TEXT_LINES
           
static Template TEXT_PARAGRAPHS
           
 
Constructor Summary
Template()
           
 
Method Summary
 void bind(RegionSet list, Document doc)
           
 String evaluate(RegionSet s, Document doc)
           
static Template makeFromString(String str)
           
abstract  void print(RegionSet s, Document doc, PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELF

public static Template SELF

SIMPLE_LIST

public static Template SIMPLE_LIST

HTML_LINES

public static Template HTML_LINES

HTML_PARAGRAPHS

public static Template HTML_PARAGRAPHS

HTML_BULLETS

public static Template HTML_BULLETS

TEXT_LINES

public static Template TEXT_LINES

TEXT_PARAGRAPHS

public static Template TEXT_PARAGRAPHS

TEXT_BULLETS

public static Template TEXT_BULLETS
Constructor Detail

Template

public Template()
Method Detail

makeFromString

public static Template makeFromString(String str)
                               throws TCParseException
Throws:
TCParseException

bind

public void bind(RegionSet list,
                 Document doc)
          throws TCParseException
Throws:
TCParseException

print

public abstract void print(RegionSet s,
                           Document doc,
                           PrintWriter out)

evaluate

public String evaluate(RegionSet s,
                       Document doc)