Package com.documentum.fc.client.search
Class DfExpressionVisitor
java.lang.Object
com.documentum.fc.client.search.DfExpressionVisitor
Abstract visitor used to visit an IDfExpression.
The Visitor pattern allows to visit an expression node or an expression tree, with no need to cast the different kinds of expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(IDfExpressionSet expr) Visits anIDfExpressionSet
.void
visit
(IDfFullTextExpression expr) Visits anIDfFullTextExpression
.void
Visits anIDfRelativeDateExpression
.void
visit
(IDfSimpleAttrExpression expr) Visits anIDfSimpleAttrExpression
.void
Visits anIDfValueListAttrExpression
.void
Visits anIDfValueRangeAttrExpression
.
-
Constructor Details
-
DfExpressionVisitor
public DfExpressionVisitor()
-
-
Method Details
-
visit
Visits anIDfExpressionSet
.This class default implementation iterates over its children and recursively visits the sub-expressions. If the implementer doesn't call super, he can implement his own iterating mechanism.
- Parameters:
expr
- The expression visited.- Throws:
DfSearchException
- The exception thrown by the visitor (by default, no such exception is thrown).DfException
-
visit
Visits anIDfValueListAttrExpression
.- Parameters:
expr
- The expression visited.- Throws:
DfSearchException
- The exception thrown by the visitor.DfException
-
visit
Visits anIDfFullTextExpression
.- Parameters:
expr
- The expression visited.- Throws:
DfSearchException
- The exception thrown by the visitor.DfException
-
visit
Visits anIDfSimpleAttrExpression
.- Parameters:
expr
- The expression visited.- Throws:
DfSearchException
- The exception thrown by the visitor.DfException
-
visit
Visits anIDfRelativeDateExpression
.- Parameters:
expr
- The expression visited.- Throws:
DfSearchException
- The exception thrown by the visitor.DfException
-
visit
Visits anIDfValueRangeAttrExpression
.- Parameters:
expr
- The expression visited.- Throws:
DfSearchException
- The exception thrown by the visitor.DfException
-