|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.api.dml.DFOperator
com.im.df.api.dml.Operators.SimpleFieldValuesOperator
public static class Operators.SimpleFieldValuesOperator
Currently we support only "Field Operator [Value, [Value, ...]]" formats. So the operators will be improved later when we support more formats.
| Constructor Summary | |
|---|---|
Operators.SimpleFieldValuesOperator(String displayName,
Class[] allowedCapabilities)
|
|
Operators.SimpleFieldValuesOperator(String displayName,
int exactCountOfValues,
Class[] allowedCapabilities)
|
|
Operators.SimpleFieldValuesOperator(String displayName,
int exactCountOfValues,
Class[] allowedCapabilities,
boolean emptyStringAllowed)
|
|
Operators.SimpleFieldValuesOperator(String displayName,
String displayNameInExpression,
int exactCountOfValues,
Class[] allowedCapabilities)
|
|
Operators.SimpleFieldValuesOperator(String displayName,
String displayNameInExpression,
int minValues,
int maxValues,
Class[] allowedCapabilities,
boolean emptyStringAllowed)
|
|
| Method Summary | |
|---|---|
Class<? extends DFFieldDataTypeCapability> |
getReturnType(List<DFTerm> operands)
Compute the return type of the term. |
protected String |
getValidFormatMsg()
|
protected boolean |
isEmptyStringAllowed()
|
boolean |
isFieldAcceptableAsOperand(DFField field)
This is just an utility method which must be implemented by subclasses. |
Object[] |
parseOperands(DFField field,
String operands)
|
void |
validate(DFDataTree dataTree,
List<DFTerm> operands,
Map<String,Object> options,
TermErrors errors)
Validate the operands in context of this operator. |
| Methods inherited from class com.im.df.api.dml.DFOperator |
|---|
correctNumberOfOperands, getDisplayName, getDisplayNameInExpression, getMaxOperands, getMinOperands, getToStringPart, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Operators.SimpleFieldValuesOperator(String displayName,
Class[] allowedCapabilities)
public Operators.SimpleFieldValuesOperator(String displayName,
int exactCountOfValues,
Class[] allowedCapabilities)
public Operators.SimpleFieldValuesOperator(String displayName,
int exactCountOfValues,
Class[] allowedCapabilities,
boolean emptyStringAllowed)
public Operators.SimpleFieldValuesOperator(String displayName,
String displayNameInExpression,
int exactCountOfValues,
Class[] allowedCapabilities)
public Operators.SimpleFieldValuesOperator(String displayName,
String displayNameInExpression,
int minValues,
int maxValues,
Class[] allowedCapabilities,
boolean emptyStringAllowed)
| Method Detail |
|---|
public void validate(DFDataTree dataTree,
List<DFTerm> operands,
Map<String,Object> options,
TermErrors errors)
DFOperatorDFTerm.validate(com.im.df.api.ddl.DFDataTree).
validate in class DFOperatordataTree - The datatree where this operator will be usedoperands - The list of operandsoptions - Options of this query term (DFTermExpression.getOptions()errors - The errors object which contains the result of the validationprotected boolean isEmptyStringAllowed()
public Class<? extends DFFieldDataTypeCapability> getReturnType(List<DFTerm> operands)
DFOperator
getReturnType in class DFOperatoroperands - The operands for the computation of return type. The result can be different for
different set of operands.
DFFieldDataTypeCapability or nullpublic boolean isFieldAcceptableAsOperand(DFField field)
DFOperatorFor example some operator takes two operands of different types (text, integer,...), but both must be of the same type. In this case this method returns true for all text, integer etc. fields, but if you use combination of [text, integer] as operands, it will be invalid.
isFieldAcceptableAsOperand in class DFOperatorfield - The field to be tested
protected String getValidFormatMsg()
public Object[] parseOperands(DFField field,
String operands)
throws IllegalArgumentException
parseOperands in class DFOperatorIllegalArgumentException
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||