com.apelon.dts.client.events
Class NamespaceEvent
java.lang.Object
java.util.EventObject
com.apelon.dts.client.events.DataChangeEvent
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
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
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.