org.xcmis.search.model.operand
Class DynamicOperand

java.lang.Object
  extended by org.xcmis.search.model.operand.DynamicOperand
All Implemented Interfaces:
Serializable, QueryElement
Direct Known Subclasses:
FullTextSearchScore, Length, LowerCase, NodeDepth, NodeLocalName, NodeName, PropertyValue, UpperCase

public abstract class DynamicOperand
extends Object
implements QueryElement

A dynamic operand used in a Comparison constraint.

See Also:
Serialized Form

Constructor Summary
protected DynamicOperand(Collection<SelectorName> selectorNames)
          Create a arithmetic dynamic operand that operates upon the supplied selector name(s).
protected DynamicOperand(DynamicOperand... operands)
          Create a arithmetic dynamic operand that operates upon the selector names given by the supplied dynamic operand(s).
protected DynamicOperand(DynamicOperand operand)
          Create a arithmetic dynamic operand that operates upon the selector names given by the supplied dynamic operand(s).
protected DynamicOperand(Iterable<? extends DynamicOperand> operands)
          Create a arithmetic dynamic operand that operates upon the selector names given by the supplied dynamic operand(s).
protected DynamicOperand(SelectorName... selectorNames)
          Create a arithmetic dynamic operand that operates upon the supplied selector name(s).
 
Method Summary
 boolean equals(Object obj)
          
 Set<SelectorName> getSelectorNames()
          Get the selector symbols to which this operand applies.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xcmis.search.model.QueryElement
accept
 

Constructor Detail

DynamicOperand

protected DynamicOperand(Collection<SelectorName> selectorNames)
Create a arithmetic dynamic operand that operates upon the supplied selector name(s).

Parameters:
selectorNames - the selector names

DynamicOperand

protected DynamicOperand(DynamicOperand operand)
Create a arithmetic dynamic operand that operates upon the selector names given by the supplied dynamic operand(s).

Parameters:
operand - the operand defining the selector names

DynamicOperand

protected DynamicOperand(DynamicOperand... operands)
Create a arithmetic dynamic operand that operates upon the selector names given by the supplied dynamic operand(s).

Parameters:
operands - the operands defining the selector names

DynamicOperand

protected DynamicOperand(Iterable<? extends DynamicOperand> operands)
Create a arithmetic dynamic operand that operates upon the selector names given by the supplied dynamic operand(s).

Parameters:
operands - the operands defining the selector names

DynamicOperand

protected DynamicOperand(SelectorName... selectorNames)
Create a arithmetic dynamic operand that operates upon the supplied selector name(s).

Parameters:
selectorNames - the selector names
Method Detail

getSelectorNames

public Set<SelectorName> getSelectorNames()
Get the selector symbols to which this operand applies.

Returns:
the immutable ordered set of non-null selector names used by this operand; never null and never empty

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.