com.fdsapi
Class TemplateTagReader

java.lang.Object
  |
  +--com.fdsapi.TemplateReader
        |
        +--com.fdsapi.TemplateTagReader

public class TemplateTagReader
extends TemplateReader

This is a utility class used to parse templates. It abstracts concepts such as the value of the template tag and its x,y coordinate so in the future templates may be created in a different format (say XML) without having these effects ripple throughout the FormattedDataSet API.

View Code


Constructor Summary
protected TemplateTagReader(java.lang.String regularExpressionStr)
           
 
Method Summary
static TemplateTagReader createInstance(java.lang.String templateTagType)
          This routine is used to hide the implementation of using regular expressions.
 java.lang.String getTemplateTagValue()
           
 int getX()
           
 int getY()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.fdsapi.TemplateReader
getParen, next, setSourceString, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateTagReader

protected TemplateTagReader(java.lang.String regularExpressionStr)
Method Detail

createInstance

public static TemplateTagReader createInstance(java.lang.String templateTagType)
This routine is used to hide the implementation of using regular expressions.


getX

public int getX()

getY

public int getY()

getTemplateTagValue

public java.lang.String getTemplateTagValue()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception