Package com.aquima.interactions.profile
Class SourceType
java.lang.Object
com.aquima.interactions.profile.SourceType
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionboolean
int
getId()
This method returns the unique id of the source type.getName()
This method returns the unique name of the source type.int
hashCode()
boolean
isSystem()
Indicates whether this source type represents system source.toString()
static SourceType
This method will returns the static source type definition for the specified source type name.
-
Field Details
-
UNKNOWN
This define holds the definition for the 'Unknown' source type. This type is used when a value has not yet been set. -
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
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
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
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
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
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
andDEFAULT
are system sources andUSER
is a user source. TheCONSTANT
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
-
hashCode
public int hashCode() -
toString
-