Examples of ExistsCondition


Examples of net.sourceforge.urlrewriter4j.core.conditions.ExistsCondition

   * @see net.urlrewriter.parsers.IRewriteConditionParser#parse(org.w3c.dom.Node)
   */
  public IRewriteCondition parse(Node pNode) throws ConfigurationException {
    Node oExistsNode = pNode.getAttributes().getNamedItem(Constants.ATTR_EXISTS);
    if (oExistsNode != null) {
      return new ExistsCondition(oExistsNode.getNodeValue());
    }
    return null;
  }
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.conditions.ExistsCondition

  public void testExistsConditionPositive() throws Exception {
    RewriterConfiguration oConfiguration = getConfig();

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new ExistsCondition("/foo.aspx"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", "src/test/resources",
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.conditions.ExistsCondition

  public void testExistsConditionNegative() throws Exception {
    RewriterConfiguration oConfiguration = getConfig();

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new ExistsCondition("/foo1.aspx"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", "src/test/resources",
View Full Code Here

Examples of org.dbwiki.data.query.condition.ExistsCondition

    }
   
    XAQLToken operator = tokens.get(index++);
    switch (operator.type()) {
    case XAQLToken.EXISTS_PREDICATE:
      return new ExistsCondition(targetPath, quantifier, negated);
    case XAQLToken.HAS_CHANGES_PREDICATE:
      if (tokens.size() > index) {
        return new HasChangesCondition(targetPath, quantifier, negated, this.getProvenanceCondition(tokens.get(index), versionIndex));
      } else {
        return new HasChangesCondition(targetPath, quantifier, negated);
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.