org.nuiton.wikitty.search
Class Or

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

public class Or
extends Restriction
implements java.io.Serializable

Or operator is used to build disjunctive restriction for request on content. It take at least 2 args.

For example, use:

See Also:
Serialized Form

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

Field Detail

restrictions

protected java.util.List<Restriction> restrictions
Constructor Detail

Or

public Or()
Default constructor


Or

public Or(java.util.List<Restriction> restrictions)
Constructor with all parameters initialized

Parameters:
restrictions -
Method Detail

getRestrictions

public java.util.List<Restriction> getRestrictions()
Return restrictions

Returns:

setRestrictions

public void setRestrictions(java.util.List<Restriction> restrictions)
Set a value to parameter restrictions.

Parameters:
restrictions -

equals

public boolean equals(java.lang.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-2010 CodeLutin. All Rights Reserved.