org.omwg.mediation.language.objectModel
Class ComplexExpression

java.lang.Object
  extended by org.omwg.mediation.language.objectModel.ComplexExpression
All Implemented Interfaces:
ExpressionDefinition

public class ComplexExpression
extends java.lang.Object
implements ExpressionDefinition

Class implements ExpressionDefinition - Constructs a complex expression object consisting of its sub-expressions and string representation (operator)

Version:
$Revision: 1.4 $ $Date: 2005/06/20 09:54:04 $
Author:
FirstName LastName, FirstName LastName Created on 19-Mar-2005 Committed by $Author: grahamhench $ $Source: /cvsroot/dome//dome/src/org/omwg/mediation/language/objectModel/ComplexExpression.java,v $,

Constructor Summary
ComplexExpression(java.util.ArrayList subExpressions, java.lang.String operator)
          Constructs a complex expression object consisting of its sub-expressions and string representation (operator)
 
Method Summary
 java.lang.Object clone()
          Copies the complex expression object
 java.lang.String getOperator()
          Returns string representation (operator) when predefined
 java.util.ArrayList getSubExpressions()
          Returns the array list of sub-expressions that constitute the complex expression when predefined
 boolean isComplexExpression()
          Affirms that the expression is complex
 void setOperator(java.lang.String operator)
          Sets string representation (operator)
 void setSubExpressions(java.util.ArrayList subExpressions)
          Sets the array list of sub-expressions that constitute the complex expression
 java.lang.String toString()
          Returns the string reprentation of the array list of sub-expressions that constitute the complex expression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexExpression

public ComplexExpression(java.util.ArrayList subExpressions,
                         java.lang.String operator)

Constructs a complex expression object consisting of its sub-expressions and string representation (operator)

Parameters:
subExpressions - (array of expressions that consitute a complex expression)
operator - (string representation of expression)
Method Detail

getOperator

public java.lang.String getOperator()

Returns string representation (operator) when predefined

Returns:
operator (string type)

setOperator

public void setOperator(java.lang.String operator)

Sets string representation (operator)

Parameters:
operator - (string type)

isComplexExpression

public boolean isComplexExpression()

Affirms that the expression is complex

Specified by:
isComplexExpression in interface ExpressionDefinition
Returns:
true (boolean type)

getSubExpressions

public java.util.ArrayList getSubExpressions()

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

Specified by:
getSubExpressions in interface ExpressionDefinition
Returns:
subExpression (array list)

setSubExpressions

public void setSubExpressions(java.util.ArrayList subExpressions)

Sets the array list of sub-expressions that constitute the complex expression

Parameters:
subExpressions - (array list)

toString

public java.lang.String toString()

Returns the string reprentation of the array list of sub-expressions that constitute the complex expression

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

clone

public java.lang.Object clone()

Copies the complex expression object

Specified by:
clone in interface ExpressionDefinition
Overrides:
clone in class java.lang.Object
Returns:
new complex expression object