Remote Systems
v6.4.1

com.ibm.etools.systems.model.impl
Class SystemModelChangeEvent

java.lang.Object
  extended bycom.ibm.etools.systems.model.impl.SystemModelChangeEvent
All Implemented Interfaces:
ISystemModelChangeEvent, ISystemModelChangeEvents

public class SystemModelChangeEvent
extends Object
implements ISystemModelChangeEvent, ISystemModelChangeEvents

For listeners interested in model changes with resources in the rse project. These events are designed to state what the change the resource was, not to optimize those events for a GUI (eg, a delete event versus a refresh event)


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.model.ISystemModelChangeEvents
SYSTEM_RESOURCE_ADDED, SYSTEM_RESOURCE_ALL_RELOADED, SYSTEM_RESOURCE_CHANGED, SYSTEM_RESOURCE_REMOVED, SYSTEM_RESOURCE_RENAMED, SYSTEM_RESOURCE_REORDERED, SYSTEM_RESOURCETYPE_ALL, SYSTEM_RESOURCETYPE_COMPILECMD, SYSTEM_RESOURCETYPE_CONNECTION, SYSTEM_RESOURCETYPE_FILTER, SYSTEM_RESOURCETYPE_FILTERPOOL, SYSTEM_RESOURCETYPE_FILTERPOOLREF, SYSTEM_RESOURCETYPE_NAMEDTYPE, SYSTEM_RESOURCETYPE_PROFILE, SYSTEM_RESOURCETYPE_SUBSYSTEM, SYSTEM_RESOURCETYPE_USERACTION
 
Constructor Summary
SystemModelChangeEvent()
          Constructor you shouldn't use unless you intend to call the setters
SystemModelChangeEvent(int eventType, int resourceType, Object resource)
          Constructor for SystemModelChangeEvent.
SystemModelChangeEvent(int eventType, int resourceType, Object resource, String oldName)
          Constructor for SystemModelChangeEvent for a rename event
 
Method Summary
 int getEventType()
          Get the event type, such as ISystemModelChangeEvents.SYSTEM_RESOURCE_ADDED.
 String getOldName()
          Get the old name of the resource, in the event of a resource rename.
 Object getResource()
          Get the resource that this event applies to
 int getResourceType()
          Get the resource type, such as ISystemModelChangeEvents.SYSTEM_RESOURCETYPE_CONNECTION.
 void setEventType(int eventType)
          Reset the event type
 void setOldName(String oldName)
          Reset the old name on a rename event
 void setResource(Object resource)
          Reset the resource
 void setResourceType(int resourceType)
          Reset the resource type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

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

SystemModelChangeEvent

public SystemModelChangeEvent(int eventType,
                              int resourceType,
                              Object resource)
Constructor for SystemModelChangeEvent.


SystemModelChangeEvent

public SystemModelChangeEvent(int eventType,
                              int resourceType,
                              Object resource,
                              String oldName)
Constructor for SystemModelChangeEvent for a rename event


SystemModelChangeEvent

public SystemModelChangeEvent()
Constructor you shouldn't use unless you intend to call the setters

Method Detail

setEventType

public void setEventType(int eventType)
Reset the event type


setResourceType

public void setResourceType(int resourceType)
Reset the resource type


setResource

public void setResource(Object resource)
Reset the resource


setOldName

public void setOldName(String oldName)
Reset the old name on a rename event


getEventType

public int getEventType()
Get the event type, such as ISystemModelChangeEvents.SYSTEM_RESOURCE_ADDED.

Specified by:
getEventType in interface ISystemModelChangeEvent
See Also:
ISystemModelChangeEvents

getResourceType

public int getResourceType()
Get the resource type, such as ISystemModelChangeEvents.SYSTEM_RESOURCETYPE_CONNECTION.

Specified by:
getResourceType in interface ISystemModelChangeEvent
See Also:
ISystemModelChangeEvents

getResource

public Object getResource()
Get the resource that this event applies to

Specified by:
getResource in interface ISystemModelChangeEvent

getOldName

public String getOldName()
Get the old name of the resource, in the event of a resource rename. Null for other event types.

Specified by:
getOldName in interface ISystemModelChangeEvent

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.