Package net.aifusion.metamodel
Interface CimEventGenerator
- All Known Subinterfaces:
Provider
- All Known Implementing Classes:
BasicProvider
,CimClass
,CimClient
,CimEnumeration
,CimInstance
,CimInterface
,CimStructure
,NamedElement
,QualifierType
,StructureValue
public interface CimEventGenerator
Interface implemented by all CimEvent generators
- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addListener
(CimEventType type, CimListener listener) Add a listener to this generatorboolean
hasListener
(CimEventType type, CimListener listener) Check if this event generator has a listener for an event typevoid
removeListener
(CimEventType type, CimListener listener) Remove a listener from this generator
-
Method Details
-
addListener
Add a listener to this generator- Parameters:
type
- - type of event the listener wantslistener
- - CimListener interested in events- Returns:
- - true if listener was successfully added, false otherwise
-
removeListener
Remove a listener from this generator- Parameters:
type
- of event the listener wantslistener
- - CimListener to be removed
-
hasListener
Check if this event generator has a listener for an event type- Parameters:
type
- - type of eventlistener
- - listener to check. If null, check if any listener is registered- Returns:
- - true if the generator has at least one registered listener for the event type, false otherwise
-