wt.ixb.objectset
Class ExportPackage

java.lang.Object
  extended bywt.ixb.objectset.ExportPackage
Direct Known Subclasses:
ExportPackageForPDX

public class ExportPackage
extends Object

Simple wrapping class for WTHashSet. It represents set of objects prepared for export and provides some convenience methods.


Field Summary
private static String LINE_SEPARATOR
           
protected  WTHashSet m_objects
           
 
Constructor Summary
ExportPackage(WTHashSet objects)
           
 
Method Summary
 boolean addAll(WTHashSet objSet)
          Adds a set of objects to the package
 boolean addObject(Persistable obj)
          Adds the object to the package
protected static void checkParameters(String[] genIds, String[] generParams, String[] filterIds, String[] filterParams)
           
static ExportPackage createExportPackage(String[] generIds, String[] generParams)
           
static ExportPackage createExportPackage(String[] generIds, String[] generParams, String[] filterIds, String[] filterParams)
          Creates ExportPackage
 String getManifest()
           
 WTHashSet getObjects()
           
private  boolean includeInManifest(Object obj)
           
protected  void PP(String s)
           
 boolean removeAll(WTHashSet objSet)
          Removes a set of objects from the package
 boolean removeObject(Persistable obj)
          Removes object from the package
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_objects

protected WTHashSet m_objects

LINE_SEPARATOR

private static String LINE_SEPARATOR
Constructor Detail

ExportPackage

public ExportPackage(WTHashSet objects)
Method Detail

createExportPackage

public static ExportPackage createExportPackage(String[] generIds,
                                                String[] generParams,
                                                String[] filterIds,
                                                String[] filterParams)
                                         throws WTException
Creates ExportPackage

Throws:
WTException

createExportPackage

public static ExportPackage createExportPackage(String[] generIds,
                                                String[] generParams)
                                         throws WTException
Throws:
WTException

checkParameters

protected static void checkParameters(String[] genIds,
                                      String[] generParams,
                                      String[] filterIds,
                                      String[] filterParams)
                               throws WTException
Throws:
WTException

addObject

public boolean addObject(Persistable obj)
Adds the object to the package

Returns:
true if the object was actually added (i.e. it was not already in the package)

removeObject

public boolean removeObject(Persistable obj)
Removes object from the package

Returns:
true if the object was actually removed (i.e. it was in the package)

addAll

public boolean addAll(WTHashSet objSet)
Adds a set of objects to the package

Returns:
true if at least one object was actually added (i.e. it was not already in the package)

removeAll

public boolean removeAll(WTHashSet objSet)
Removes a set of objects from the package

Returns:
true if at least one object was actually removed (i.e. it was in the package)

size

public int size()
Returns:
number of objects in the package

getObjects

public WTHashSet getObjects()

getManifest

public String getManifest()
                   throws WTException
Returns:
list of objects included in the export package
Throws:
WTException

includeInManifest

private boolean includeInManifest(Object obj)

PP

protected void PP(String s)