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

java.lang.Object
  extended bycom.ibm.j2ca.extension.emd.discovery.WBIMetadataObjectImpl
All Implemented Interfaces:
commonj.connector.metadata.discovery.MetadataObject, commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType

public abstract class WBIMetadataObjectImpl
extends java.lang.Object
implements commonj.connector.metadata.discovery.MetadataObject, commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType

Implementation for MetadataObject interface. Represents the objects in the MetadataTree. This is an abstract class and the abstract methods have to be implemented by the subclasses.


Nested Class Summary
 
Nested classes inherited from class commonj.connector.metadata.discovery.MetadataObject
commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType
 
Field Summary
 
Fields inherited from interface commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType
FOLDER, IN_OUT_PARAMETER, IN_PARAMETER, OBJECT, OPERATION, OUT_PARAMETER, PROPERTY
 
Constructor Summary
WBIMetadataObjectImpl()
           
 
Method Summary
 commonj.connector.metadata.discovery.mutable.ObjectWizard beginObjectWizard(commonj.connector.metadata.discovery.mutable.Operation op)
           
abstract  commonj.connector.metadata.discovery.properties.PropertyGroup createFilteringProperties()
           
 commonj.connector.metadata.discovery.MetadataImportConfiguration createImportConfiguration()
           
 commonj.connector.metadata.discovery.properties.PropertyGroup getAppliedFilter()
           
 java.util.LinkedHashMap getAttributes()
           
 java.lang.String getBidiFormat()
          Returns the BiDi format for the metadata object.
 java.lang.String getBOName()
          Returns the BO name for the metadata object.
abstract  commonj.connector.metadata.discovery.MetadataObjectResponse getChildren(commonj.connector.metadata.discovery.properties.PropertyGroup filterParameters)
          Subclass has to provide implementation for this method.
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getLocation()
           
