Class ModuleID

java.lang.Object
com.aquima.interactions.project.ModuleID
All Implemented Interfaces:
Serializable

public class ModuleID extends Object implements Serializable
This class is used to identify a Module. NOTE: The module identifier is not the same as an application identifier.
Since:
7.1
Author:
O. Kerpershoek
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModuleID(String name, Version version)
    Default constructor that creates a module id based on a module name and version.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method will compare the object passed to this method with the application id, and return a boolean indicating whether the object passed exactly identifies the same application.
    This method returns the name of the application this id represents.
    This method returns the version of the application this id represents.
    int
     
     
    static ModuleID
    valueOf(String strModuleId)
    Creates a ModuleID from a string representation.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ModuleID

      public ModuleID(String name, Version version)
      Default constructor that creates a module id based on a module name and version. Both the name of the module and the version are mandatory.
      Parameters:
      name - The name of the module.
      version - The version of the module.
  • Method Details

    • valueOf

      public static ModuleID valueOf(String strModuleId)
      Creates a ModuleID from a string representation.
      Parameters:
      strModuleId - string containing the version information.
      Returns:
      a ModuleID
    • getName

      public String getName()
      This method returns the name of the application this id represents.
      Returns:
      The name of the application.
    • getVersion

      public Version getVersion()
      This method returns the version of the application this id represents.
      Returns:
      The version of the application.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      This method will compare the object passed to this method with the application id, and return a boolean indicating whether the object passed exactly identifies the same application.
      Overrides:
      equals in class Object
      Parameters:
      obj - Object which should be compared to this application id.
      Returns:
      boolean indicating whether the object passed is identical to this application id.
    • toString

      public String toString()
      Overrides:
      toString in class Object