org.omwg.mediation.language.objectModel
Class Expression

java.lang.Object
  extended by org.omwg.mediation.language.objectModel.Expression
Direct Known Subclasses:
AttributeExpr, ClassExpr, InstanceExpr, RelationExpr

public abstract class Expression
extends java.lang.Object

Defines the general operators and specific expressions needed for the mapping. Has four extenstions where expression objects are constructed: InstanceExpr, ClassExpr, RelationExpr, & AttributeExpr

Version:
$Revision: 1.4 $ $Date: 2005/06/20 09:54:04 $
Author:
Francois Scharffe, Adrian Mocan Created on 23-Mar-2005 Committed by $Author: grahamhench $ $Source: /cvsroot/dome//dome/src/org/omwg/mediation/language/objectModel/Expression.java,v $,

Field Summary
static java.lang.String AND_OPERATOR
          Represents string type "and" operator
static java.lang.String INVERSE_OPERATOR
          Represents string type "inverse" operator
static java.lang.String JOIN_OPERATOR
          Represents string type "join" operator
static java.lang.String NOT_OPERATOR
          Represents string type "not" operator
static java.lang.String OR_OPERATOR
          Represents string type "or" operator
static java.lang.String REFLEXIVE_OPERATOR
          Represents string type "reflexive" operator
static java.lang.String SYMMETRIC_OPERATOR
          Represents string type "symmetric" operator
static java.lang.String TRANS_OPERATOR
          Represents string type "transitive" operator
 
Constructor Summary
Expression()
           
 
Method Summary
abstract  java.lang.Object clone()
          Copies expression object
 Id getId()
          Returns expression definition id if the expression is not complex
 java.lang.String getOperator()
          Returns expression (operating function) in string type if the expression definition is complex
abstract  Expression getSubExpression(int index)
          Returns specific expression from the array list of sub-expressions that constitute the complex expression when predefined
abstract  java.util.ArrayList getSubExpressionsList()
          Returns the array list of sub-expressions that constitute the complex expression when predefined
 boolean isComplexExpression()
          Returns boolean declaring whether or not the expression definition is complex
 java.lang.String toString()
          Returns string representation of the expression definition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AND_OPERATOR

public static final java.lang.String AND_OPERATOR

Represents string type "and" operator

See Also:
Constant Field Values

OR_OPERATOR

public static final java.lang.String OR_OPERATOR

Represents string type "or" operator

See Also:
Constant Field Values

NOT_OPERATOR

public static final java.lang.String NOT_OPERATOR

Represents string type "not" operator

See Also:
Constant Field Values

JOIN_OPERATOR

public static final java.lang.String JOIN_OPERATOR

Represents string type "join" operator

See Also:
Constant Field Values

INVERSE_OPERATOR

public static final java.lang.String INVERSE_OPERATOR

Represents string type "inverse" operator

See Also:
Constant Field Values

SYMMETRIC_OPERATOR

public static final java.lang.String SYMMETRIC_OPERATOR

Represents string type "symmetric" operator

See Also:
Constant Field Values

REFLEXIVE_OPERATOR

public static final java.lang.String REFLEXIVE_OPERATOR

Represents string type "reflexive" operator

See Also:
Constant Field Values

TRANS_OPERATOR

public static final java.lang.String TRANS_OPERATOR

Represents string type "transitive" operator

See Also:
Constant Field Values
Constructor Detail

Expression

public Expression()
Method Detail

isComplexExpression

public boolean isComplexExpression()

Returns boolean declaring whether or not the expression definition is complex

Returns:
boolean (referring to whether or not the expression is complex)

getId

public Id getId()

Returns expression definition id if the expression is not complex

Returns:
Id (of the expression definition)

getOperator

public java.lang.String getOperator()

Returns expression (operating function) in string type if the expression definition is complex

Returns:
Id (of the expression definition)

getSubExpressionsList

public abstract java.util.ArrayList getSubExpressionsList()

Returns the array list of sub-expressions that constitute the complex expression when predefined

Returns:
subExpression (array list)

getSubExpression

public abstract Expression getSubExpression(int index)

Returns specific expression from the array list of sub-expressions that constitute the complex expression when predefined

Returns:
expression (expression object)

toString

public java.lang.String toString()

Returns string representation of the expression definition

Overrides:
toString in class java.lang.Object
Returns:
expression definition (string type)

clone

public abstract java.lang.Object clone()

Copies expression object

Overrides:
clone in class java.lang.Object