2.17.2: 2011-06-17

net.sf.basedb.util.jep.convert
Class NotConverter

java.lang.Object
  extended by net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Node>
      extended by net.sf.basedb.util.jep.convert.NotConverter
All Implemented Interfaces:
JepConversionFunction<Node>

public class NotConverter
extends AbstractJepConversionFunction<Node>

Convert Not function to a Query API Restriction.

Version:
2.4
Author:
nicklas
Last modified
$Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $

Constructor Summary
NotConverter()
           
 
Method Summary
 String getDescription()
          Get a short description of the function or operator
 String getName()
          Get the name of the function or the symbol of the operator
 boolean isOperator()
          If this converter is a built-in operator.
 Restriction toRestriction(Node node)
          Convert to restriction by calling Restrictions.not(Restriction).
 
Methods inherited from class net.sf.basedb.util.jep.convert.AbstractJepConversionFunction
isFunction, toExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotConverter

public NotConverter()
Method Detail

isOperator

public boolean isOperator()
Description copied from interface: JepConversionFunction
If this converter is a built-in operator.

Specified by:
isOperator in interface JepConversionFunction<Node>
Overrides:
isOperator in class AbstractJepConversionFunction<Node>
Returns:
Always FALSE

getName

public String getName()
Description copied from interface: JepConversionFunction
Get the name of the function or the symbol of the operator

Specified by:
getName in interface JepConversionFunction<Node>
Overrides:
getName in class AbstractJepConversionFunction<Node>
Returns:
The string '!'

getDescription

public String getDescription()
Description copied from interface: JepConversionFunction
Get a short description of the function or operator

Specified by:
getDescription in interface JepConversionFunction<Node>
Overrides:
getDescription in class AbstractJepConversionFunction<Node>
Returns:
Always null

toRestriction

public Restriction toRestriction(Node node)
Convert to restriction by calling Restrictions.not(Restriction).

Specified by:
toRestriction in interface JepConversionFunction<Node>
Overrides:
toRestriction in class AbstractJepConversionFunction<Node>
Parameters:
node - The object to convert
Returns:
A restriction or null

2.17.2: 2011-06-17