public class ServiceMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
The name of this class
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ServiceMapping(java.lang.String source, java.lang.String target, VerbAction action, java.lang.Class nounType)
Constructs a mapping
|
Modifier and Type | Method and Description |
---|---|
VerbAction | getAction() |
java.lang.Class | getNounType()
Gets the type of the noun on which the mapping is based.
|
java.lang.String | getSource() |
java.lang.String | getTarget() |
java.util.List | getVariableNames() |
static java.util.List | getVariables(java.lang.String source)
Gets a list of variable strings in the given source string.
|
static java.util.List | getVariableValues(java.lang.String source)
Get potential variable values of a source.
|
boolean | hasVariables()
Determines if this mapping contains variables
|
boolean | matchesVariables(java.lang.String source)
Determines if the given source has values matching the variables in this mapping
|
java.lang.String | resolveTarget(java.lang.String param)
Replaces the variables in a target string with the value in the given parameter
|
void | setAction(VerbAction action)
Sets the action of the mapping
|
void | setNounType(java.lang.Class nounType)
Sets the type of the noun on which the mapping is based.
|
void | setSource(java.lang.String source)
Sets the source of the mapping
|
void | setTarget(java.lang.String target)
Sets the mapping target
|
static java.lang.String | stripVariable(java.lang.String source)
Strips variables from a source used for service mapping
|
static java.lang.String | stripVariableValue(java.lang.String source)
Strips the possible variable value from a given source.
|
java.lang.String | toString() |
public static final java.lang.String CLASS_NAME
public static final java.lang.String COPYRIGHT
public ServiceMapping(java.lang.String source, java.lang.String target, VerbAction action, java.lang.Class nounType)
public java.util.List getVariableNames()
public java.lang.String getSource()
public java.lang.String getTarget()
public void setSource(java.lang.String source)
public void setTarget(java.lang.String target)
public VerbAction getAction()
public void setAction(VerbAction action)
public void setNounType(java.lang.Class nounType)
public java.lang.Class getNounType()
public java.lang.String toString()
public static java.lang.String stripVariable(java.lang.String source)
public static java.lang.String stripVariableValue(java.lang.String source)
public static java.util.List getVariables(java.lang.String source)
public static java.util.List getVariableValues(java.lang.String source)
public boolean matchesVariables(java.lang.String source)
public boolean hasVariables()
public java.lang.String resolveTarget(java.lang.String param)