Class MQExtObject
- All Implemented Interfaces:
org.eclipse.ui.IActionFilter
- Direct Known Subclasses:
MQQmgrExtObject
,MQSetExtObject
The MQExplorer datamodel notifies the MQExplorer UI when events happen to these objects, For example when a new Queue Manager is created, the datamodel sends an event to the UI which typically reacts by creating a new Treeode in the navigator view.
To enable a user written extensions to also react to these events, MQExplorer UI passes on events of to plugins which extend the com.ibm.mq.explorer.ui.registerplugin extension point and supplies a class which extends IExplorerNotify
This Class is the external represention of an MQ Object. MQExplorer will call the notification
methods in IExplorerNotify
which typically include an
instance to one of these MQExtObjects
The user written plugin which recieves these notifications of events will typically take some appropiate action depending on the type of event, the object type, name and state.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNull constructorMQExtObject
(MQExtObject parentObj, Object obj, String type, String objId, String objName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an object changed listener for this objectvoid
Add an object deleted listener for this objectGet the instanceId for this ObjectGet an internal data object, if one has been set with setInternalDataObject()Get the Internal ObjectGet MQTypegetName()
Get Object nameint
Return the count of object changed listeners on this objectint
Return the count of object deleted listeners on this objectGet Object IDGet Parent Objectvoid
Notify any change listeners that this object has changedvoid
Notify any delete listeners that this object is about to be deletedvoid
Remove an object changed listener for this objectvoid
Remove an object deleted listener for this objectvoid
setInternalDataObject
(Object object) Set an internal data object, which can then be retrieved with getInternalDataObject()void
setInternalObject
(Object object) Set the internal objectvoid
Set Object nameboolean
testAttribute
(Object target, String name, String value) test an attribute of the supplied objecttoString()
Return the name of this object
-
Field Details
-
SCCSID
SCCS id - expanded when file is extracted from CMVC- See Also:
-
COPYRIGHT_NOTICE
Copyright notice- See Also:
-
VERSION
Version- See Also:
-
-
Constructor Details
-
MQExtObject
public MQExtObject()Null constructor -
MQExtObject
Constructor- Parameters:
parentObj
- parent MQExtObjectobj
- instance objecttype
- object typeobjId
- Object IDobjName
- Name of the object
-
-
Method Details
-
testAttribute
Description copied from class:com.ibm.mq.explorer.ui.internal.objects.MQExtObjectBase
test an attribute of the supplied object- Specified by:
testAttribute
in interfaceorg.eclipse.ui.IActionFilter
- Overrides:
testAttribute
in classcom.ibm.mq.explorer.ui.internal.objects.MQExtObjectBase
- Parameters:
target
- Target objectname
- Name of the parametervalue
- Value to test- Returns:
- boolean is attribute equal?
-
getInstanceId
Get the instanceId for this Object- Returns:
- instanceId
-
getInternalObject
Get the Internal Object- Returns:
- instanceID
-
setInternalObject
Set the internal object- Parameters:
object
- the internal object to set
-
getInternalDataObject
Get an internal data object, if one has been set with setInternalDataObject()- Returns:
- object if one has been set, null otherwise
-
setInternalDataObject
Set an internal data object, which can then be retrieved with getInternalDataObject()- Parameters:
object
- an object to set
-
getMqType
Get MQType- Returns:
- one of the "OBJECTID_" values defined in
ObjectId
-
setName
Set Object name- Parameters:
name
- object name
-
getName
Get Object name- Returns:
- object name
-
getObjectId
Get Object ID- Returns:
- object id
-
getParent
Get Parent Object- Returns:
- parent object
-
objectChanged
public void objectChanged()Notify any change listeners that this object has changed -
addObjectChangedListener
Add an object changed listener for this object- Parameters:
listener
- the object changed listener to add
-
removeObjectChangedListener
Remove an object changed listener for this object- Parameters:
listener
- the object changed listener to remove
-
getObjectChangedListenerCount
public int getObjectChangedListenerCount()Return the count of object changed listeners on this object- Returns:
- int the count of object changed listeners on this object
-
objectDeleted
public void objectDeleted()Notify any delete listeners that this object is about to be deleted -
addObjectDeletedListener
Add an object deleted listener for this object- Parameters:
listener
- the object deleted listener to add
-
removeObjectDeletedListener
Remove an object deleted listener for this object- Parameters:
listener
- the object deleted listener to remove
-
getObjectDeletedListenerCount
public int getObjectDeletedListenerCount()Return the count of object deleted listeners on this object- Returns:
- int the count of object deleted listeners on this object
-
toString
Return the name of this object
-