Remote Systems
v6.4.1

com.ibm.etools.systems.filters.impl
Class SystemFilterPoolReferenceImpl

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.references.impl.SystemReferencingObjectImpl
          extended bycom.ibm.etools.systems.references.impl.SystemPersistableReferencingObjectImpl
              extended bycom.ibm.etools.systems.filters.impl.SystemFilterPoolReferenceImpl
All Implemented Interfaces:
IAdaptable, ISystemPersistableReferencingObject, ISystemReferencingObject, SystemFilterContainerReference, SystemFilterPoolReference, SystemPersistableReferencingObject, SystemReferencingObject

public class SystemFilterPoolReferenceImpl
extends SystemPersistableReferencingObjectImpl
implements SystemFilterPoolReference, SystemFilterContainerReference, IAdaptable

See Also:
Serialized Form

Field Summary
static String copyright
           
protected static String DELIMITER
           
protected static int DELIMITER_LENGTH
           
 
Fields inherited from class com.ibm.etools.systems.references.impl.SystemPersistableReferencingObjectImpl
REFERENCED_OBJECT_NAME_EDEFAULT, referencedObjectName
 
Fields inherited from class com.ibm.etools.systems.references.impl.SystemReferencingObjectImpl
referenceBroken
 
Constructor Summary
protected SystemFilterPoolReferenceImpl()
          Default constructor.
 
Method Summary
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 Object getAdapter(Class adapterType)
          This is the method required by the IAdaptable interface.
 SystemFilterReference getExistingSystemFilterReference(SystemFilter filter)
          Return an existing reference to a given system filter.
 int getFilterCount()
          Return count of the number of filters in the referenced pool or filter
 SystemFilterPoolReferenceManager getFilterPoolReferenceManager()
          Return the reference manager which is managing this filter reference framework object.
 String getFullName()
          Return fully qualified name that includes the filter pool managers name
 String getName()
          Return the name of the SystemFilter or SystemFilterPool that we reference.
 SystemFilterPoolReferenceManagerProvider getProvider()
          Return the object which instantiated the pool reference manager object.
 SystemFilterPool getReferencedFilterPool()
          Return referenced filter pool object
 String getReferencedFilterPoolManagerName()
          Return name of the filter pool manager containing the pool we reference.
 String getReferencedFilterPoolName()
          Return name of the filter pool we reference The name is stored qualified by the manager name, so we first have to strip that off.
 SystemFilterContainer getReferencedSystemFilterContainer()
          Return the object to which we hold a reference.
 SystemFilterReference getSystemFilterReference(SystemFilter filter)
          Create a single filter refererence to a given filter.
 SystemFilterReference[] getSystemFilterReferences()
          Build and return an array of SystemFilterReference objects.
 boolean hasFilters()
          Return true if the referenced pool or filter has filters.
 void resetReferencedFilterPoolName(String newName)
          Reset the name of the filter pool we reference.
 void setReferenceToFilterPool(SystemFilterPool pool)
          Set the filter pool that we reference.
 
Methods inherited from class com.ibm.etools.systems.references.impl.SystemPersistableReferencingObjectImpl
getParentReferenceManager, getReferencedObject, getReferencedObjectName, removeReference, setParentReferenceManager, setReferencedObject, setReferencedObject, setReferencedObjectName, toString
 
Methods inherited from class com.ibm.etools.systems.references.impl.SystemReferencingObjectImpl
isReferenceBroken, setReferenceBroken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.references.SystemPersistableReferencingObject
getParentReferenceManager, getReferencedObjectName, setParentReferenceManager, setReferencedObjectName
 
Methods inherited from interface com.ibm.etools.systems.references.ISystemReferencingObject
getReferencedObject, isReferenceBroken, removeReference, setReferenceBroken, setReferencedObject
 
Methods inherited from interface com.ibm.etools.systems.references.ISystemPersistableReferencingObject
setReferencedObject
 

Field Detail

DELIMITER

protected static final String DELIMITER
See Also:
Constant Field Values

DELIMITER_LENGTH

protected static final int DELIMITER_LENGTH
See Also:
Constant Field Values

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemFilterPoolReferenceImpl

protected SystemFilterPoolReferenceImpl()
Default constructor. Typically called by MOF factory method.

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class SystemPersistableReferencingObjectImpl

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class SystemPersistableReferencingObjectImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class SystemPersistableReferencingObjectImpl

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainer in class SystemPersistableReferencingObjectImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class SystemPersistableReferencingObjectImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class SystemPersistableReferencingObjectImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class SystemPersistableReferencingObjectImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class SystemPersistableReferencingObjectImpl

