wt.ixb.handlers.netmarkets
Class NMGroupIxHandler

java.lang.Object
  extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
      extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplate
          extended bywt.ixb.handlers.netmarkets.NMGroupIxHandler
All Implemented Interfaces:
ClassExporter, ClassExporterImporter, ElementImporter

public class NMGroupIxHandler
extends ClassExporterImporterTemplate


Nested Class Summary
 
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
ClassExporterImporterTemplate.ContentHolderCommitListener
 
Field Summary
private static String _rb
           
private static NMProjectConstants.OrgStructureInfo orgTags
           
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
CONFLICT_RESOURCE
 
Constructor Summary
NMGroupIxHandler()
           
 
Method Summary
 Object createObject(IxbElement elem, Importer imp)
          Creates the group object for storage later.
 void exportObject(Object group, Exporter exp)
          Exports the specified object in context given by parameter exporter.
 Object findAmongExistingObjects(IxbElement elem, Importer imp)
          Checks to see if there is an existing group with the same group name.
 int getImportPriority()
          Return the import priority of the object type represented by this import handler.
 Object storeObject(Object theGroup, IxbElement elem, Importer imp)
          Actually store the group object.
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
checkConflicts, finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rb

private static final String _rb
See Also:
Constant Field Values

orgTags

private static final NMProjectConstants.OrgStructureInfo orgTags
Constructor Detail

NMGroupIxHandler

public NMGroupIxHandler()
Method Detail

exportObject

public void exportObject(Object group,
                         Exporter exp)
                  throws WTException
Description copied from class: ClassExporterImporterTemplate
Exports the specified object in context given by parameter exporter.
The implementation of this method is partitioned into several protected methods. Individual class handlers can override the following protected methods: Also, export actions from either client or system registry will be performed. Specifically, the two methods wt.ixb.tuner.ExportActionHelper.performPreExportAction () and wt.ixb.tuner.ExportActionHelper.performPostExportAction () will be called before and after th above three protected methods, respectively.

Supported API: true

Specified by:
exportObject in interface ClassExporter
Overrides:
exportObject in class ClassExporterImporterTemplate
Parameters:
group -
exp - The Exporter instance that represents the context of the export operation.
Throws:
WTException

createObject

public Object createObject(IxbElement elem,
                           Importer imp)
                    throws WTException
Creates the group object for storage later. All groups created are enabled. If the group is created in the context of a ProjectContainer, this method will mangle the name.

Specified by:
createObject in class ClassExporterImporterTemplate
Parameters:
elem -
imp -
Returns:
Object
Throws:
WTException

getImportPriority

public int getImportPriority()
                      throws WTException
Description copied from class: ClassExporterImporterTemplateGeneral
Return the import priority of the object type represented by this import handler.
Import priority defines the order in which objects will be imported. This method does not carry parameters in the signature. The return value can not be negative. Those XML files will have a higher import priority for smaller returned values.

Supported API: true

Specified by:
getImportPriority in interface ElementImporter
Specified by:
getImportPriority in class ClassExporterImporterTemplateGeneral
Returns:
int
Throws:
WTException

findAmongExistingObjects

public Object findAmongExistingObjects(IxbElement elem,
                                       Importer imp)
                                throws WTException
Checks to see if there is an existing group with the same group name. If so there a message is emmited to the log file to indicate that nothing needed to be done, and the object is returned. Otherwise we return null. This method should never be called directly by an application.

Overrides:
findAmongExistingObjects in class ClassExporterImporterTemplate
Parameters:
elem -
imp -
Returns:
Object
Throws:
WTException

storeObject

public Object storeObject(Object theGroup,
                          IxbElement elem,
                          Importer imp)
                   throws WTException
Actually store the group object.

Overrides:
storeObject in class ClassExporterImporterTemplate
Parameters:
theGroup -
elem -
imp -
Returns:
Object
Throws:
WTException