abstract  commonj.connector.metadata.discovery.properties.PropertyGroup getObjectProperties()
           
 commonj.connector.metadata.discovery.mutable.Operation[] getOperations()
           
 java.lang.String getParentLocation()
           
 java.lang.String getServiceType()
          Returns the serviceType, whether its Inbound or Outbound
 commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType getType()
           
 boolean hasChildren()
           
 boolean isMutable()
           
 boolean isSelectableForImport()
          Can the object be selected for generation.
 void setAppliedFilter(commonj.connector.metadata.discovery.properties.PropertyGroup pg)
           
 void setAttributes(java.util.LinkedHashMap attributes)
          Set the list of attributes.
 void setBidiFormat(java.lang.String bidiFormat)
          Sets the BiDi format for the metadata object.
 void setBOName(java.lang.String boName)
          This is the name that would be used when a BO is created.
 void setDescription(java.lang.String desc)
          Set the description for the metadata object
 void setDisplayName(java.lang.String displayName)
          This should be the name of the object as represented in EIS
 void setHasChildren(boolean hasChildren)
          Set true if the object has child objects
 void setLocation(java.lang.String location)
           
 void setMetadataImportConfiguration(commonj.connector.metadata.discovery.MetadataImportConfiguration conf)
           
 void setMutable(boolean mutable)
          This is always false.
 void setParent(commonj.connector.metadata.discovery.MetadataObject parent)
          Set the parent metadata object for the node.
 void setSelectableForImport(boolean selectImport)
          Set true if the object can be selected for generation.
 void setServiceType(java.lang.String serviceType)
          Sets the service type to mark if the object can be used for Inbound or an outbound service.
 void setType(commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WBIMetadataObjectImpl

public WBIMetadataObjectImpl()
Method Detail

setAttributes

public void setAttributes(java.util.LinkedHashMap attributes)
Set the list of attributes.

Parameters:
attributes -

createImportConfiguration

public commonj.connector.metadata.discovery.MetadataImportConfiguration createImportConfiguration()
                                                                                           throws commonj.connector.metadata.MetadataException
Specified by:
createImportConfiguration in interface commonj.connector.metadata.discovery.MetadataObject
Throws:
commonj.connector.metadata.MetadataException
See Also:
commonj.connector.metadata.discovery.MetadataObject#createImportConfiguration(commonj.connector.metadata.discovery.ToolEnvironmentContext)

setMetadataImportConfiguration

public void setMetadataImportConfiguration(commonj.connector.metadata.discovery.MetadataImportConfiguration conf)

getChildren

public abstract commonj.connector.metadata.discovery.MetadataObjectResponse getChildren(commonj.connector.metadata.discovery.properties.PropertyGroup filterParameters)
                                                                                 throws commonj.connector.metadata.MetadataException
Subclass has to provide implementation for this method.

Specified by:
getChildren in interface commonj.connector.metadata.discovery.MetadataObject
Throws:
commonj.connector.metadata.MetadataException
See Also:
commonj.connector.metadata.discovery.MetadataObject#getChildren(commonj.connector.metadata.discovery.properties.PropertyGroup, commonj.connector.metadata.discovery.ToolEnvironmentContext)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getDescription()

setDescription

public void setDescription(java.lang.String desc)
Set the description for the metadata object

Parameters:
desc -

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getDisplayName()

setDisplayName

public void setDisplayName(java.lang.String displayName)
This should be the name of the object as represented in EIS

Parameters:
displayName -

getObjectProperties

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

createFilteringProperties

public abstract commonj.connector.metadata.discovery.properties.PropertyGroup createFilteringProperties()
Specified by:
createFilteringProperties in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
commonj.connector.metadata.discovery.MetadataObject#getFilteringProperties()

getAppliedFilter

public commonj.connector.metadata.discovery.properties.PropertyGroup getAppliedFilter()
Specified by:
getAppliedFilter in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getAppliedFilter()

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getLocation()

setLocation

public void setLocation(java.lang.String location)
Parameters:
location -

getType

public commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType getType()
Specified by:
getType in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getType()

setType

public void setType(commonj.connector.metadata.discovery.MetadataObject.MetadataObjectType type)

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.hasChildren()

setHasChildren

public void setHasChildren(boolean hasChildren)
Set true if the object has child objects

Parameters:
hasChildren -

isSelectableForImport

public boolean isSelectableForImport()
Can the object be selected for generation.

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

setSelectableForImport

public void setSelectableForImport(boolean selectImport)
Set true if the object can be selected for generation.

Parameters:
selectImport -

isMutable

public boolean isMutable()
Specified by:
isMutable in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.isMutable()

setMutable

public void setMutable(boolean mutable)
This is always false.

Parameters:
mutable -

getOperations

public commonj.connector.metadata.discovery.mutable.Operation[] getOperations()
Specified by:
getOperations in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getOperations()

getAttributes

public java.util.LinkedHashMap getAttributes()

beginObjectWizard

public commonj.connector.metadata.discovery.mutable.ObjectWizard beginObjectWizard(commonj.connector.metadata.discovery.mutable.Operation op)
                                                                            throws commonj.connector.metadata.MetadataException
Specified by:
beginObjectWizard in interface commonj.connector.metadata.discovery.MetadataObject
Throws:
commonj.connector.metadata.MetadataException

getParentLocation

public java.lang.String getParentLocation()
Specified by:
getParentLocation in interface commonj.connector.metadata.discovery.MetadataObject
See Also:
MetadataObject.getParentLocation()

setParent

public void setParent(commonj.connector.metadata.discovery.MetadataObject parent)
Set the parent metadata object for the node.

Parameters:
parent -

setServiceType

public void setServiceType(java.lang.String serviceType)
Sets the service type to mark if the object can be used for Inbound or an outbound service. This property is used by the MetadataSelection.canAdd method to check if the object being added to selection is a valid object.

Parameters:
serviceType -

getServiceType

public java.lang.String getServiceType()
Returns the serviceType, whether its Inbound or Outbound

Returns:

setBOName

public void setBOName(java.lang.String boName)
This is the name that would be used when a BO is created. This is needed as there might be some preprocessing on the name that we get from EIS and what we can use in BO, like stripping of special characters etc.

Parameters:
boName -

getBOName

public java.lang.String getBOName()
Returns the BO name for the metadata object.

Returns:

setAppliedFilter

public void setAppliedFilter(commonj.connector.metadata.discovery.properties.PropertyGroup pg)

setBidiFormat

public void setBidiFormat(java.lang.String bidiFormat)
Sets the BiDi format for the metadata object.

Returns:

getBidiFormat

public java.lang.String getBidiFormat()
Returns the BiDi format for the metadata object.

Returns: