AROM-2_2_13

arom.kr.query.engine
Class AQCondition

java.lang.Object
  |
  +--arom.kr.query.engine.AQCondition
All Implemented Interfaces:
Serializable

public class AQCondition
extends Object
implements Serializable

A Class used to built a query in AROMQuery.
A AQCondition is a node of a query path .
a AQCondition is composed of a structure condition (the structure to select), an algebraic condition (a QCL expression) and a link to the next element in path (possibly including a rolename condition).

Author:
Alain Viari
See Also:
Serialized Form

Constructor Summary
AQCondition(String structName)
          alternate constructor - no algebraic condition
AQCondition(String structName, String qclExpression)
          the standard constructor
AQCondition(String structName, String qclExpression, String searchSpaceName)
          the standard constructor
 
Method Summary
 void add(AQCondition child)
          add child to this node - without role condition
 void add(AQCondition child, String roleName)
          add child to this node
 String getQCLExpression()
          get QCL condition expression
 String getRoleName()
          get role condition name
 String getSearchSpace()
          Returns the search space name.
 String getStructureName()
          get structure condition name
 boolean hasSearchSpace()
          Returns true if this AQCondition has search space limited to a set of instances.
 AQCondition next()
          get next (child) node
 AQCondition previous()
          get previous (parent) node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AQCondition

public AQCondition(String structName,
                   String qclExpression,
                   String searchSpaceName)
the standard constructor

Parameters:
structName - the name of the structure (structure condition)
qclExpression - a QCL expression (algebraic condition) if (qclExpression == null) or (qclExpression == "*") then no algebraic condition is set.

AQCondition

public AQCondition(String structName,
                   String qclExpression)
the standard constructor

Parameters:
structName - the name of the structure (structure condition)
qclExpression - a QCL expression (algebraic condition) if (qclExpression == null) or (qclExpression == "*") then no algebraic condition is set.

AQCondition

public AQCondition(String structName)
alternate constructor - no algebraic condition

Parameters:
structName - the name of the structure (structure condition)
Method Detail

getStructureName

public String getStructureName()
get structure condition name

Returns:
The structureName value

getRoleName

public String getRoleName()
get role condition name

Returns:
The roleName value

getQCLExpression

public String getQCLExpression()
get QCL condition expression

Returns:
The qCLExpression value

add

public void add(AQCondition child,
                String roleName)
add child to this node

Parameters:
child - AQCondition to add as child
roleName - the name of role (role condition) if (roleName == null) or (roleName == "*") then no role condition is set. if this node is a Class then child is an Association and roleName indicates the role of this node in child. if this node is an Association then child is a Class and roleName indicates the role of child node in this node.

add

public void add(AQCondition child)
add child to this node - without role condition

Parameters:
child - AQCondition to add as child

next

public AQCondition next()
get next (child) node

Returns:
next node. null if no child node.

previous

public AQCondition previous()
get previous (parent) node

Returns:
previous node. null if no parent node.

hasSearchSpace

public boolean hasSearchSpace()
Returns true if this AQCondition has search space limited to a set of instances.


getSearchSpace

public String getSearchSpace()
Returns the search space name.


AROM-2_2_13