com.ibm.j2ca.extension.emd.discovery
Class WBIMetadataSelectionImpl

java.lang.Object
  extended bycom.ibm.j2ca.extension.emd.discovery.WBIMetadataSelectionImpl
All Implemented Interfaces:
commonj.connector.metadata.discovery.MetadataSelection

public abstract class WBIMetadataSelectionImpl
extends java.lang.Object
implements commonj.connector.metadata.discovery.MetadataSelection

This represents the collection of objects that have been selected for generation by the user. It also has properties that might be needed from the user for the complete selection.


Constructor Summary
WBIMetadataSelectionImpl()
           
 
Method Summary
 void add(commonj.connector.metadata.discovery.MetadataImportConfiguration importConfiguration)
          Used by the tool to add a configuration to the selection
 void applySelectionProperties(commonj.connector.metadata.discovery.properties.PropertyGroup selectionValues)
           
 commonj.connector.metadata.discovery.MetadataImportConfiguration canAdd(commonj.connector.metadata.discovery.MetadataObject object)
          This method compais the serviceType of existing objects in selection with the one that is being added if they do not match then it returns null else it returns configuration.
abstract  commonj.connector.metadata.discovery.properties.PropertyGroup createSelectionProperties()
           
static commonj.connector.metadata.discovery.properties.PropertyGroup getAppliedSelectionProperties()
          Returns the applied properties on the selection
 commonj.connector.metadata.discovery.MetadataImportConfiguration[] getSelection()
           
 void remove(commonj.connector.metadata.discovery.MetadataImportConfiguration importConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WBIMetadataSelectionImpl

public WBIMetadataSelectionImpl()
Method Detail

add

public void add(commonj.connector.metadata.discovery.MetadataImportConfiguration importConfiguration)
         throws commonj.connector.metadata.MetadataException
Used by the tool to add a configuration to the selection

Specified by:
add in interface commonj.connector.metadata.discovery.MetadataSelection
Throws:
commonj.connector.metadata.MetadataException
See Also:
MetadataSelection.add(commonj.connector.metadata.discovery.MetadataImportConfiguration)

remove

public void remove(commonj.connector.metadata.discovery.MetadataImportConfiguration importConfiguration)
Specified by:
remove in interface commonj.connector.metadata.discovery.MetadataSelection
See Also:
MetadataSelection.remove(commonj.connector.metadata.discovery.MetadataImportConfiguration)

getSelection

public commonj.connector.metadata.discovery.MetadataImportConfiguration[] getSelection()
Specified by:
getSelection in interface commonj.connector.metadata.discovery.MetadataSelection
See Also:
MetadataSelection.getSelection()

applySelectionProperties

public void applySelectionProperties(commonj.connector.metadata.discovery.properties.PropertyGroup selectionValues)
                              throws commonj.connector.metadata.MetadataException
Specified by:
applySelectionProperties in interface commonj.connector.metadata.discovery.MetadataSelection
Throws:
commonj.connector.metadata.MetadataException
See Also:
MetadataSelection.applySelectionProperties(commonj.connector.metadata.discovery.properties.PropertyGroup)

canAdd

public commonj.connector.metadata.discovery.MetadataImportConfiguration canAdd(commonj.connector.metadata.discovery.MetadataObject object)
This method compais the serviceType of existing objects in selection with the one that is being added if they do not match then it returns null else it returns configuration. It also checks if the object has already been added to the selection

Specified by:
canAdd in interface commonj.connector.metadata.discovery.MetadataSelection
See Also:
MetadataSelection.canAdd(commonj.connector.metadata.discovery.MetadataObject)

createSelectionProperties

public abstract commonj.connector.metadata.discovery.properties.PropertyGroup createSelectionProperties()
Specified by:
createSelectionProperties in interface commonj.connector.metadata.discovery.MetadataSelection
See Also:
MetadataSelection.createSelectionProperties()

getAppliedSelectionProperties

public static commonj.connector.metadata.discovery.properties.PropertyGroup getAppliedSelectionProperties()
Returns the applied properties on the selection

Returns: