|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.handlers.forclasses.ExpImpForUnits
Field Summary | |
private static String |
ALREADY_EXPORTED
|
private Vector |
importedExistingUnits
|
private Vector |
importedNewUnits
|
private static String |
NOT_EXPORTED_MEASUREMENT_SYSTEM
|
private static String |
NOT_EXPORTED_QUANTITY_OF_MEASURE
|
private IxbDocument |
rootXML
|
private Hashtable |
units
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForUnits()
|
Method Summary | |
void |
addMeasurementSystemForExport(String name)
|
void |
addQuantityOfMeasureForExport(String name)
|
void |
checkConflicts(IxbElement fileXML,
Importer importer)
Checks conflicts that can arise while import process. |
private boolean |
checkConflictsForMeasurementSystems(IxbElement fileXML,
Importer importer,
MeasurementSystemDefaultView msView)
we require the 2 measurement systems (represented by "msView" and fileXML, respectively) to have the same exactly symbols and symbol values; otherwise we report a conflict .... |
private boolean |
checkConflictsForQuantityOfMeasures(IxbElement fileXML,
Importer importer,
QuantityOfMeasureDefaultView qomView)
we require the 2 QuantityOfMeasure (represented by "qomView" and fileXML, respectively) to have the same (as follows) 1) Base symbols must be the same; 2) and symbol values; otherwise we report a conflict .... |
protected static boolean |
checkIdenticalAttributes(Enumeration keyValues,
Hashtable attrs,
boolean ignoreExtraAttr)
|
private void |
exportMeasurementSystem(MeasurementSystemDefaultView msView,
Exporter exporter)
|
void |
exportObject(Object object,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
private void |
exportQuantityOfMeasure(QuantityOfMeasureDefaultView qomView,
Exporter exporter)
|
void |
finalizeExport(Exporter exporter)
This method is called in the end of the whole export process to execute any additional export process finalization. |
Object |
findAmongExistingObjects(IxbElement fileXML,
Importer importer)
|
private MeasurementSystemDefaultView |
findExistingMeasurementSystemDefaultView(IxbElement fileXML,
Importer importer)
|
private QuantityOfMeasureDefaultView |
findExistingQuantityOfMeasureDefaultView(IxbElement fileXML,
Importer importer)
|
private String |
getClassNameWithoutPath(String fullClassName)
|
int |
getImportPriority()
because of UnitDefinition (which has an attribute of QuantityOfMeasure), QuantityOfMeasure and MeasurementSystem objects shld have a higher priority than IBA Definitions |
protected String |
getRootTag()
|
Object |
importElement(IxbElement rootXML,
Importer importer)
Imports XML element in context given by importer parameter. |
private MeasurementSystemDefaultView |
importMeasurementSystems(IxbElement fileXML,
Importer importer)
|
private QuantityOfMeasureDefaultView |
importQuantityOfMeasures(IxbElement fileXML,
Importer importer)
|
void |
outputLog(Object ob,
Importer importer)
Output log for imported object that is imported by importElement. |
private static void |
PP(String s)
|
void |
previewElement(IxbElement fileXML,
Importer importer)
Preview XML element in context given by importer parameter. |
private Vector[] |
sortDisplayUnitsElements(Enumeration units)
MeasurementSystem will be imported before QuantityOfMeasure. |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
finalizeCheckConflicts, finalizeImport, getAdditionalImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Hashtable units
private IxbDocument rootXML
private Vector importedNewUnits
private Vector importedExistingUnits
private static final String NOT_EXPORTED_QUANTITY_OF_MEASURE
private static final String NOT_EXPORTED_MEASUREMENT_SYSTEM
private static final String ALREADY_EXPORTED
Constructor Detail |
public ExpImpForUnits()
Method Detail |
protected String getRootTag()
public void exportObject(Object object, Exporter exporter) throws WTException
ClassExporterImporterTemplateGeneral
exportObject
in interface ClassExporter
exportObject
in class ClassExporterImporterTemplateGeneral
object
- The object to be exported.exporter
- The Exporter
instance that represents the context of the export operation.
WTException
public void addQuantityOfMeasureForExport(String name) throws WTException
WTException
public void addMeasurementSystemForExport(String name) throws WTException
WTException
public void finalizeExport(Exporter exporter) throws WTException
ClassExporterImporterTemplateGeneral
finalizeExport
in interface ClassExporter
finalizeExport
in class ClassExporterImporterTemplateGeneral
exporter
- Exports the specified object in context given by parameter exporter.
WTException
private void exportQuantityOfMeasure(QuantityOfMeasureDefaultView qomView, Exporter exporter) throws WTException
WTException
private void exportMeasurementSystem(MeasurementSystemDefaultView msView, Exporter exporter) throws WTException
WTException
private String getClassNameWithoutPath(String fullClassName)
public void outputLog(Object ob, Importer importer) throws WTException
outputLog
in interface ElementImporter
outputLog
in class ClassExporterImporterTemplateGeneral
ob
- the object element that is importedimporter
- the container that represents the context of the import operation
WTException
public int getImportPriority() throws WTException
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public void previewElement(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
previewElement
in interface ElementImporter
previewElement
in class ClassExporterImporterTemplateGeneral
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import 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
WTException
public Object importElement(IxbElement rootXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
importElement
in interface ElementImporter
importElement
in class ClassExporterImporterTemplateGeneral
rootXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
private Vector[] sortDisplayUnitsElements(Enumeration units) throws WTException
WTException
private MeasurementSystemDefaultView importMeasurementSystems(IxbElement fileXML, Importer importer) throws RemoteException, WTException
RemoteException
WTException
private QuantityOfMeasureDefaultView importQuantityOfMeasures(IxbElement fileXML, Importer importer) throws RemoteException, WTException, WTPropertyVetoException
RemoteException
WTException
WTPropertyVetoException
private MeasurementSystemDefaultView findExistingMeasurementSystemDefaultView(IxbElement fileXML, Importer importer) throws RemoteException, WTException
RemoteException
WTException
private QuantityOfMeasureDefaultView findExistingQuantityOfMeasureDefaultView(IxbElement fileXML, Importer importer) throws RemoteException, WTException
RemoteException
WTException
private boolean checkConflictsForMeasurementSystems(IxbElement fileXML, Importer importer, MeasurementSystemDefaultView msView) throws WTException
WTException
private boolean checkConflictsForQuantityOfMeasures(IxbElement fileXML, Importer importer, QuantityOfMeasureDefaultView qomView) throws WTException
WTException
protected static boolean checkIdenticalAttributes(Enumeration keyValues, Hashtable attrs, boolean ignoreExtraAttr) throws WTException
WTException
private static void PP(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |