public class TCFormatUtility
extends java.lang.Object
Constructor and Description |
---|
TCFormatUtility() |
Modifier and Type | Method and Description |
---|---|
private static void |
addLineToText(java.lang.StringBuffer sb,
java.lang.String newIndent,
java.lang.String newline,
java.lang.String key,
java.lang.String value)
Convenience method to add a line to the internal textual representation.
|
static void |
printXMLFormat(TransformationStore tStore)
Prints the transformations in XML format
|
private static java.lang.String |
quote(java.lang.String str)
Quotes a String.
|
private static java.lang.String |
toText(TransformationCatalogEntry entry,
java.lang.String newline,
java.lang.String indent)
Converts the transformation catalog entry object to the multi line
textual representation.
|
static java.lang.String |
toTextFormat(TransformationStore mTCStore)
Converts the transformations into multi line text format
|
public static java.lang.String toTextFormat(TransformationStore mTCStore)
mTCStore
- the transformation storeprivate static java.lang.String toText(TransformationCatalogEntry entry, java.lang.String newline, java.lang.String indent)
entry
- the transformation catalog entrynewline
- the newline charactersindent
- the indentation to useprivate static void addLineToText(java.lang.StringBuffer sb, java.lang.String newIndent, java.lang.String newline, java.lang.String key, java.lang.String value)
sb
- the StringBuffer to which contents are to be added.newIndent
- the indentationkey
- the keyvalue
- the valueprivate static java.lang.String quote(java.lang.String str)
str
- the String to be quoted.public static void printXMLFormat(TransformationStore tStore)
tStore
- the transformation store