Package com.google.devtools.depan.filters

Examples of com.google.devtools.depan.filters.PathExpression


   * @param isRecursive Shows whether the selected relations should be applied
   * recursively.
   */
  public void createPathMatcherModel(boolean isRecursive) {
    String setName = getSelectedRelationshipSet().getName();
    PathExpression pathExpressionModel = new PathExpression();
    RelationshipSetAdapter setAdapterFromPicker =
        new RelationshipSetAdapter(setName, getRelationShips(),
            SourcePluginRegistry.getRelations());
    pathExpressionModel.addPathMatcher(
        new PathMatcherTerm(setAdapterFromPicker, isRecursive, false));
    pathMatcherModel = pathExpressionModel;
  }
View Full Code Here


  }

  // TODO(leeca): rename PathMatcher class to NodeSelector
  @Override
  public PathMatcher getNodeSelector() {
    PathExpression result = new PathExpression();
    for (int i = 0; i < pathMatchers.getTable().getItemCount(); i++) {
      PathMatcherTerm matchers =
          (PathMatcherTerm) pathMatchers.getElementAt(i);
      result.addPathMatcher(matchers);
    }
    return result;
  }
View Full Code Here

  /**
   * Creates the <code>PathExpression</code> object used internally for
   * filtering nodes.
   */
  public void createPathMatcherModel() {
    pathExpression = new PathExpression();
    PathExpression pathExpressionRef = (PathExpression) pathExpression;
    for (int i = 0; i < pathMatchers.getTable().getItemCount(); i++) {
      PathMatcherTerm matchers =
          (PathMatcherTerm) pathMatchers.getElementAt(i);
      pathExpressionRef.addPathMatcher(matchers);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.filters.PathExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.