getFilterPoolReferenceManager

public SystemFilterPoolReferenceManager getFilterPoolReferenceManager()
Return the reference manager which is managing this filter reference framework object.

Specified by:
getFilterPoolReferenceManager in interface SystemFilterPoolReference

getProvider

public SystemFilterPoolReferenceManagerProvider getProvider()
Return the object which instantiated the pool reference manager object. Makes it easy to get back to the point of origin, given any filter reference framework object

Specified by:
getProvider in interface SystemFilterPoolReference

getAdapter

public Object getAdapter(Class adapterType)
This is the method required by the IAdaptable interface. Given an adapter class type, return an object castable to the type, or null if this is not possible.

Specified by:
getAdapter in interface IAdaptable

getReferencedFilterPoolName

public String getReferencedFilterPoolName()
Return name of the filter pool we reference The name is stored qualified by the manager name, so we first have to strip that off.

Specified by:
getReferencedFilterPoolName in interface SystemFilterPoolReference

getReferencedFilterPoolManagerName

public String getReferencedFilterPoolManagerName()
Return name of the filter pool manager containing the pool we reference. The pool name is stored qualified by the manager name, so we get it from there.

Specified by:
getReferencedFilterPoolManagerName in interface SystemFilterPoolReference

resetReferencedFilterPoolName

public void resetReferencedFilterPoolName(String newName)
Reset the name of the filter pool we reference. Called on filter pool rename operations

Specified by:
resetReferencedFilterPoolName in interface SystemFilterPoolReference

setReferenceToFilterPool

public void setReferenceToFilterPool(SystemFilterPool pool)
Set the filter pool that we reference. This also calls addReference(this) on that pool!

Specified by:
setReferenceToFilterPool in interface SystemFilterPoolReference

getReferencedFilterPool

public SystemFilterPool getReferencedFilterPool()
Return referenced filter pool object

Specified by:
getReferencedFilterPool in interface SystemFilterPoolReference

getReferencedSystemFilterContainer

public SystemFilterContainer getReferencedSystemFilterContainer()
Return the object to which we hold a reference. This is either SystemFilter or SystemFilterPool. Since both implement SystemFilterContainer, that is what we return.

Of course, this is a generic method, and in our case it is always true that we only hold a SystemFilter. Hence, this is the same as calling getReferenceFilter and casting the result.

Specified by:
getReferencedSystemFilterContainer in interface SystemFilterContainerReference

getSystemFilterReferences

public SystemFilterReference[] getSystemFilterReferences()
Build and return an array of SystemFilterReference objects. Each object is created new. There is one for each of the filters in the reference SystemFilter or SystemFilterPool. For performance reasons, we will cache this array and only return a fresh one if something changes in the underlying filter list.

Specified by:
getSystemFilterReferences in interface SystemFilterContainerReference

getSystemFilterReference

public SystemFilterReference getSystemFilterReference(SystemFilter filter)
Create a single filter refererence to a given filter. If there already is a reference to this filter, it is returned. If not, a new reference is created and appended to the end of the existing filter reference array.

Specified by:
getSystemFilterReference in interface SystemFilterContainerReference
See Also:
getExistingSystemFilterReference(SystemFilter)

getExistingSystemFilterReference

public SystemFilterReference getExistingSystemFilterReference(SystemFilter filter)
Return an existing reference to a given system filter. If no reference currently exists to this filter, returns null.

Specified by:
getExistingSystemFilterReference in interface SystemFilterContainerReference
See Also:
getSystemFilterReference(SystemFilter)

hasFilters

public boolean hasFilters()
Return true if the referenced pool or filter has filters.

Specified by:
hasFilters in interface SystemFilterContainerReference

getFilterCount

public int getFilterCount()
Return count of the number of filters in the referenced pool or filter

Specified by:
getFilterCount in interface SystemFilterContainerReference

getName

public String getName()
Return the name of the SystemFilter or SystemFilterPool that we reference. For such objects this is what we show in the GUI.

Specified by:
getName in interface SystemFilterContainerReference

getFullName

public String getFullName()
Return fully qualified name that includes the filter pool managers name

Specified by:
getFullName in interface SystemFilterPoolReference

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.