Examples of matches()


Examples of org.ocpsoft.rewrite.param.ParameterizedPatternResult.matches()

                  else
                  {
                     for (String value : parameterValues) {

                        ParameterizedPatternResult parseResult = pattern.parse(value);
                        if (parseResult.matches())
                        {
                           return parseResult.submit(event, context);
                        }
                     }
                  }

Examples of org.ontoware.rdf2go.model.TriplePattern.matches()

   */
  @Override
  public void addStatement(Statement statement) throws ModelRuntimeException {
    for(ModelChangedListener listener : this.modelChangeListener.keySet()) {
      TriplePattern pattern = this.modelChangeListener.get(listener);
      if(pattern == null || pattern.matches(statement)) {
        listener.addedStatement(statement);
      }
    }
    getDelegatedModel().addStatement(statement);
  }

Examples of org.openbp.core.model.ModelQualifier.matches()

          return false;

        qualifier = ((ProcessElementContainer) owner).getProcessElement().getQualifier();
      }

      return qualifier.matches(haltedPosition);
    }
  }

  /////////////////////////////////////////////////////////////////////////
  // @@ Breakpoint decorator

Examples of org.opencastproject.mediapackage.MediaPackageElementFlavor.matches()

    // Select the tracks based on source flavors and tags
    Set<MediaPackageElement> inputSet = new HashSet<MediaPackageElement>();
    for (MediaPackageElement element : mediaPackage.getElementsByTags(sourceTagList)) {
      MediaPackageElementFlavor elementFlavor = element.getFlavor();
      if (sourceFlavor == null || (elementFlavor != null && elementFlavor.matches(matchingFlavor))) {
        inputSet.add(element);
      }
    }

    if (inputSet.size() == 0) {

Examples of org.opentripplanner.routing.core.FareRuleSet.matches()

        for (AgencyAndId fareId : fareAttributes.keySet()) {
          // fares also don't really have an agency id, they will have the per-feed default id
            if ( ! fareId.getAgencyId().equals(feedId))
                continue;
            FareRuleSet ruleSet = fareRules.get(fareId);
            if (ruleSet == null || ruleSet.matches(startZone, endZone, zones, routes)) {
                FareAttribute attribute = fareAttributes.get(fareId);
                if (attribute.isTransfersSet() && attribute.getTransfers() < transfersUsed) {
                    continue;
                }
                // assume transfers are evaluated at boarding time,

Examples of org.opentripplanner.routing.core.StopMatcher.matches()

        Stop stop2107 = ((TransitStationStop) graph.getVertex("TriMet:2107")).getStop();
        assertNotNull(stop2107);

        // Match stop with id 65-tc
        assertTrue(stopMatcher.matches(stop65_tc));
        // Match stop with id 12921 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop12921));
        // Match stop with id 13132 that has TriMet:65-tc as a parent
        assertTrue(stopMatcher.matches(stop13132));
        // Match stop with id 2106

Examples of org.osgi.framework.Filter.matches()

       * permit the subsystem location request in the SubsystemPermission
       * check up the stack to succeed.
       */
      return true;
    }
    return f.matches(requestedProperties);
  }

  /**
   * Returns the canonical string representation of the
   * {@code SubsystemPermission} actions.

Examples of org.pdf4j.saxon.pattern.ContentTypeTest.matches()

    public boolean isId() {
        ContentTypeTest idTest =
                new ContentTypeTest(Type.ATTRIBUTE, BuiltInAtomicType.ID, node.getConfiguration());
        idTest.setMatchDTDTypes(true);
        return idTest.matches(node);
    }


    /**
     * The <code>Element</code> node this attribute is attached to or

Examples of org.pdf4j.saxon.regex.RegularExpression.matches()

                de.setXPathContext(c);
                de.setLocator(this);
                throw de;
            }
            // check that it's not a pattern that matches ""
            if (re.matches("")) {
                XPathException err = new XPathException("The regular expression in tokenize() must not be one that matches a zero-length string");
                err.setErrorCode("FORX0003");
                err.setLocator(this);
                throw err;
            }

Examples of org.pentaho.reporting.engine.classic.core.Group.matches()

   */
  public void groupStarted(final ReportEvent event)
  {
    final Group group = FunctionUtilities.getCurrentGroup(event);

    if (group.matches(getParentGroup()))
    {
      setCount(0);
    }

    if (getGroup() == null)
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.