Class Registration
java.lang.Object
com.nomagic.uml2.ext.jmi.smartlistener.Registration
Defines a registration to
SmartEventSupport
.-
Constructor Summary
ConstructorDescriptionRegistration
(Class<? extends Element> metaclass, SmartListenerConfig config, PropertyChangeListener listener) Creates and initializes a newRegistration
instance from specified parameters.Registration
(Class<? extends Element> metaclass, SmartListenerConfig config, PropertyChangeListener listener, String description) Creates and initializes a newRegistration
instance from specified parameters.Registration
(Class<? extends Element> metaclass, Collection<SmartListenerConfig> configs, PropertyChangeListener listener) Creates and initializes a newRegistration
instance from specified parameters.Registration
(Class<? extends Element> metaclass, Collection<SmartListenerConfig> configs, PropertyChangeListener listener, String description) Creates and initializes a newRegistration
instance from specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns collection of listener configurations.Returns description of the registration.Returns listener of the registration.Returns metaclass.int
hashCode()
-
Constructor Details
-
Registration
public Registration(Class<? extends Element> metaclass, Collection<SmartListenerConfig> configs, PropertyChangeListener listener) Creates and initializes a newRegistration
instance from specified parameters.- Parameters:
metaclass
- register to specified metaclass.configs
- collection of smart listener configs.listener
- listener that should be notified.
-
Registration
public Registration(Class<? extends Element> metaclass, Collection<SmartListenerConfig> configs, PropertyChangeListener listener, String description) Creates and initializes a newRegistration
instance from specified parameters.- Parameters:
metaclass
- register to specified metaclass.configs
- collection of smart listener configs.listener
- listener that should be notified.description
- description of the registration. It can be used to identify the registration submitter.
-
Registration
public Registration(Class<? extends Element> metaclass, SmartListenerConfig config, PropertyChangeListener listener) Creates and initializes a newRegistration
instance from specified parameters.- Parameters:
metaclass
- register to specified metaclass.config
- smart listener config or null. null means that all available properties of the metaclass are important.listener
- listener that should be notified.
-
Registration
public Registration(Class<? extends Element> metaclass, SmartListenerConfig config, PropertyChangeListener listener, String description) Creates and initializes a newRegistration
instance from specified parameters.- Parameters:
metaclass
- register to specified metaclass.config
- smart listener config or null. null means that all available properties of the metaclass are important.listener
- listener that should be notified.description
- description of the registration. It can be used to identify the registration submitter.
-
-
Method Details
-
getMetaclass
Returns metaclass.- Returns:
- metaclass
-
getConfigs
Returns collection of listener configurations.- Returns:
- listener configurations.
-
getListener
Returns listener of the registration.- Returns:
- listener
-
getDescription
Returns description of the registration. Description should allow identifying the registration submitter.- Returns:
- description
-
equals
-
hashCode
public int hashCode()
-