|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.dust.ExportXMLHandler
Provides methods to write the data files for the ExportBlobDataService class.
Field Summary | |
private AttributesImpl |
attributes
|
private static boolean |
DEVELOPER_MODE
|
private TransformerHandler |
handler
|
private static String |
RESOURCE
|
private Hashtable |
serializedClasses
|
private UpgradeEncoder |
upgradeEncoder
|
Constructor Summary | |
ExportXMLHandler()
|
Method Summary | |
void |
addTimingStats(TimerStats timerStats)
Creates a TIMING stats element from the given statistics. |
void |
close()
End the XML document. |
void |
createExportedDataElement(String table_name,
String class_name)
Create the root element for this document. |
void |
createInstanceElement(long oid)
Create an instance element. |
void |
createListOfClasses()
Create the serialized class list element showing the classes which have been encountered while de-serializing the blobs. |
void |
createPropertyDescriptorElement(String prop_desc_type,
String blob_name,
String column_name,
String class_name)
Create a property descriptor element, showing its type, name, and database info. |
void |
createPropertyElement(String property_name,
Serializable blob_object)
Create a property element, writing the encoded blob as CDATA and finding the IDREFs for the classes of object contained in the blob. |
void |
endElement(String tag)
Create an end element for the given tag. |
TransformerHandler |
getContentHandlerToWriteTo()
Use TransformerFactory to find a TransformerHandler which will write an XML file. |
String |
getIdRefsForProperty(ArrayList usedClasses)
Returns a comma delimited String of IDs which correspond to the given ArrayList of class names. |
Integer |
putSerializedClass(String className)
Store the names of the classes that have been serialized along with a corresponding ID, if it hasn't already been added. |
void |
reset(File file)
Resets the reusable objects |
void |
showStackTrace(WTException e)
Expand the stack trace text into an element with tag XmlConstants.STACK_TRACE_ELEMENT. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final boolean DEVELOPER_MODE
private static final String RESOURCE
private UpgradeEncoder upgradeEncoder
private Hashtable serializedClasses
private TransformerHandler handler
private AttributesImpl attributes
Constructor Detail |
public ExportXMLHandler() throws WTException
Method Detail |
public void reset(File file) throws SAXException
SAXException
public void close() throws SAXException
SAXException
public void showStackTrace(WTException e) throws SAXException
SAXException
public void createExportedDataElement(String table_name, String class_name) throws SAXException
SAXException
public void createInstanceElement(long oid) throws SAXException
SAXException
public void endElement(String tag) throws SAXException
SAXException
public void createPropertyElement(String property_name, Serializable blob_object) throws SAXException
SAXException
public void createPropertyDescriptorElement(String prop_desc_type, String blob_name, String column_name, String class_name) throws SAXException
SAXException
public TransformerHandler getContentHandlerToWriteTo() throws WTException
WTException
public Integer putSerializedClass(String className)
public void createListOfClasses() throws WTException
WTException
public String getIdRefsForProperty(ArrayList usedClasses)
public void addTimingStats(TimerStats timerStats) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |