Examples of addTerm()


Examples of org.apache.ws.policy.XorCompositeAssertion.addTerm()

      PolicyDeployer deployer = PolicyDeployer.newInstance(map);
      Policy policy = new Policy("myID");
      PrimitiveAssertion assertion1 = new PrimitiveAssertion(new QName("http://www.jboss.com/test/policy","test"));
      PrimitiveAssertion assertion2 = new PrimitiveAssertion(new QName("http://www.jboss.com/test/policy2","test2"));
      XorCompositeAssertion xorAssertion = new XorCompositeAssertion();
      xorAssertion.addTerm(assertion1);
      xorAssertion.addTerm(assertion2);
      policy.addTerm(xorAssertion);
      deployer.deployServerside(policy, null);
     
      xorAssertion.remove(assertion2);
View Full Code Here

Examples of org.exist.xquery.functions.fn.ExtNear.addTerm()

                "Second argument of near() is empty");
        }
        final Expression e1 = p1.getExpression(0);
        final ExtNear near = new ExtNear(context);
        near.setLocation(ast.getLine(), ast.getColumn());
        near.addTerm(e1);
        near.setPath((PathExpr) params.get(0));
        if (params.size() > 2) {
            p1 = (PathExpr) params.get(2);
            if (p1.getLength() == 0) {
                throw new XPathException(ast.getLine(), ast.getColumn(),
View Full Code Here

Examples of org.exist.xquery.functions.fn.ExtPhrase.addTerm()

                "Second argument of phrase() is empty");
        }
        final Expression e1 = p1.getExpression(0);
        final ExtPhrase phrase = new ExtPhrase(context);
        phrase.setLocation(ast.getLine(), ast.getColumn());
        phrase.addTerm(e1);
        phrase.setPath((PathExpr) params.get(0));
        return phrase;
    }

    /**
 
View Full Code Here

Examples of org.kie.workbench.common.services.refactoring.backend.server.query.QueryBuilder.addTerm()

        final QueryBuilder builder = new QueryBuilder();
        if ( useWildcards ) {
            builder.useWildcards();
        }
        builder.addTerm( typeTerm );
        return builder.build();
    }

    private Map<String, ValueIndexTerm> normalizeTerms( final Set<ValueIndexTerm> terms ) {
        final Map<String, ValueIndexTerm> normalizedTerms = new HashMap<String, ValueIndexTerm>();
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.TermTable.addTerm()

                newTermParameterIndices.add(mpt
                        .addTableParameter(parameter));
            }
        }

        Integer newTermIndex = mtt.addTerm(termToMerge);
        mtpmt.addTermParameterMapping(
                newTermIndex, newTermParameterIndices);

        Integer newNode = mpnt.addNode(newTermIndex, mtt.getTermValues().get(newTermIndex));
View Full Code Here

Examples of org.xapian.Document.addTerm()

            String term = args[x];
            Document doc = new Document();
            doc.addValue(0, term);

            doc.addTerm(term);
            db.addDocument(doc);
        }

        // make sure to commit the database so the documents get written to disk
        db.commit();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.indexersearcher.UserQuery.addTerm()

      if(request.getParameter("query") != null) {
        String query = request.getParameter("query");
        String queryType = request.getParameter("type");
        String parameter = request.getParameter("parameter");
       
        uq.addTerm(query, queryType, parameter);
       
        for(int i=2;request.getParameter("query" + Integer.toString(i)) != null;i++) {
          query = request.getParameter("query" + Integer.toString(i));
          queryType = request.getParameter("type" + Integer.toString(i));
          parameter = request.getParameter("parameter" + Integer.toString(i));
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.indexersearcher.UserQuery.addTerm()

       
        for(int i=2;request.getParameter("query" + Integer.toString(i)) != null;i++) {
          query = request.getParameter("query" + Integer.toString(i));
          queryType = request.getParameter("type" + Integer.toString(i));
          parameter = request.getParameter("parameter" + Integer.toString(i));
          uq.addTerm(query, queryType, parameter);     
        }
       
      }
   
      try {
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.indexersearcher.UserQuery.addTerm()

        } else {
        li.appendChild(a);       

        Element anchor = new Element("a");
        UserQuery nuq = new UserQuery(uq, UserQuery.ResultsType.SNIPPETS);
        nuq.addTerm(a, "word", "strict");
        anchor.addAttribute(new Attribute("href", nuq.getQueryURL(0, nuq.getSize())));
        anchor.appendChild("search");
       
        li.appendChild(" ");
        li.appendChild(anchor);
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.indexersearcher.UserQuery.addTerm()

        ne.appendChild(name);
        li.appendChild(ne);

        Element anchor = new Element("a");
        UserQuery nuq = new UserQuery(uq, UserQuery.ResultsType.SNIPPETS);
        nuq.addTerm(a, "inchi", "");
        anchor.addAttribute(new Attribute("href", nuq.getQueryURL(0, nuq.getSize())));
        anchor.appendChild("search");
       
        li.appendChild(" ");
        li.appendChild(anchor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.