wt.ixb.handlers.forattributes
Class ExpImpForLifecycleAttr

java.lang.Object
  extended bywt.ixb.publicforhandlers.AttributeExporterImporterTemplate
      extended bywt.ixb.handlers.forattributes.ExpImpForLifecycleAttr
All Implemented Interfaces:
AttributeExporterImporter

public class ExpImpForLifecycleAttr
extends AttributeExporterImporterTemplate


Field Summary
private  String defaultLifecycleName
           
private  String defaultLifecycleState
           
private  LifeCycleTemplate lct
           
private  Hashtable LifeCycleStateInfos
           
private  Hashtable LifeCycleTemplateInfos
           
private  StringBuffer workBuff
           
 
Fields inherited from class wt.ixb.publicforhandlers.AttributeExporterImporterTemplate
CONFLICT_RESOURCE
 
Constructor Summary
ExpImpForLifecycleAttr()
           
 
Method Summary
 void checkConflictForAttribute(Object existingOb, IxbElement fileXML, Importer importer)
          Checks conflicts that can arise while import process for the given attribute and object.
private  boolean checkLifeCycleStateConflict(String lifecycleName, String lifeCycleState)
           
private  boolean checkLifeCycleTemplateConflict(String lifeCycleName, WTContainerRef containerRef)
           
 void exportAttribute(Object obj, IxbElement fileXML, Exporter exporter)
          

Supported API: true
 void finalizeCheckConflicts(Importer importer)
          Called in the end of conflict check process.
 Object importAttribute(Object obj, IxbElement fileXML, Importer importer)
          

Supported API: true
private static void PP(String s)
           
private  Object restoreLifecycleAttr(LifeCycleManaged obj, IxbElement fileXML, Importer importer)
           
 
Methods inherited from class wt.ixb.publicforhandlers.AttributeExporterImporterTemplate
finalizeExport, finalizeImport, prepareForCheckConflicts, prepareForImport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultLifecycleName

private String defaultLifecycleName

defaultLifecycleState

private String defaultLifecycleState

lct

private LifeCycleTemplate lct

LifeCycleTemplateInfos

private Hashtable LifeCycleTemplateInfos

LifeCycleStateInfos

private Hashtable LifeCycleStateInfos

workBuff

private StringBuffer workBuff
Constructor Detail

ExpImpForLifecycleAttr

public ExpImpForLifecycleAttr()
Method Detail

exportAttribute

public void exportAttribute(Object obj,
                            IxbElement fileXML,
                            Exporter exporter)
                     throws WTException
Description copied from class: AttributeExporterImporterTemplate


Supported API: true

Specified by:
exportAttribute in interface AttributeExporterImporter
Specified by:
exportAttribute in class AttributeExporterImporterTemplate
Parameters:
obj -
fileXML -
exporter -
Throws:
WTException

checkConflictForAttribute

public void checkConflictForAttribute(Object existingOb,
                                      IxbElement fileXML,
                                      Importer importer)
                               throws WTException
Description copied from class: AttributeExporterImporterTemplate
Checks conflicts that can arise while import process for the given attribute and object.

Supported API: true

Specified by:
checkConflictForAttribute in interface AttributeExporterImporter
Overrides:
checkConflictForAttribute in class AttributeExporterImporterTemplate
Parameters:
existingOb -
fileXML - the IxbElement of the XML file to be imported.
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException

checkLifeCycleTemplateConflict

private boolean checkLifeCycleTemplateConflict(String lifeCycleName,
                                               WTContainerRef containerRef)
                                        throws WTException
Throws:
WTException

checkLifeCycleStateConflict

private boolean checkLifeCycleStateConflict(String lifecycleName,
                                            String lifeCycleState)
                                     throws WTException
Throws:
WTException

importAttribute

public Object importAttribute(Object obj,
                              IxbElement fileXML,
                              Importer importer)
                       throws WTException
Description copied from class: AttributeExporterImporterTemplate


Supported API: true

Specified by:
importAttribute in interface AttributeExporterImporter
Specified by:
importAttribute in class AttributeExporterImporterTemplate
Parameters:
obj -
fileXML -
importer -
Returns:
Object
Throws:
WTException

restoreLifecycleAttr

private Object restoreLifecycleAttr(LifeCycleManaged obj,
                                    IxbElement fileXML,
                                    Importer importer)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

finalizeCheckConflicts

public void finalizeCheckConflicts(Importer importer)
                            throws WTException
Description copied from class: AttributeExporterImporterTemplate
Called in the end of conflict check process.

Supported API: true

Specified by:
finalizeCheckConflicts in interface AttributeExporterImporter
Overrides:
finalizeCheckConflicts in class AttributeExporterImporterTemplate
Parameters:
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException

PP

private static void PP(String s)