com.sap.mdm.notification
Class AbstractEventRegistrationSet

java.lang.Object
  extended bycom.sap.mdm.notification.AbstractEventRegistrationSet
All Implemented Interfaces:
MdmEventRegistrationSet
Direct Known Subclasses:
DataEventRegistrationSet, GlobalEventRegistrationSet, RepositoryEventRegistrationSet, ServerEventRegistrationSet

public abstract class AbstractEventRegistrationSet
extends Object
implements MdmEventRegistrationSet

TODO Enter Class/Interface Description

See Also:
add references if it is needed

Constructor Summary
AbstractEventRegistrationSet()
          Empty constructor
AbstractEventRegistrationSet(int eventType)
          Constructor
AbstractEventRegistrationSet(MdmEventRegistrationSet otherSet)
          Copy constructor
 
Method Summary
 void addEventType(int eventType)
          Add event type to the set
 void addEventTypes(MdmEventRegistrationSet otherSet)
          Add all event types defined in the other set to this set
 void clear()
          Clear this registration set
 boolean containsAllEventTypes(MdmEventRegistrationSet otherSet)
          Check if all event types defined in the specified registration set are contained in this registration set
 boolean containsAnyEventType(MdmEventRegistrationSet otherSet)
          Check if any of event types defined in the specified registration set is contained in this registration set
 boolean containsEventType(int eventType)
          Check if the specified event type is contained in this registration set
 boolean equals(Object obj)
           
 MdmEventRegistrationSet getRegisterDifference(MdmEventRegistrationSet otherSet)
          Returns differential set for registration that includes event types defined in the other set but not defined in this set
 MdmEventRegistrationSet getUnregisterDifference(MdmEventRegistrationSet otherSet)
          Returns differential set for un-registration that includes event types defined in the other set and also defined in this set
 int hashCode()
           
 boolean isEmpty()
          Check if this registration set is empty
 void removeEventType(int eventType)
          Remove event type from the set
 void removeEventTypes(MdmEventRegistrationSet otherSet)
          Remove all event types defined in the other set from this set
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEventRegistrationSet

public AbstractEventRegistrationSet()
Empty constructor


AbstractEventRegistrationSet

public AbstractEventRegistrationSet(int eventType)
Constructor

Parameters:
eventType -

AbstractEventRegistrationSet

public AbstractEventRegistrationSet(MdmEventRegistrationSet otherSet)
Copy constructor

Parameters:
otherSet -
Method Detail

addEventType

public void addEventType(int eventType)
Description copied from interface: MdmEventRegistrationSet
Add event type to the set

Specified by:
addEventType in interface MdmEventRegistrationSet
Parameters:
eventType - the event type for adding (see constants in the implementation class)

addEventTypes

public void addEventTypes(MdmEventRegistrationSet otherSet)
Description copied from interface: MdmEventRegistrationSet
Add all event types defined in the other set to this set

Specified by:
addEventTypes in interface MdmEventRegistrationSet
Parameters:
otherSet - the other registration set

removeEventType

public void removeEventType(int eventType)
Description copied from interface: MdmEventRegistrationSet
Remove event type from the set

Specified by:
removeEventType in interface MdmEventRegistrationSet
Parameters:
eventType - the event type for removing (see constants in the implementation class)

removeEventTypes

public void removeEventTypes(MdmEventRegistrationSet otherSet)
Description copied from interface: MdmEventRegistrationSet
Remove all event types defined in the other set from this set

Specified by:
removeEventTypes in interface MdmEventRegistrationSet
Parameters:
otherSet - the other registration set

containsEventType

public boolean containsEventType(int eventType)
Description copied from interface: MdmEventRegistrationSet
Check if the specified event type is contained in this registration set

Specified by:
containsEventType in interface MdmEventRegistrationSet
Parameters:
eventType - the event type (see constants in the implementation class)
Returns:
true if the specified event type is part of this set, otherwise false

containsAnyEventType

public boolean containsAnyEventType(MdmEventRegistrationSet otherSet)
Description copied from interface: MdmEventRegistrationSet
Check if any of event types defined in the specified registration set is contained in this registration set

Specified by:
containsAnyEventType in interface MdmEventRegistrationSet
Parameters:
otherSet - the other registration set
Returns:
true if any event type of the specified set is part of this set, otherwise false

containsAllEventTypes

public boolean containsAllEventTypes(MdmEventRegistrationSet otherSet)
Description copied from interface: MdmEventRegistrationSet
Check if all event types defined in the specified registration set are contained in this registration set

Specified by:
containsAllEventTypes in interface MdmEventRegistrationSet
Parameters:
otherSet - the other registration set
Returns:
true if all event types of the specified set are part of this set, otherwise false

getRegisterDifference

public MdmEventRegistrationSet getRegisterDifference(MdmEventRegistrationSet otherSet)
Description copied from interface: MdmEventRegistrationSet
Returns differential set for registration that includes event types defined in the other set but not defined in this set

Specified by:
getRegisterDifference in interface MdmEventRegistrationSet
Parameters:
otherSet - the other registration set
Returns:
instance of registration set

getUnregisterDifference

public MdmEventRegistrationSet getUnregisterDifference(MdmEventRegistrationSet otherSet)
Description copied from interface: MdmEventRegistrationSet
Returns differential set for un-registration that includes event types defined in the other set and also defined in this set

Specified by:
getUnregisterDifference in interface MdmEventRegistrationSet
Parameters:
otherSet - the other set for un-registration
Returns:
instance of registration set

isEmpty

public boolean isEmpty()
Description copied from interface: MdmEventRegistrationSet
Check if this registration set is empty

Specified by:
isEmpty in interface MdmEventRegistrationSet
Returns:
true if this registration set is empty, otherwise false

clear

public void clear()
Description copied from interface: MdmEventRegistrationSet
Clear this registration set

Specified by:
clear in interface MdmEventRegistrationSet

toString

public String toString()

hashCode

public int hashCode()

equals

public boolean equals(Object obj)


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.