org.nuiton.wikitty.search.operators
Class Not

java.lang.Object
  extended by org.nuiton.wikitty.search.operators.Restriction
      extended by org.nuiton.wikitty.search.operators.Not
All Implemented Interfaces:
Serializable

public class Not
extends Restriction
implements Serializable

Not operator is used to build negative restriction for request on content.

For example, use: RestrictionHelper.not( RestrictionHelper.eq( myElement , "myValue" ) )

See Also:
Serialized Form

Field Summary
protected  Restriction restriction
           
 
Fields inherited from class org.nuiton.wikitty.search.operators.Restriction
name
 
Constructor Summary
Not()
          Default constructor
Not(Restriction restriction)
          Constructor with all parameters initialized
 
Method Summary
 boolean equals(Object other)
          Equality test based attributes values
 Restriction getRestriction()
          Return restriction
 int hashCode()
           
 void setRestriction(Restriction restriction)
          Set a value to parameter restriction.
 
Methods inherited from class org.nuiton.wikitty.search.operators.Restriction
getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restriction

protected Restriction restriction
Constructor Detail

Not

public Not()
Default constructor


Not

public Not(Restriction restriction)
Constructor with all parameters initialized

Parameters:
restriction -
Method Detail

getRestriction

public Restriction getRestriction()
Return restriction

Returns:

setRestriction

public void setRestriction(Restriction restriction)
Set a value to parameter restriction.

Parameters:
restriction -

equals

public boolean equals(Object other)
Equality test based attributes values

Overrides:
equals in class Restriction
Parameters:
other - Value to compare

hashCode

public int hashCode()
Overrides:
hashCode in class Restriction


Copyright © 2009-2011 CodeLutin. All Rights Reserved.