Class ModuleElementReference
java.lang.Object
com.aquima.interactions.metamodel.AbstractReference
com.aquima.interactions.metamodel.ModuleElementReference
- All Implemented Interfaces:
Serializable
Simple class that holds a reference to an element from a module. An ModuleElementReference consists of a module
representing the moduleName and an element representing the elementName. The object may either be constructed by
providing the names separately or by providing a string containing both separated by a dot.
- Since:
- 10.1
- Author:
- Emoke Olti
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModuleElementReference
(String fullReference) Constructs a reference from a full module element name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the element name of the reference.This method returns the module name of the reference.int
hashCode()
static boolean
Validates if the supplied string is a valid module element reference notation.toString()
protected static String
validateElement
(String fullName, String element) Methods inherited from class com.aquima.interactions.metamodel.AbstractReference
getInvalidCharIndex, getInvalidCharIndex, validateName
-
Constructor Details
-
ModuleElementReference
Constructs a reference from a full module element name. The name passed to this method should consist of a module name, followed by a dot and an element name. This constructor will validate the name, and throw an InitialisationException when the passed name is not valid.- Parameters:
fullReference
- String containing the module and element name separated by a dot.
-
-
Method Details
-
getModule
This method returns the module name of the reference.- Returns:
- the module name of the reference.
-
getElement
This method returns the element name of the reference.- Returns:
- the element name of the reference.
-
getFullname
-
equals
-
hashCode
public int hashCode() -
toString
-
isValid
Validates if the supplied string is a valid module element reference notation.- Parameters:
fullname
- string to validate.- Returns:
- return true when valid, otherwise false.
-
validateElement
-