public abstract class Verb
extends java.lang.Object
implements java.io.Serializable
Verb
specifies an action to be performed on a noun. All verbs
contain a default action and one or more expressions. An Expression
specifies a VerbAction
and VerbPath
for a particular noun
in the BusinessObjectDocument
.
A Verb
is contained inside of a DataArea
which is nested in
a BusinessObjectDocument
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Name of this class
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
Verb()
Constructs an empty verb.
|
Modifier and Type | Method and Description |
---|---|
void |
addExpression(Expression expression)
Adds an expression to the verb.
|
void |
addExpression(VerbAction action,
VerbPath path)
Adds an expression to the verb
|
void |
addExpression(VerbAction action,
VerbPathStep[] steps)
Adds an expression to the verb
|
VerbAction |
getAction(VerbPath path)
Gets the action of an expression that contains the given path
|
abstract VerbAction |
getDefaultAction() |
java.util.List |
getExpressionList() |
Expression[] |
getExpressions() |
boolean |
isEmpty() |
boolean |
isPathInExpression(java.lang.String path)
Checks if a path is contained in the expression
|
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public boolean isEmpty()
public Expression[] getExpressions()
public java.util.List getExpressionList()
public void addExpression(Expression expression)
expression
- the expression to be added.public void addExpression(VerbAction action, VerbPath path)
action
- the action of the new expressionpath
- the VerbPath
of the new expressionpublic void addExpression(VerbAction action, VerbPathStep[] steps)
action
- the action of the new expressionsteps
- the steps that represents the VerbPath
of the new
expression.public abstract VerbAction getDefaultAction()
public boolean isPathInExpression(java.lang.String path)
the
- path that is to be checkedpublic VerbAction getAction(VerbPath path)
path
- the path that is associated with an action in expression listpublic java.lang.String toString()
toString
in class java.lang.Object