java.lang.Object
org.apache.olingo.server.core.uri.queryoption.expression.MemberImpl
All Implemented Interfaces:
Expression, Member, VisitableExpression

public class MemberImpl extends Object implements Member
  • Constructor Details

  • Method Details

    • getResourcePath

      public UriInfoResource getResourcePath()
      Specified by:
      getResourcePath in interface Member
      Returns:
      UriInfoResource object describing the whole path used to access an data value (this includes for example the usage of $root and $it inside the URI)
    • getStartTypeFilter

      public EdmType getStartTypeFilter()
      Specified by:
      getStartTypeFilter in interface Member
      Returns:
      The used type filter ahead of the path
    • accept

      public <T> T accept(ExpressionVisitor<T> visitor) throws ExpressionVisitException, ODataApplicationException
      Description copied from interface: VisitableExpression
      Method VisitableExpression.accept(ExpressionVisitor) is called when traversing the expression tree. This method is invoked on each expression used as node in an expression tree. The implementations should behave as follows:
    • Call accept on all sub nodes and store the returned Objects which are of the generic type T
    • Call the appropriate method on the ExpressionVisitor instance and provide the stored return objects to that instance
    • Return the object which should be passed to the processing algorithm of the parent expression node

    • Specified by:
      accept in interface VisitableExpression
      Parameters:
      visitor - Visitor object (implementing ExpressionVisitor) whose methods are called during traversing a expression node of the expression tree.
      Returns:
      Object of type T which should be passed to the processing algorithm of the parent expression node
      Throws:
      ExpressionVisitException - Exception occurred in the OData library while traversing the tree
      ODataApplicationException - Exception thrown by the application who implemented the visitor
    • getType

      public EdmType getType()
      Specified by:
      getType in interface Member
      Returns:
      Type
    • isCollection

      public boolean isCollection()
      Specified by:
      isCollection in interface Member
      Returns:
      true if the accessed data is a collection, otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object