Class SourceType

java.lang.Object
com.aquima.interactions.profile.SourceType
All Implemented Interfaces:
Serializable

public final class SourceType extends Object implements Serializable
This class holds the possible source types of an attribute value. The source type gives an indicates of where the value originated from.
Since:
5.0
Author:
O. Kerpershoek, F. v.d. Meer
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SourceType
    This define holds the definition for the 'Constant' source type.
    static final SourceType
    This define holds the definition for the 'Default' source type.
    static final SourceType
    This define holds the definition for the 'Rule' source type.
    static final SourceType
    This define holds the definition for the 'Unknown' source type.
    static final SourceType
    This define holds the definition for the 'User' source type.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    This method returns the unique id of the source type.
    This method returns the unique name of the source type.
    int
     
    boolean
    Indicates whether this source type represents system source.
     
    static SourceType
    This method will returns the static source type definition for the specified source type name.

    Methods inherited from class java.lang.Object

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

    • UNKNOWN

      public static final SourceType UNKNOWN
      This define holds the definition for the 'Unknown' source type. This type is used when a value has not yet been set.
    • CONSTANT

      public static final SourceType CONSTANT
      This define holds the definition for the 'Constant' source type. This type is used for constant values that are for instance defined by static instances.
    • USER

      public static final SourceType USER
      This define holds the definition for the 'User' source type. This type is used for values that were set by the client or a custom component (for instance a service).
    • RULE

      public static final SourceType RULE
      This define holds the definition for the 'Rule' source type. This type is used for values that were determined by a business rule (for instance a decision table).
    • DEFAULT

      public static final SourceType DEFAULT
      This define holds the definition for the 'Default' source type. This type is used for values that were determined by a default business rule.
  • Method Details

    • valueOf

      public static SourceType valueOf(String name)
      This method will returns the static source type definition for the specified source type name.
      Parameters:
      name - The name of the source type for which the static definition is requested.
      Returns:
      The static source type definition for the specified name.
    • getId

      public int getId()
      This method returns the unique id of the source type.
      Returns:
      the unique id of the source type.
    • getName

      public String getName()
      This method returns the unique name of the source type.
      Returns:
      the unique name of the source type.
    • isSystem

      public boolean isSystem()
      Indicates whether this source type represents system source.

      UNKNOWN, RULE and DEFAULT are system sources and USER is a user source. The CONSTANT is considered a user source, as its value is set by the business engineer at modeling time.

      Returns:
      true if this source type represents a system source, false otherwise.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object