org.modeshape.graph.query.model
Class DynamicOperand

java.lang.Object
  extended by org.modeshape.graph.query.model.DynamicOperand
All Implemented Interfaces:
Serializable, LanguageObject, Visitable
Direct Known Subclasses:
ArithmeticOperand, FullTextSearchScore, Length, LowerCase, NodeDepth, NodeLocalName, NodeName, NodePath, PropertyValue, ReferenceValue, UpperCase

@Immutable
public abstract class DynamicOperand
extends Object
implements LanguageObject

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
 Set<SelectorName> getSelectorNames()
          Get the selector symbols to which this operand applies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.modeshape.graph.query.model.Visitable
accept
 

Constructor Detail

DynamicOperand

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

Parameters:
selectorNames - the selector names
Throws:
IllegalArgumentException - if the selector names array is null or empty, or if any of the values are null

DynamicOperand

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

Parameters:
selectorNames - the selector names
Throws:
IllegalArgumentException - if the name list is null or empty, or if any of the values are null

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
Throws:
IllegalArgumentException - if the operand is null

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
Throws:
IllegalArgumentException - if the operand is null

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
Throws:
IllegalArgumentException - if the operand is null
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


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.