org.alfresco.repo.search.impl.querymodel.impl
Class BaseComparison

java.lang.Object
  extended by org.alfresco.repo.search.impl.querymodel.impl.BaseFunction
      extended by org.alfresco.repo.search.impl.querymodel.impl.BaseComparison
All Implemented Interfaces:
Function
Direct Known Subclasses:
Equals, GreaterThan, GreaterThanOrEquals, LessThan, LessThanOrEquals, NotEquals

public abstract class BaseComparison
extends BaseFunction


Field Summary
static java.lang.String ARG_LHS
          Left hand side
static java.lang.String ARG_MODE
          Mode: SVP or mode for MVP comparisons
static java.lang.String ARG_RHS
          Right hand side
static java.util.LinkedHashMap ARGS
          Args
 
Constructor Summary
BaseComparison(java.lang.String name, QName returnType, java.util.LinkedHashMap argumentDefinitions)
           
 
Method Summary
protected  FunctionArgument getFunctionArgument()
           
protected  PropertyArgument getPropertyArgument()
           
 java.lang.String getPropertyName()
           
protected  StaticArgument getStaticArgument()
           
 void setPropertyAndStaticArguments(java.util.Map functionArgs)
           
 
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseFunction
getArgumentDefinition, getArgumentDefinitions, getName, getReturnType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.search.impl.querymodel.Function
getValue
 

Field Detail

ARG_LHS

public static final java.lang.String ARG_LHS
Left hand side

See Also:
Constant Field Values

ARG_RHS

public static final java.lang.String ARG_RHS
Right hand side

See Also:
Constant Field Values

ARG_MODE

public static final java.lang.String ARG_MODE
Mode: SVP or mode for MVP comparisons

See Also:
Constant Field Values

ARGS

public static java.util.LinkedHashMap ARGS
Args

Constructor Detail

BaseComparison

public BaseComparison(java.lang.String name,
                      QName returnType,
                      java.util.LinkedHashMap argumentDefinitions)
Parameters:
name -
returnType -
argumentDefinitions -
Method Detail

setPropertyAndStaticArguments

public void setPropertyAndStaticArguments(java.util.Map functionArgs)

getPropertyArgument

protected PropertyArgument getPropertyArgument()
Returns:
the propertyArgument - there must be a property argument of a function argument

getStaticArgument

protected StaticArgument getStaticArgument()
Returns:
the staticArgument - must be set

getFunctionArgument

protected FunctionArgument getFunctionArgument()
Returns:
the functionArgument

getPropertyName

public java.lang.String getPropertyName()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.