Class Registration

java.lang.Object
com.nomagic.uml2.ext.jmi.smartlistener.Registration

@Immutable @OpenApiAll public final class Registration extends Object
Defines a registration to SmartEventSupport.
  • Constructor Details

    • Registration

      public Registration(Class<? extends Element> metaclass, Collection<SmartListenerConfig> configs, PropertyChangeListener listener)
      Creates and initializes a new Registration 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 new Registration 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 new Registration 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 new Registration 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

      public Class<? extends Element> getMetaclass()
      Returns metaclass.
      Returns:
      metaclass
    • getConfigs

      public Collection<SmartListenerConfig> getConfigs()
      Returns collection of listener configurations.
      Returns:
      listener configurations.
    • getListener

      public PropertyChangeListener getListener()
      Returns listener of the registration.
      Returns:
      listener
    • getDescription

      public String getDescription()
      Returns description of the registration. Description should allow identifying the registration submitter.
      Returns:
      description
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object