com.apelon.dts.client.events
Class NamespaceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.apelon.dts.client.events.DataChangeEvent
          extended by com.apelon.dts.client.events.NamespaceEvent
All Implemented Interfaces:
Serializable

public class NamespaceEvent
extends DataChangeEvent

An event which indicates that a namespace action occurred. A namespace action is considered to occur a namespace is added/updated/deleted.

Since:
DTS 3.4
Version:
DTS 3.4
Author:
Apelon Inc.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.apelon.dts.client.events.DataChangeEvent
EVENT_TYPE_DELETE, EVENT_TYPE_FIRST, EVENT_TYPE_LAST, EVENT_TYPE_MODIFY, EVENT_TYPE_NEW, INVALID_TYPE_EVENT
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NamespaceEvent(Object source, Namespace oldNamespace, Namespace newNamespace)
          Constructs a NamespaceEvent object.
 
Method Summary
 Namespace getNewNamespace()
          Get the new Namespace.
 Namespace getOldNamespace()
          Get the old Namespace.
 
Methods inherited from class com.apelon.dts.client.events.DataChangeEvent
getChangedData, getEventType, getNewData, getOldData
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceEvent

public NamespaceEvent(Object source,
                      Namespace oldNamespace,
                      Namespace newNamespace)
Constructs a NamespaceEvent object.

Parameters:
source - Should be an object that is a valid source of Namespace events.
oldNamespace - If a new namespace is added, the oldNamespace should null; If a namespace is modified, the oldNamespace should be the namespace before being updated; If a namespace is deleted, the oldNamespace should be the namespace that is deleted.
newNamespace - If a new namespace is added, the newNamespace should be the namespace that is added; If a namespace is modified, the newNamespace should be the namespace after being updated; If a namespace is deleted, the newNamespace should be null.
See Also:
NamespaceListener, DTSEventMulticaster, DataChangeEvent
Method Detail

getNewNamespace

public Namespace getNewNamespace()
Get the new Namespace.

Returns:
Namespace If a namespace is added, return the new namespace that is added; If a namespace is updated, return the new namespace after updating; If a namespace is deleted, return null.

getOldNamespace

public Namespace getOldNamespace()
Get the old Namespace.

Returns:
Namespace If a namespace is added, return null; If a namespace is updated, return the old namespace before updating; If a namespace is deleted, return the namespace that is deleted.


Copyright © 2011. All Rights Reserved.