Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scoja.server.template
Class Template  view Template download Template.java

java.lang.Object
  extended byorg.scoja.server.template.Template
All Implemented Interfaces:
EventWriter

public class Template
extends java.lang.Object
implements EventWriter


Field Summary
private static java.lang.String PARAM_EXPR
           
protected  TemplatePart[] parts
           
private static java.util.regex.Pattern pattern
           
private static java.util.Map var2part
           
 
Constructor Summary
Template(TemplatePart[] parts)
           
 
Method Summary
private static TemplatePart buildNamedHole(java.lang.String var)
           
 boolean isConstant()
           
static Template parse(java.lang.String template)
           
 java.lang.String toFilename()
           
 java.lang.String toFilename(org.scoja.server.core.EventContext context)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void writeTo(java.io.PrintWriter out, org.scoja.server.core.EventContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parts

protected final TemplatePart[] parts

PARAM_EXPR

private static final java.lang.String PARAM_EXPR
See Also:
Constant Field Values

pattern

private static final java.util.regex.Pattern pattern

var2part

private static final java.util.Map var2part
Constructor Detail

Template

public Template(TemplatePart[] parts)
Method Detail

parse

public static Template parse(java.lang.String template)

buildNamedHole

private static TemplatePart buildNamedHole(java.lang.String var)

isConstant

public boolean isConstant()

toFilename

public java.lang.String toFilename()

toFilename

public java.lang.String toFilename(org.scoja.server.core.EventContext context)

writeTo

public void writeTo(java.io.PrintWriter out,
                    org.scoja.server.core.EventContext context)
Specified by:
writeTo in interface EventWriter

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).