|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omwg.mediation.language.objectModel.Expression
org.omwg.mediation.language.objectModel.AttributeExpr
public class AttributeExpr
Extends Expression - constructs a relation expression consisting of either an Id, an expression definition, or an array list of sub-expressions and a string representation (operator)
| Field Summary |
|---|
| Fields inherited from class org.omwg.mediation.language.objectModel.Expression |
|---|
AND_OPERATOR, INVERSE_OPERATOR, JOIN_OPERATOR, NOT_OPERATOR, OR_OPERATOR, REFLEXIVE_OPERATOR, SYMMETRIC_OPERATOR, TRANS_OPERATOR |
| Constructor Summary | |
|---|---|
AttributeExpr(java.util.ArrayList subExpressions,
java.lang.String operator)
Constructs an attribute expression object with an array list of sub-expressions and a string representation (operator) |
|
AttributeExpr(Id id)
Constructs an attribute expression object with an id |
|
| Method Summary | |
|---|---|
boolean |
addExpression(AttributeExpr expression)
Sends the attribute expression to the Expression class. |
boolean |
addExpression(AttributeExpr expression,
int index)
Sends the attribute expression and index to the Expression class. |
java.lang.Object |
clone()
Copies the attributeExpr object |
Expression |
getSubExpression(int index)
Returns the specific attribute expression definition from the array list of sub-expressions when the attribute expression is complex. |
java.util.ArrayList |
getSubExpressionsList()
Returns the array list of sub-expressions when the attribute expression is complex. |
| Methods inherited from class org.omwg.mediation.language.objectModel.Expression |
|---|
getId, getOperator, isComplexExpression, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeExpr(Id id)
Constructs an attribute expression object with an id
id -
public AttributeExpr(java.util.ArrayList subExpressions,
java.lang.String operator)
Constructs an attribute expression object with an array list of sub-expressions and a string representation (operator)
subExpressions - (array list of sub-expressions)operator - (string type)| Method Detail |
|---|
public java.util.ArrayList getSubExpressionsList()
Returns the array list of sub-expressions when the attribute expression is complex. Otherwise, returns null
getSubExpressionsList in class Expressionpublic Expression getSubExpression(int index)
Returns the specific attribute expression definition from the array list of sub-expressions when the attribute expression is complex. If not, or if the integer parameter (index) is out of bounds, then the method returns null
getSubExpression in class Expressionindex - (int type)
public boolean addExpression(AttributeExpr expression)
Sends the attribute expression to the Expression class. Adds expression to a complex expression, if the sub-expression array list is not empty - then returns true. Otherwise returns false.
expression - (AttributeExpr object)
public boolean addExpression(AttributeExpr expression,
int index)
Sends the attribute expression and index to the Expression class. Adds expression to a complex expression. If the index is negative or greater than the size of the sub-expression array list, then false is returned. If the sub-expression array list is not empty - then returns true. Otherwise returns false.
expression - (AttributeExpr object)index - (int type)
public java.lang.Object clone()
Copies the attributeExpr object
clone in class Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||