Home > Class Reference > ENSLIB namespace > Ens.Util.HTML.TemplateTokenizer

Ens.Util.HTML.TemplateTokenizer

class Ens.Util.HTML.TemplateTokenizer extends Ens.Util.HTML.TokenClassifier

Tokenizer for the template language.
Syntax:
   n<tag>n[Text]{varname}
also:
   n<tag,attr1=[Text],attr2=[Text],attr3={varname}>

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter attr = 6;
parameter attrstart = 7;
parameter attrval = 8;
parameter attrvar = 9;
parameter done = 10;
parameter num = 3;
parameter space = 1;
parameter start = 0;
parameter tag = 4;
parameter text = 2;
parameter varname = 5;

Properties (Including Private)

property Count as %Integer;
number of repetitions of the token to find.
Property methods: CountDisplayToLogical(), CountGet(), CountIsValid(), CountLogicalToDisplay(), CountNormalize(), CountSet()
property Pos as %Integer;
Property methods: PosDisplayToLogical(), PosGet(), PosIsValid(), PosLogicalToDisplay(), PosNormalize(), PosSet()
property Rep as %Boolean;
Property methods: RepDisplayToLogical(), RepGet(), RepIsValid(), RepLogicalToDisplay(), RepNormalize(), RepPosDisplayToLogical(), RepPosGet(), RepPosIsValid(), RepPosLogicalToDisplay(), RepPosNormalize(), RepPosSet(), RepSet()
property RepPos as %Integer;
Property methods: RepPosDisplayToLogical(), RepPosGet(), RepPosIsValid(), RepPosLogicalToDisplay(), RepPosNormalize(), RepPosSet()
property Type as %String;
Type= (tag, text, varname)
Property methods: TypeDisplayToLogical(), TypeGet(), TypeIsValid(), TypeLogicalToDisplay(), TypeLogicalToOdbc(), TypeNormalize(), TypeSet()
property Value as %String;
Property methods: ValueDisplayToLogical(), ValueGet(), ValueIsValid(), ValueLogicalToDisplay(), ValueLogicalToOdbc(), ValueNormalize(), ValueSet()
property attrs [ MultiDimensional ];
Property methods: attrsDisplayToLogical(), attrsGet(), attrsIsValid(), attrsLogicalToDisplay(), attrsLogicalToOdbc(), attrsNormalize(), attrsSet()
property cLen as %Integer;
Property methods: cLenDisplayToLogical(), cLenGet(), cLenIsValid(), cLenLogicalToDisplay(), cLenNormalize(), cLenSet()
property input as %String;
Property methods: inputDisplayToLogical(), inputGet(), inputIsValid(), inputLogicalToDisplay(), inputLogicalToOdbc(), inputNormalize(), inputSet()
property numReps as %Integer;
Property methods: numRepsDisplayToLogical(), numRepsGet(), numRepsIsValid(), numRepsLogicalToDisplay(), numRepsNormalize(), numRepsSet()

Methods (Including Private)

method %OnNew(initvalue As %CacheString) as %Status
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

method GetAttrs(ByRef attrs)
method NextToken(ByRef pSC As %Status = $$$OK) as %Boolean

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)