org.nuiton.wikitty.search
Class Restriction

java.lang.Object
  extended by org.nuiton.wikitty.search.Restriction
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
And, AssociatedRestriction, Between, BinaryOperator, Contains, In, Keyword, Not, Or

public class Restriction
extends Object
implements Serializable

This element is a symbolic interface implemented by all operators used to request contents (And, Or, Not, Equals, NotEquals, EndsWith, ...).

See Also:
Serialized Form

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

Field Detail

name

protected RestrictionName name
Constructor Detail

Restriction

public Restriction()
Default constructor


Restriction

public Restriction(RestrictionName name)
Constructor with all parameters initialized

Parameters:
name -
Method Detail

getName

public RestrictionName getName()
Return name

Returns:

setName

public void setName(RestrictionName name)
Set a value to parameter name.

Parameters:
name -

equals

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2010 CodeLutin. All Rights Reserved.