Package com.attivio.sdk.search.fields
Class FieldExpressionHandler
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpressionHandler
-
- All Implemented Interfaces:
java.util.function.Function<FieldExpression,FieldExpression>
@Deprecated public abstract class FieldExpressionHandler extends java.lang.Object implements java.util.function.Function<FieldExpression,FieldExpression>
Deprecated.UseFunction
invocations instead.FieldExpressionHandler is used for traversing and transforming field expressions.
-
-
Constructor Summary
Constructors Constructor Description FieldExpressionHandler()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FieldExpression
apply(FieldExpression field)
Deprecated.Implements functional interface, callinghandleFieldExpression(FieldExpression)
.abstract FieldExpression
handleFieldExpression(FieldExpression field)
Deprecated.Method called for every FieldExpression encountered while traversing a top level FieldExpression.
-
-
-
Method Detail
-
handleFieldExpression
public abstract FieldExpression handleFieldExpression(FieldExpression field)
Deprecated.Method called for every FieldExpression encountered while traversing a top level FieldExpression.To delete the encountered FieldExpression from the tree, return null from this method.
To replace the encountered FieldExpression with a new value, return a new FieldExpression.
NOTE: if
field
has child nodes, this method will be called after the child nodes have been traversed.CAUTION: any caller of this method must ensure that
field
is not null.- Parameters:
field
- The FieldExpression currently being traversed.- Returns:
- the FieldExpression to replace field in the tree. Return null to delete this FieldExpression.
-
apply
public final FieldExpression apply(FieldExpression field)
Deprecated.Implements functional interface, callinghandleFieldExpression(FieldExpression)
.- Specified by:
apply
in interfacejava.util.function.Function<FieldExpression,FieldExpression>
-
-