org.nuiton.wikitty.search.operators
Class Contains

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

public class Contains
extends Restriction
implements Serializable

Contains operator is used to build restriction containing "(element like *value1 or element like value1*) and (element like *value2 or element like value2*)" where element could be a String, a multimedia, a text or an xhtml

For example, use:

See Also:
Serialized Form

Field Summary
protected  Element element
           
protected  List<String> value
           
 
Fields inherited from class org.nuiton.wikitty.search.operators.Restriction
name
 
Constructor Summary
Contains()
          Default constructor
Contains(Element element, List<String> value)
          Constructor with all parameters initialized
 
Method Summary
 boolean equals(Object other)
          Equality test based attributes values
 Element getElement()
          Return element
 List<String> getValue()
          Return value
 int hashCode()
           
 void setElement(Element element)
          Set a value to parameter element.
 void setValue(List<String> value)
          Set a value to parameter value.
 
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

element

protected Element element

value

protected List<String> value
Constructor Detail

Contains

public Contains()
Default constructor


Contains

public Contains(Element element,
                List<String> value)
Constructor with all parameters initialized

Parameters:
element -
value -
Method Detail

getElement

public Element getElement()
Return element

Returns:

setElement

public void setElement(Element element)
Set a value to parameter element.

Parameters:
element -

getValue

public List<String> getValue()
Return value

Returns:

setValue

public void setValue(List<String> value)
Set a value to parameter value.

Parameters:
value -

equals

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Restriction


Copyright © 2009-2011 CodeLutin. All Rights Reserved.