Class BaseComparison
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseFunction
-
- 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
- Author:
- andyh
-
-
Field Summary
Fields Modifier and Type Field Description static StringARG_LHSLeft hand sidestatic StringARG_MODEMode: SVP or mode for MVP comparisonsstatic StringARG_RHSRight hand sidestatic LinkedHashMap<String,ArgumentDefinition>ARGSArgs
-
Constructor Summary
Constructors Constructor Description BaseComparison(String name, QName returnType, LinkedHashMap<String,ArgumentDefinition> argumentDefinitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FunctionArgumentgetFunctionArgument()protected PropertyArgumentgetPropertyArgument()StringgetPropertyName()protected StaticArgumentgetStaticArgument()StringgetStaticPosition()voidsetPropertyAndStaticArguments(Map<String,Argument> functionArgs)-
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseFunction
getArgumentDefinition, getArgumentDefinitions, getName, getReturnType, toString
-
-
-
-
Field Detail
-
ARG_LHS
public static final String ARG_LHS
Left hand side- See Also:
- Constant Field Values
-
ARG_RHS
public static final String ARG_RHS
Right hand side- See Also:
- Constant Field Values
-
ARG_MODE
public static final String ARG_MODE
Mode: SVP or mode for MVP comparisons- See Also:
- Constant Field Values
-
ARGS
public static LinkedHashMap<String,ArgumentDefinition> ARGS
Args
-
-
Constructor Detail
-
BaseComparison
public BaseComparison(String name, QName returnType, LinkedHashMap<String,ArgumentDefinition> argumentDefinitions)
- Parameters:
name- StringreturnType- QName
-
-
Method Detail
-
setPropertyAndStaticArguments
public void setPropertyAndStaticArguments(Map<String,Argument> 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
-
getStaticPosition
public String getStaticPosition()
- Returns:
- the staticPosition
-
getFunctionArgument
protected FunctionArgument getFunctionArgument()
- Returns:
- the functionArgument
-
getPropertyName
public String getPropertyName()
-
-