|
|||||||||||
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.ixb.publicforhandlers.AbsExpImpForNonIteratedObject
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private String |
handlerName
|
protected Vector |
nonOverridableAttrVec
|
protected Vector |
overridableAttrVec
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
AbsExpImpForNonIteratedObject()
|
Method Summary | |
protected abstract Object |
_createObject(IxbElement fileXML,
Importer importer)
|
protected abstract Object |
_createSubstituteObject(IxbElement fileXML,
Importer importer)
|
protected Object |
_importObjectAttributes(Object object,
boolean objectExistsPriorImport,
IxbElement fileXML,
Importer importer)
|
boolean |
actionIsApplicable(String actionName)
|
protected void |
addAttrConflicts(Object existingObject,
String importedId,
IxbElement fileXML,
Importer importer)
|
protected void |
addAttributeConflicts(Object existingObject,
IxbElement fileXML,
Importer importer)
|
protected void |
addObjectConflict(Object existingObject,
IxbElement fileXML,
Importer importer)
|
protected void |
addSimpleAttributeConflicts(Object existingObject,
IxbElement fileXML,
Importer importer)
|
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. |
Object |
createSubstituteObject(IxbElement fileXML,
Importer importer)
|
protected void |
devError(String message)
|
protected boolean |
didObjectExistPriorImport(IxbElement fileXML,
Importer importer)
|
void |
exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
Export the attributes according to the DTD. |
protected void |
exportObjectAttributes(Object object,
IxbElement fileXML,
Exporter exporter)
|
protected void |
exportSimpleAttributes(Object object,
IxbElement fileXML)
|
Object |
findAmongExistingObjects(IxbElement fileXML,
Importer importer)
Implements typical way of finding whether object from given XML file exists already in Windchill database. |
Object |
findExistingSubstituteObject(IxbElement fileXML,
Importer importer)
|
protected Object |
findNCacheObjectFromXML(IxbElement fileXML,
Importer importer)
|
protected abstract Object |
findObjectExistingPriorImport(IxbElement fileXML,
Importer importer)
|
protected Object |
findObjectFromCache(IxbElement fileXML,
Importer importer)
|
Object |
findObjectFromXML(IxbElement fileXML,
Importer importer)
|
protected abstract Object |
findSubstituteObjectExistingPriorImport(IxbElement fileXML,
Importer importer)
|
protected String |
getActionName(IxbElement fileXML)
|
String |
getAttributeVal(Object object,
String attrTag)
|
String |
getDefaultActionName()
|
protected abstract String |
getExistingObjectIdString(Object object)
|
protected abstract String |
getImportedObjectIdString(IxbElement fileXML)
|
protected String |
getObjectDisplayID(Object object)
|
Object |
importElement(IxbElement fileXML,
Importer importer)
Imports XML element in context given by importer parameter. |
Object |
importObjectAttributes(Object object,
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. |
protected Object |
importSimpleAttributes(Object object,
boolean objectExistPriorImport,
Enumeration attrEnum,
IxbElement fileXML)
|
protected Object |
importSimpleAttributes(Object object,
boolean objectExistPriorImport,
IxbElement fileXML)
|
boolean |
isObjectInConflict(IxbElement fileXML,
Importer importer)
|
protected void |
logAndThrowWTException(WTException e,
String logMessage)
|
protected void |
logWTException(WTException e,
String logMessage)
|
protected boolean |
needToUpdate(Object existingObject,
IxbElement fileXML,
Importer importer)
|
boolean |
objectExistPriorImport(IxbElement element,
Importer importer)
|
void |
outputLog(Object object,
Importer importer)
Output log for imported object. |
protected void |
printLog(String message)
|
protected void |
putObjectInfoInCache(Persistable persistant,
boolean isNew,
IxbElement fileXML,
Importer importer)
|
protected void |
resetObjectConflictContext(Object existingObject,
IxbElement fileXML,
Importer importer)
|
void |
setAttributeVal(Object object,
String attrTag,
String attrVal)
|
protected void |
setObjectConflictContext(Object existingObject,
IxbElement fileXML,
Importer importer)
|
Object |
storeObject(Object object,
IxbElement fileXML,
Importer importer)
That is the general template how to store object. |
boolean |
supportsImportActors()
|
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportObject, finalizeImportObject, getRootTag, isObjectIgnored, isObjectNew, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wt.ixb.publicforhandlers.ExpOfObjectRefIfc |
exportObjectRef |
Field Detail |
protected Vector overridableAttrVec
protected Vector nonOverridableAttrVec
private String handlerName
Constructor Detail |
public AbsExpImpForNonIteratedObject()
Method Detail |
protected abstract String getExistingObjectIdString(Object object) throws WTException
WTException
protected abstract String getImportedObjectIdString(IxbElement fileXML) throws WTException
WTException
protected abstract Object findObjectExistingPriorImport(IxbElement fileXML, Importer importer) throws WTException
WTException
protected abstract Object findSubstituteObjectExistingPriorImport(IxbElement fileXML, Importer importer) throws WTException
WTException
protected abstract Object _createObject(IxbElement fileXML, Importer importer) throws WTException
WTException
protected abstract Object _createSubstituteObject(IxbElement fileXML, Importer importer) throws WTException
WTException
public Object importElement(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
importElement
in interface ElementImporter
importElement
in class ClassExporterImporterTemplate
fileXML
- importer
- The Importer
instance that represents the context of the import operation.
WTException
public void outputLog(Object object, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
outputLog
in interface ElementImporter
outputLog
in class ClassExporterImporterTemplate
WTException
public boolean supportsImportActors()
public boolean actionIsApplicable(String actionName) throws WTException
WTException
public String getDefaultActionName()
protected String getActionName(IxbElement fileXML) throws WTException
WTException
public void exportAttributes(Object object, IxbDocument fileXML, Exporter exporter) throws WTException
ClassExporterImporterTemplate
createFileXMLOnExport(Exporter
exporter)
.
exportAttributes
in class ClassExporterImporterTemplate
object
- fileXML
- exporter
-
WTException
public Object findAmongExistingObjects(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
findAmongExistingObjects
in interface ElementImportHandlerIfc
findAmongExistingObjects
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public Object findExistingSubstituteObject(IxbElement fileXML, Importer importer) throws WTException
findExistingSubstituteObject
in interface ElementImportHandlerIfc
WTException
public Object findObjectFromXML(IxbElement fileXML, Importer importer) throws WTException
findObjectFromXML
in interface ImpOfObjectRefIfc
WTException
protected Object findNCacheObjectFromXML(IxbElement fileXML, Importer importer) throws WTException
WTException
protected Object findObjectFromCache(IxbElement fileXML, Importer importer) throws WTException
WTException
protected void putObjectInfoInCache(Persistable persistant, boolean isNew, IxbElement fileXML, Importer importer) throws WTException
WTException
public Object createObject(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
createObject
in interface ElementImportHandlerIfc
createObject
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public Object createSubstituteObject(IxbElement fileXML, Importer importer) throws WTException
createSubstituteObject
in interface ElementImportHandlerIfc
WTException
public Object importObjectAttributes(Object object, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
importObjectAttributes
in interface ElementImportHandlerIfc
importObjectAttributes
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
WTException
public boolean objectExistPriorImport(IxbElement element, Importer importer) throws WTException
objectExistPriorImport
in interface ImpOfObjectRefIfc
WTException
protected boolean didObjectExistPriorImport(IxbElement fileXML, Importer importer) throws WTException
WTException
public Object storeObject(Object object, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
storeObject
in interface ElementImportHandlerIfc
storeObject
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
WTException
public boolean isObjectInConflict(IxbElement fileXML, Importer importer) throws WTException
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 interface ElementImportHandlerIfc
importObjectAttributesAfterStore
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
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
protected void addObjectConflict(Object existingObject, IxbElement fileXML, Importer importer) throws WTException
WTException
protected void addAttributeConflicts(Object existingObject, IxbElement fileXML, Importer importer) throws WTException
WTException
protected void addAttrConflicts(Object existingObject, String importedId, IxbElement fileXML, Importer importer) throws WTException
WTException
protected void setObjectConflictContext(Object existingObject, IxbElement fileXML, Importer importer) throws WTException
WTException
protected void resetObjectConflictContext(Object existingObject, IxbElement fileXML, Importer importer) throws WTException
WTException
protected boolean needToUpdate(Object existingObject, IxbElement fileXML, Importer importer) throws WTException
WTException
protected void exportObjectAttributes(Object object, IxbElement fileXML, Exporter exporter) throws WTException
WTException
protected Object _importObjectAttributes(Object object, boolean objectExistsPriorImport, IxbElement fileXML, Importer importer) throws WTException
WTException
protected void exportSimpleAttributes(Object object, IxbElement fileXML) throws WTException
WTException
protected Object importSimpleAttributes(Object object, boolean objectExistPriorImport, IxbElement fileXML) throws WTException
WTException
protected Object importSimpleAttributes(Object object, boolean objectExistPriorImport, Enumeration attrEnum, IxbElement fileXML) throws WTException
WTException
protected void addSimpleAttributeConflicts(Object existingObject, IxbElement fileXML, Importer importer) throws WTException
WTException
public String getAttributeVal(Object object, String attrTag) throws WTException
getAttributeVal
in interface IxbSimpleAttributeHolderIfc
WTException
public void setAttributeVal(Object object, String attrTag, String attrVal) throws WTException, WTPropertyVetoException
setAttributeVal
in interface IxbSimpleAttributeHolderIfc
WTException
WTPropertyVetoException
protected String getObjectDisplayID(Object object) throws WTException
WTException
protected void printLog(String message)
protected void logAndThrowWTException(WTException e, String logMessage) throws WTException
WTException
protected void logWTException(WTException e, String logMessage) throws WTException
WTException
protected void devError(String message) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |