|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.tool.ReportIndex
Field Summary | |
private Document |
document_
|
private static String |
ENTRY_TIMESTAMP
|
static String |
INDEX_ELEMENT_NAME
|
Element |
reportElement_
|
private Element |
reportTS_
|
private Element |
rootElement_
|
Constructor Summary | |
ReportIndex()
Creates a new ReportIndex object. |
|
ReportIndex(InputStream index_file)
Updates an existing index.xml file which is retrieved from the jar file. |
Method Summary | |
void |
addLink(String generated_output_file_name,
String report_object)
Adding the link of an output file to the UpgradeManagerOutputIndex. |
void |
addLinks(ReportStyler.IndexEntry[] generated_output_files_tags)
Retrieving the values of the file name to be added and the tag to be added |
private Document |
document()
document_ is created at the time index.xml is created or read |
private Element |
rootElement()
Checks if rootElement is null or not. |
void |
writeTo(OutputStream output_stream)
Create an instance to write the document to the specified stream in UTF-8 encoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String INDEX_ELEMENT_NAME
private static String ENTRY_TIMESTAMP
public Element reportElement_
private Document document_
private Element rootElement_
private Element reportTS_
Constructor Detail |
public ReportIndex()
public ReportIndex(InputStream index_file)
index_file
- The index_file retrieved from the UpgradeManagerOutputs.jarMethod Detail |
public void addLink(String generated_output_file_name, String report_object)
public void addLinks(ReportStyler.IndexEntry[] generated_output_files_tags)
generated_output_files_tags
- ReportStyler.IndexEntry IndexEntry is an inner class of
ReportStylerpublic void writeTo(OutputStream output_stream) throws IOException
output_stream
- Passed from ReportStyler
IOException
- Thrown by ddw.write(document());private final Document document()
private final Element rootElement()
IllegalStateException
- Thrown if the rootElement_ is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |