|
|||||||||||
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.ExpImpForIBADefinition
Field Summary | |
private static String |
ALREADY_EXPORTED
|
private static String |
IBA_DEFINITIONS_PATH_CACHE
|
private static String |
IBA_DEFINITIONS_ROOT_XML
|
private static String |
IMPORTED_EXISTING_IBA_DEFINITIONS
|
private static String |
IMPORTED_NEW_IBA_DEFINITIONS
|
private static boolean |
IS_HIERARCHICAL_DEFINITION_ALLOWED
|
static String |
LITE_IBA_REFERENCEABLE
IBAReferenceable is not Federatable, and generally different implementation of IBAReferenceable interface has quite different attributes and attribute constaints. |
static String |
NEW_IBA_DEFINITION_VIEW
|
private static String |
NOT_EXPORTED_DEFINITION
|
private static String |
NOT_EXPORTED_ORGANIZER
|
private ExpImpForUnits |
unitsHandler
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForIBADefinition()
|
Method Summary | |
void |
addIBADefinitionForExport(String path,
Exporter exporter)
|
void |
addIBAOrganizerForExport(String name,
Exporter exporter)
|
void |
checkConflicts(IxbElement rootXml,
Importer importer)
Check conflicts against existing iba definition or attribute organizer. |
private void |
checkConflictsForIBADefinition(IxbElement fileXML,
Importer importer,
Vector orgPaths)
|
private void |
checkQuantityOfMeasureConflictsForUnitDefinition(IxbElement fileXML,
AbstractAttributeDefinition aad,
Importer importer)
|
private void |
exportAttributeDefinition(AbstractAttributeDefinition ad,
Exporter exporter)
|
private void |
exportAttributeOrganizer(AttributeOrganizer ao,
Exporter exporter)
|
void |
exportObject(Object object,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
void |
finalizeExport(Exporter exporter)
This method is called in the end of the whole export process to execute any additional export process finalization. |
private AbstractAttributeDefinizerDefaultView |
getAttributeDefinizerView(String path,
Importer importer)
|
private AttributeOrganizer |
getAttributeOrganizerOfFullName(String fullName)
|
private AttributeOrganizer |
getAttributeOrganizerOfNameAndPath(String name,
String path)
AttributeOrganizer can not be uniquely determined by its name. |
private AttributeOrgDefaultView |
getAttributeOrgDefView(String fullPath)
|
private String |
getClassNameWithoutPath(String fullClassName)
|
private static String |
getFullPathOfIBAs(AbstractAttributeDefinizerDefaultView theView)
|
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. |
private String |
getParentPath(String path)
|
private static int |
getPathLevel(String path)
|
private String |
getPathOfAttributeDefinition_WithOrganizer(AttributeHierarchyParent ad)
|
private static String |
getPathWithoutOrg(String fullPath)
Assume the full path is TestOrganizer/Orga/TestString100, where it is assume that TestOrganizer/Orga is corresponding to AttributeOrganizer, and TestString100 is corresponding to StringDefinition. |
private String |
getPathWithoutOrgFromCache(Vector cachedOrgPaths,
String fullPath)
This method is invoked during conflict check for better user warning/error messages. |
private QuantityOfMeasureDefaultView |
getQuantityOfMeasureDefaultView(String qomName,
Importer importer)
|
protected String |
getRootTag()
|
private Object |
importAttributeOrganizerObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
private Object |
importBooleanDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
Object |
importElement(IxbElement rootXML,
Importer importer)
Imports XML element in context given by importer parameter. |
private Object |
importFloatDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
private Object |
importIntegerDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
private Object |
importRatioDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
private Object |
importReferenceDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
String referenceClass,
Importer importer)
|
private Object |
importStringDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
private Object |
importTimestampDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
private Object |
importUnitDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
String qomName,
Enumeration defaultMsNameValues,
Enumeration msNameValues,
Importer importer)
|
private Object |
importURLDefinitionObject(String name,
String description,
String displayName,
String hierachyDispname,
String parentPath,
Importer importer)
|
void |
outputLog(Object ob,
Importer importer)
Output log for imported object. |
private static void |
PP(String s)
|
void |
previewElement(IxbElement fileXML,
Importer importer)
Preview XML element in context given by importer parameter. |
static AbstractAttributeDefinition |
queryIBADefinitionFromFullPath(Class ibaDefClass,
String fullPath,
Importer importer)
Since IBA Definition name does not need to be unique anymore, to successfully query the AbstractAttributeDefinition object, the path and name shld be passed also. |
private void |
reallyImportIBADefinition(IxbElement fileXML,
Importer importer)
|
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
finalizeCheckConflicts, finalizeImport, getAdditionalImportPriority, prepareForCheckConflicts, prepareForImport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String NOT_EXPORTED_DEFINITION
private static final String NOT_EXPORTED_ORGANIZER
private static final String ALREADY_EXPORTED
public static final String NEW_IBA_DEFINITION_VIEW
public static final String LITE_IBA_REFERENCEABLE
private static final String IBA_DEFINITIONS_PATH_CACHE
private static final String IBA_DEFINITIONS_ROOT_XML
private static final String IMPORTED_NEW_IBA_DEFINITIONS
private static final String IMPORTED_EXISTING_IBA_DEFINITIONS
private ExpImpForUnits unitsHandler
private static boolean IS_HIERARCHICAL_DEFINITION_ALLOWED
Constructor Detail |
public ExpImpForIBADefinition()
Method Detail |
protected String getRootTag()
public void addIBADefinitionForExport(String path, Exporter exporter) throws WTException
WTException
public void addIBAOrganizerForExport(String name, Exporter exporter) throws WTException
WTException
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 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 exportAttributeDefinition(AbstractAttributeDefinition ad, Exporter exporter) throws WTException
WTException
private void exportAttributeOrganizer(AttributeOrganizer ao, Exporter exporter) throws WTException
WTException
public void checkConflicts(IxbElement rootXml, Importer importer) throws WTException
checkConflicts
in interface ElementImporter
checkConflicts
in class ClassExporterImporterTemplateGeneral
rootXml
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
private void checkConflictsForIBADefinition(IxbElement fileXML, Importer importer, Vector orgPaths) throws WTException
WTException
private void checkQuantityOfMeasureConflictsForUnitDefinition(IxbElement fileXML, AbstractAttributeDefinition aad, 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 void reallyImportIBADefinition(IxbElement fileXML, Importer importer) throws WTException
WTException
private Object importStringDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private Object importBooleanDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private Object importIntegerDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private Object importReferenceDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, String referenceClass, Importer importer) throws WTException
WTException
private Object importFloatDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private Object importRatioDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private Object importURLDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private Object importTimestampDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
private AbstractAttributeDefinizerDefaultView getAttributeDefinizerView(String path, Importer importer) throws WTException
WTException
private AttributeOrganizer getAttributeOrganizerOfNameAndPath(String name, String path) throws WTException
WTException
private AttributeOrgDefaultView getAttributeOrgDefView(String fullPath) throws WTException
WTException
private String getPathOfAttributeDefinition_WithOrganizer(AttributeHierarchyParent ad) throws WTException
WTException
private String getParentPath(String path)
private static int getPathLevel(String path)
private String getClassNameWithoutPath(String fullClassName)
private AttributeOrganizer getAttributeOrganizerOfFullName(String fullName) throws WTException
WTException
private Object importUnitDefinitionObject(String name, String description, String displayName, String hierachyDispname, String parentPath, String qomName, Enumeration defaultMsNameValues, Enumeration msNameValues, Importer importer) throws WTException
WTException
private Object importAttributeOrganizerObject(String name, String description, String displayName, String hierachyDispname, String parentPath, Importer importer) throws WTException
WTException
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public static AbstractAttributeDefinition queryIBADefinitionFromFullPath(Class ibaDefClass, String fullPath, Importer importer) throws WTException
WTException
private String getPathWithoutOrgFromCache(Vector cachedOrgPaths, String fullPath)
private static String getPathWithoutOrg(String fullPath) throws WTException
WTException
private static String getFullPathOfIBAs(AbstractAttributeDefinizerDefaultView theView) throws WTException
WTException
public void outputLog(Object ob, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
outputLog
in interface ElementImporter
outputLog
in class ClassExporterImporterTemplateGeneral
ob
- he object for the log. It can be a new imported object or an existing one in the datastore.importer
- The Importer
instance that represents the context of the import operation.
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
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
private QuantityOfMeasureDefaultView getQuantityOfMeasureDefaultView(String qomName, Importer importer) throws RemoteException, WTException
RemoteException
WTException
private static void PP(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |