public class ProcessContainer
extends java.lang.Object
PCTree
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDENT |
(package private) static java.lang.StringBuffer |
msgbuf |
static java.lang.String |
pathSep |
Constructor and Description |
---|
ProcessContainer(com.rational.test.ft.object.interfaces.DomainTestObject[] domains)
Simplified constructor, takes array of DomainTestObject as the starting point,
opens preset filename for write, then calls processDomain(domains[i])
for each domains[i] in the passed array, finally closes the output file.
|
ProcessContainer(com.rational.test.ft.object.interfaces.DomainTestObject[] domains,
java.lang.String filename,
boolean withCommentsAndBlankLines)
Intermediate constructor, takes array of DomainTestObject as the starting point,
opens filename for write, then calls processDomain(domains[i]) for each domains[i] in the
passed array, finally closes the file.
|
ProcessContainer(com.rational.test.ft.object.interfaces.DomainTestObject[] domains,
java.lang.String filename,
boolean verbose,
boolean iniVsTreeFormat,
boolean withNameIncludeOnlyCaption,
boolean withCommentsAndBlankLines,
boolean ignoreInvisibleComponents,
boolean append)
Detailed constructor, takes array of DomainTestObject as the starting point,
opens filename for write, then calls processDomain(domains[i]) for each domains[i] in the
passed array, finally closes the file.
|
ProcessContainer(com.rational.test.ft.object.interfaces.TestObject container)
Simple constructor, takes a TestObject as the starting point,
opens preset filename for write, then calls processContainer(container),
finally closes the file.
|
ProcessContainer(com.rational.test.ft.object.interfaces.TestObject container,
java.lang.String filename)
Intermediate constructor, takes a TestObject as the starting point,
opens filename for write, then calls processContainer(container), finally closes the file.
|
ProcessContainer(com.rational.test.ft.object.interfaces.TestObject container,
java.lang.String filename,
boolean verbose,
boolean iniVsTreeFormat,
boolean withNameIncludeOnlyCaption,
boolean withCommentsAndBlankLines,
boolean ignoreInvisibleComponents,
boolean append)
Detailed constructor, takes a TestObject as the starting point,
opens filename for write, then calls processContainer(container), finally closes the file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeWriter(java.io.Writer writer)
Closes the passed writer.
|
protected java.lang.String |
genRecogString(PCTree pctree,
com.rational.test.ft.object.interfaces.TestObject container,
java.util.Map properties,
java.lang.String parentText)
Used internally.
|
static boolean |
getAppendMode() |
static boolean |
getIgnoreInvisibleComponents() |
static boolean |
getIgnoreInvisibleTabPanes() |
static boolean |
getINITreeFormat() |
protected java.lang.String |
getMappedClassType(com.rational.test.ft.object.interfaces.TestObject tobj,
java.lang.String objectClassName)
Used internally.
|
static java.lang.String |
getRootFilename() |
static boolean |
getShortenGeneralRecognition() |
static boolean |
getShortenNamedRecognition() |
static boolean |
getShowCommentsAndBlankLines() |
static boolean |
getShowMethods() |
static boolean |
getShowProperties() |
static boolean |
getVerbose() |
protected java.lang.String |
makeName(java.lang.String text,
java.lang.String compType)
Used internally.
|
protected java.io.Writer |
openWriter(java.lang.String filename,
boolean append)
Opens a new BufferedWriter(FileWriter(filename)).
|
protected PCTree |
processChildren(com.rational.test.ft.object.interfaces.TestObject[] children,
java.lang.String parentText,
PCTree parent)
Used internally.
|
PCTree |
processContainer(com.rational.test.ft.object.interfaces.TestObject container,
java.lang.String parentText,
PCTree parent)
Entry point to process a domain or object container.
|
protected PCTree |
processDomain(com.rational.test.ft.object.interfaces.DomainTestObject domain,
PCTree parent)
Used internally.
|
protected PCTree |
processObjectContainer(com.rational.test.ft.object.interfaces.TestObject container,
java.lang.String parentText,
PCTree parent)
Used internally.
|
static void |
setAppendMode(boolean set)
Set the status of the 'append' flag.
|
static void |
setIgnoreInvisibleComponents(boolean set)
Set the status of the 'ignoreInvisibleComponents' flag.
|
static void |
setIgnoreInvisibleTabPanes(boolean set)
Set the status of the 'ignoreInvisibleTabPanes' flag.
|
static void |
setINITreeFormat(boolean set)
Set the status of the 'iniVsTreeFormat' flag.
|
static void |
setRootFilename(java.lang.String file)
Set the current value of the 'rootFileName' String.
|
static void |
setShortenGeneralRecognition(boolean set)
Set the status of the 'shortenGeneralRecognition' flag.
|
static void |
setShortenNamedRecognition(boolean set)
Set the status of the 'withNameIncludeOnlyCaption' flag.
|
static void |
setShowCommentsAndBlankLines(boolean set)
Set the status of the 'withCommentsAndBlankLines' flag.
|
static void |
setShowMethods(boolean show)
Set the status of the 'showMethods' flag.
|
static void |
setShowProperties(boolean show)
Set the status of the 'showProperties' flag.
|
static void |
setVerbose(boolean set)
Set the status of the 'verbose' flag.
|
protected void |
write(java.lang.String data)
Writes String data to the writer ONLY if verbose is true.
|
protected void |
writeMethods(com.rational.test.ft.value.MethodInfo[] methods)
Write the methods info provided.
|
protected void |
writeNewLine(java.io.Writer writer)
Write a new line to the passed 'writer'
|
protected void |
writeProperties(java.lang.String propType,
java.util.Map properties)
Write the passed property type line(propType) and then the values of the 'properties'
The routine will not write the properties out if showProperties is false.
|
protected void |
writeRaw(java.lang.String data)
Write the raw data to the open writer.
|
protected void |
writeState(com.rational.test.ft.object.interfaces.TestObject container)
Write the isEnabled and isShowing states of the 'container'
|
protected void |
writeTree(PCTree tree)
Write the PCTree data to the writer.
|
protected void |
writeTreeXML(java.lang.String xmlfile,
PCTree tree)
Output the PCTree data in XML format.
|
public static final java.lang.String INDENT
public static final java.lang.String pathSep
static java.lang.StringBuffer msgbuf
public ProcessContainer(com.rational.test.ft.object.interfaces.DomainTestObject[] domains)
This constructor is typically called after many of the static methods have been used to set operating criteria.
DomainTestObject[]
- domainspublic ProcessContainer(com.rational.test.ft.object.interfaces.DomainTestObject[] domains, java.lang.String filename, boolean withCommentsAndBlankLines)
The settings provided by other constructors can also be preset through static method calls prior to calling this constructor.
domains,
- DomainTestObject[]filename,
- StringwithCommentsAndBlankLines,
- booleanpublic ProcessContainer(com.rational.test.ft.object.interfaces.DomainTestObject[] domains, java.lang.String filename, boolean verbose, boolean iniVsTreeFormat, boolean withNameIncludeOnlyCaption, boolean withCommentsAndBlankLines, boolean ignoreInvisibleComponents, boolean append)
domains,
- DomainTestObject[]filename,
- Stringverbose,
- boolean, puts out more info if trueiniVsTreeFormat,
- boolean, if true then ini format, else treewithNameIncludeOnlyCaption,
- if false, include full recog stringwithCommentsAndBlankLines,
- booleanignoreInvisibleComponents,
- booleanappend,
- booleanpublic ProcessContainer(com.rational.test.ft.object.interfaces.TestObject container)
The settings provided by other constructors can also be preset through static calls to the ProcessContainer.setXXX methods.
container,
- TestObjectpublic ProcessContainer(com.rational.test.ft.object.interfaces.TestObject container, java.lang.String filename)
The settings provided by other constructors can also be preset through static calls to the ProcessContainer.setXXX methods.
container,
- TestObjectfilename,
- Stringpublic ProcessContainer(com.rational.test.ft.object.interfaces.TestObject container, java.lang.String filename, boolean verbose, boolean iniVsTreeFormat, boolean withNameIncludeOnlyCaption, boolean withCommentsAndBlankLines, boolean ignoreInvisibleComponents, boolean append)
container,
- TestObjectfilename,
- Stringverbose,
- boolean, puts out more info if trueiniVsTreeFormat,
- boolean, if true then ini format, else treewithNameIncludeOnlyCaption,
- if false, include full recog stringwithCommentsAndBlankLines,
- booleanignoreInvisibleComponents,
- booleanappend,
- booleanprotected PCTree processDomain(com.rational.test.ft.object.interfaces.DomainTestObject domain, PCTree parent)
domain,
- DomainTestObjectparent,
- PCTree passed along to processChildrenprocessChildren(TestObject[], String, PCTree)
public PCTree processContainer(com.rational.test.ft.object.interfaces.TestObject container, java.lang.String parentText, PCTree parent)
container,
- TestObjectparentText,
- String, for menus, it is the path of our parentprocessDomain(DomainTestObject, PCTree)
,
processObjectContainer(TestObject, String, PCTree)
protected PCTree processObjectContainer(com.rational.test.ft.object.interfaces.TestObject container, java.lang.String parentText, PCTree parent)
container,
- TestObjectparentText,
- String, for menus, it is the path of our parent
processChildren(TestObject[], String, PCTree)
protected PCTree processChildren(com.rational.test.ft.object.interfaces.TestObject[] children, java.lang.String parentText, PCTree parent)
children,
- TestObject[] (can be null)parentText,
- String, typically for menus, it is the Path of our parentpctree
- PCTree, keeps the recognition string info, will be writtenprocessContainer(TestObject, String, PCTree)
protected java.lang.String getMappedClassType(com.rational.test.ft.object.interfaces.TestObject tobj, java.lang.String objectClassName)
tobj,
- TestObjectobjectClassName,
- Stringprotected java.lang.String genRecogString(PCTree pctree, com.rational.test.ft.object.interfaces.TestObject container, java.util.Map properties, java.lang.String parentText)
pctree
- PCTree, keeps the rcognition string info, will be writtencontainer,
- TestObjectproperties,
- MapparentText,
- String, for menus, it is the path of our parentprotected java.lang.String makeName(java.lang.String text, java.lang.String compType)
text,
- StringcompType,
- Stringprotected void writeProperties(java.lang.String propType, java.util.Map properties)
propType,
- String simple description of the types of properties processed.properties,
- Map (can be null)showProperties
,
getShowProperties()
protected void writeMethods(com.rational.test.ft.value.MethodInfo[] methods)
methods,
- MethodInfo[] (can be null)showMethods
,
getShowMethods()
protected void writeState(com.rational.test.ft.object.interfaces.TestObject container)
container,
- TestObject (can be null)protected void write(java.lang.String data)
data,
- Stringverbose
,
getVerbose()
protected void writeTree(PCTree tree)
tree,
- PCTreeiniVsTreeFormat
,
getINITreeFormat()
,
PCTree.toIniString()
,
PCTree.toString()
protected void writeTreeXML(java.lang.String xmlfile, PCTree tree)
xmlfile,
- String filename for outputtree,
- PCTree to output in XML encoded formatXMLEncoderDecoder.xmlEncode(Serializable)
protected void writeRaw(java.lang.String data)
data,
- Stringprotected void writeNewLine(java.io.Writer writer) throws java.io.IOException
writer,
- Writerjava.io.IOException
- Writer pass-thruprotected void closeWriter(java.io.Writer writer)
writer,
- Writerprotected java.io.Writer openWriter(java.lang.String filename, boolean append)
filename,
- Stringappend,
- boolean true if file is to be opened in Append mode.public static boolean getShowMethods()
showMethods
public static void setShowMethods(boolean show)
showMethods
public static boolean getShowProperties()
showProperties
public static void setShowProperties(boolean show)
showProperties
public static boolean getVerbose()
verbose
public static void setVerbose(boolean set)
verbose
public static boolean getINITreeFormat()
iniVsTreeFormat
public static void setINITreeFormat(boolean set)
iniVsTreeFormat
public static boolean getShortenNamedRecognition()
withNameIncludeOnlyCaption
public static void setShortenNamedRecognition(boolean set)
withNameIncludeOnlyCaption
public static boolean getShortenGeneralRecognition()
shortenGeneralRecognition
public static void setShortenGeneralRecognition(boolean set)
shortenGeneralRecognition
public static boolean getShowCommentsAndBlankLines()
withCommentsAndBlankLines
public static void setShowCommentsAndBlankLines(boolean set)
withCommentsAndBlankLines
public static boolean getIgnoreInvisibleComponents()
ignoreInvisibleComponents
public static void setIgnoreInvisibleComponents(boolean set)
ignoreInvisibleComponents
public static boolean getIgnoreInvisibleTabPanes()
ignoreInvisibleTabPanes
public static void setIgnoreInvisibleTabPanes(boolean set)
ignoreInvisibleTabPanes
public static boolean getAppendMode()
append
public static void setAppendMode(boolean set)
append
public static java.lang.String getRootFilename()
rootFileName
public static void setRootFilename(java.lang.String file)
rootFileName
Copyright © SAS Institute. All Rights Reserved.