public class TouchpointInstruction extends java.lang.Object implements ITouchpointInstruction
The format of a touchpoint instruction statement sequence is as follows: statement-sequence : | statement ';' | statement-sequence statement ; Where a statement is of the format: statement : | actionName '(' parameters ')' ; parameters : | // empty | parameter | parameters ',' parameter ; parameter : | paramName ':' paramValue ; actionName, paramName, paramValue : | String ;
| Constructor and Description |
|---|
TouchpointInstruction(java.lang.String body,
java.lang.String importAttribute)
Clients must use the factory method on
MetadataFactory. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
encodeAction(java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.String> parameters)
Encodes an action statement in string form.
|
boolean |
equals(java.lang.Object obj)
Returns whether this TouchpointInstruction is equal to the given object.
|
java.lang.String |
getBody()
Returns the body of this touchpoint instruction.
|
java.lang.String |
getImportAttribute() |
int |
hashCode() |
java.lang.String |
toString()
Returns a string representation of this instruction for debugging purposes only.
|
public TouchpointInstruction(java.lang.String body,
java.lang.String importAttribute)
MetadataFactory.public static java.lang.String encodeAction(java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.String> parameters)
actionName - The name of the action.parameters - The function's parameters. This is a Mappublic boolean equals(java.lang.Object obj)
ITouchpointInstructionequals in interface ITouchpointInstructionequals in class java.lang.Objectpublic java.lang.String getBody()
getBody in interface ITouchpointInstructionpublic java.lang.String getImportAttribute()
getImportAttribute in interface ITouchpointInstructionpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object