org.expasy.jpl.commons.base.cond.operator
Class OperatorManager

java.lang.Object
  extended by org.expasy.jpl.commons.base.cond.operator.OperatorManager

public final class OperatorManager
extends Object

This manager stores all Operators and provides an access by name.

Version:
1.0
Author:
nikitin

Nested Class Summary
 class OperatorManager.InvalidOperatorException
           
static class OperatorManager.InvalidOperatorRTException
          Exception thrown when AbstractOperator is not well configured or adapted to the operand types.
 
Field Summary
static OperatorMulti<Number> GREATER_EQUALS
           
static OperatorMulti<Number> LESS_EQUALS
           
 
Constructor Summary
OperatorManager()
           
 
Method Summary
static OperatorManager getInstance()
           
 Operator getOperator(String token)
           
 int[] getOperatorPosInCondition(String condition)
           
 String[] getRvalueOpLvalue(String condition)
           
 boolean isConditionContainsOperator(String condition)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GREATER_EQUALS

public static final OperatorMulti<Number> GREATER_EQUALS

LESS_EQUALS

public static final OperatorMulti<Number> LESS_EQUALS
Constructor Detail

OperatorManager

public OperatorManager()
Method Detail

getInstance

public static OperatorManager getInstance()

getOperator

public Operator getOperator(String token)
                     throws OperatorManager.InvalidOperatorException
Throws:
OperatorManager.InvalidOperatorException

isConditionContainsOperator

public boolean isConditionContainsOperator(String condition)

getOperatorPosInCondition

public int[] getOperatorPosInCondition(String condition)

getRvalueOpLvalue

public String[] getRvalueOpLvalue(String condition)
                           throws OperatorManager.InvalidOperatorException
Parameters:
condition -
Returns:
Throws:
OperatorManager.InvalidOperatorException
OperatorNotFoundRTException - if operator not found

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.