OOI UA-ModelCompiler

Template Members

The Template type exposes the following members.

Constructors


  Name Description
Public method Template(TextWriter, String, Assembly)
Initializes the stream from the resource block of the specified assembly.

Methods


  Name Description
Public method AddReplacement
Adds a replacement value for a token.
Protected method StrCmp
Determines if the target exists in the string at the specified index.
Public method Write(Char)
Writes the text to the stream.
Public method Write(String)
Writes the text to the stream.
Public method Write(String, Object)
Formats and then writes the text to the stream.
Public method Write(String, Object, Object)
Formats and then writes the text to the stream.
Public method Write(String, Object, Object, Object)
Formats and then writes the text to the stream.
Public method Write(String, array<Object>[]()[][])
Formats and then writes the text to the stream.
Public method WriteLine(String)
Writes the text to the stream followed by a new line.
Public method WriteLine(String, Object)
Formats and then writes the text to the stream followed by a new line.
Public method WriteLine(String, Object, Object)
Formats and then writes the text to the stream followed by a new line.
Public method WriteLine(String, Object, Object, Object)
Formats and then writes the text to the stream followed by a new line.
Public method WriteLine(String, array<Object>[]()[][])
Formats and then writes the text to the stream followed by a new line.
Public method WriteNextLine
Writes a newline and then indents the text for the next line.
Public method WriteTemplate(Context)
Performs the substitutions specified in the template and writes it to the stream.
Protected method WriteTemplate(Object, String, String)
Substitutes a multi-line template for a token.
Protected method WriteToken
Substitutes simple text template for a token.

Properties


  Name Description
Public property Indent
Returns enough whitespace to indent the current line properly.
Protected property IndentCount
The number of levels to ident a the current line.
Public property NewLine
Returns the new line characters.
Public property Replacements
The table of tokens to replace.
Protected property TemplateEndAppendNewLineTag
The tag that marks the end of a template body and is replaced by a new line.
Protected property TemplateEndTag
The tag that marks the end of a template body.
Public property Templates
The templates to load.
Protected property TemplateStartTag
The tag that marks the start of a template body.