|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.query.template.ExpImpForReportTemplate
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private static boolean |
DEBUG
|
static String |
XML_ATTR_DELEGATIONSPEC
|
static String |
XML_ATTR_DESCRIPTION
|
static String |
XML_ATTR_NAME
|
static String |
XML_ATTR_URLSPEC
|
static String |
XML_ATTR_XML
|
static String |
XML_ATTR_XSLSPEC
|
static String |
XML_ATTR_XSLTYPE
|
static String |
XML_REPORT_TEMPLATE
|
static String |
XSL_DELEGATION_SPEC
|
static String |
XSL_URL_SPEC
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForReportTemplate()
|
Method Summary | |
void |
checkConflicts(IxbElement fileXML,
Importer importer)
Checks conflicts that can arise while import process. |
Object |
createObject(IxbElement fileXML,
Importer importer)
Creates new instance of Windchill object. |
void |
exportObject(Object object,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
Object |
findAmongExistingObjects(IxbElement fileXML,
Importer importer)
Implements typical way of finding whether object from given XML file exists already in Windchill database. |
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
String |
getObjectDisplayID(IxbElement fileXML,
Importer importer)
Return the localized identity of the element that will be used in import operation. |
Object |
importObjectAttributes(Object ob,
IxbElement fileXML,
Importer importer)
Imports class specific atributes from the XML file. |
Object |
importObjectAttributesAfterStore(Object object,
IxbElement fileXML,
Importer importer)
Imports class specific atributes from the XML element after object gets stored This method should be implemented for most of the classes This method is required because some of attributes (IBA, Content) can not be added to the object before it gets stored. |
private static void |
PP(String s)
|
private static void |
printout(String s)
|
Object |
storeObject(Object object,
IxbElement fileXML,
Importer importer)
That is the general template how to store object. |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, prepareForCheckConflicts, prepareForImport, previewElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String XML_REPORT_TEMPLATE
public static final String XML_ATTR_NAME
public static final String XML_ATTR_DESCRIPTION
public static final String XML_ATTR_XML
public static final String XML_ATTR_XSLTYPE
public static final String XML_ATTR_XSLSPEC
public static final String XML_ATTR_DELEGATIONSPEC
public static final String XML_ATTR_URLSPEC
public static final String XSL_DELEGATION_SPEC
public static final String XSL_URL_SPEC
private static boolean DEBUG
Constructor Detail |
public ExpImpForReportTemplate()
Method Detail |
public void exportObject(Object object, Exporter exporter) throws WTException
ClassExporterImporterTemplate
createFileXMLOnExport(Exporter exporter)
, which
create an IxbDocument
with the root tag. See getRootTag()
;
exportAttributes (Object object, IxbElement fileXML,
Exporter exporter)
which will export the attributes according
to the DTD. The parameter fileXML is the returned vlue from createFileXMLOnExport(Exporter
exporter)
.
storeElement(Object object, IxbElement fileXML, Exporter
exporter)
which will store the fileXML into an xml-file.
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
exportObject
in interface ClassExporter
exportObject
in class ClassExporterImporterTemplate
object
- exporter
- The Exporter
instance that represents the context of the export operation.
WTException
public void checkConflicts(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
checkConflicts
in interface ElementImporter
checkConflicts
in class ClassExporterImporterTemplateGeneral
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public Object findAmongExistingObjects(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
findAmongExistingObjects
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public Object createObject(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
createObject
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public Object importObjectAttributes(Object ob, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
importObjectAttributes
in class ClassExporterImporterTemplate
ob
- fileXML
- importer
-
WTException
public Object storeObject(Object object, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
storeObject
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
WTException
public Object importObjectAttributesAfterStore(Object object, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
importObjectAttributes
method
because it is called before store object.
WTPart
)
then for this class generally a new implementation of this method
should be given;
in this implementation it should at first call importObjectAttributesAfterStore()
of its ansector
importObjectAttributesAfterStore
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
WTException
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public String getObjectDisplayID(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
getObjectDisplayID
in interface ElementImporter
getObjectDisplayID
in class ClassExporterImporterTemplateGeneral
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
private static void PP(String s)
private static void printout(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |