Examples of match()


Examples of org.apache.regexp.RE.match()

              errors.add("META_" + tname, error);
            }
          } else {
            if (prop.getRegexp() != null) {
              RE re = new RE(prop.getRegexp());
              if (!re.match(value)) {
                ActionError error =
                  new ActionError("error.editSection.propertyMalformed", prop.getErrorMessage());
                errors.add("META_" + tname, error);
              }
            }

Examples of org.apache.sandesha2.storage.beans.RMBean.match()

        beans.addAll(table.values());
      } else {
        Iterator i = table.values().iterator();
        while(i.hasNext()) {
          RMBean candidate = (RMBean)i.next();
          if(candidate.match(matchInfo)) {
            beans.add(candidate);
          }
        }
      }
    }

Examples of org.apache.sandesha2.storage.beans.RMDBean.match()

    //ensure we can deserialize the rmd bean
    {
      FileInputStream fis = new FileInputStream(resourceDir + File.separator + rmdDatFileName);
      ObjectInputStream rmdBeanData = new ObjectInputStream(fis);
      RMDBean bean = (RMDBean)rmdBeanData.readObject()
      assertTrue(bean.match(expectedRMDBean));
    }

    //ensure we can deserialize the msg ctx
    {
      FileInputStream fis = new FileInputStream(resourceDir + File.separator + msgCtxDatFileName);

Examples of org.apache.sandesha2.storage.beans.RMSBean.match()

    //ensure we can deserialize the rms bean
    {
      FileInputStream fis = new FileInputStream(resourceDir + File.separator + rmsDatFileName);
      ObjectInputStream rmsBeanData = new ObjectInputStream(fis);
      RMSBean bean = (RMSBean)rmsBeanData.readObject()
      assertTrue(bean.match(expectedRMSBean));
    }
   
    //ensure we can deserialize the rmd bean
    {
      FileInputStream fis = new FileInputStream(resourceDir + File.separator + rmdDatFileName);

Examples of org.apache.sandesha2.storage.beans.SenderBean.match()

     
      if (bean.getSentCount() > 0 && !bean.isReSend())
        continue; //Avoid re-sending messages that we should not resend
     
      // Check that the Send time has not been updated under another thread
      if (!bean.match(matcher))
        continue;
     
      if(result == null) {
        result = bean;
      } else if(result.getTimeToSend() > bean.getTimeToSend()) {

Examples of org.apache.sling.rewriter.ProcessorConfiguration.match()

        Processor found = null;
        final List<ProcessorConfiguration> processorConfigs = this.processorManager.getProcessorConfigurations();
        final Iterator<ProcessorConfiguration> i = processorConfigs.iterator();
        while ( found == null && i.hasNext() ) {
            final ProcessorConfiguration config = i.next();
            if ( config.match(processorContext) ) {
                try {
                    found = this.processorManager.getProcessor(config, processorContext);
                    this.request.getRequestProgressTracker().log("Found processor for post processing {0}", config);
                } catch (final SlingException se) {
                    // if an exception occurs during setup of the pipeline and we are currently

Examples of org.apache.synapse.eventing.filters.TopicBasedEventFilter.match()

            if (filter != null) {
                filter.setResultValue(stringSubscriptionEntry.getValue().getFilterValue());
                filter.setSourceXpath(topicXPath);
                //evaluatedValue = topicXPath.stringValueOf(mc);
            }
            if (filter == null || filter.match(event)) {
                Subscription subscription = stringSubscriptionEntry.getValue();
                Calendar current = Calendar.getInstance(); //Get current date and time
                if (subscription.getExpires() != null) {
                    if (current.before(subscription.getExpires())) {
                        // add only valid subscriptions by checking the expiration

Examples of org.apache.tools.ant.types.ZipScanner.match()

            in = new ZipInputStream(new FileInputStream(zipSrc));

            while ((origEntry = in.getNextEntry()) != null) {
                entry = new ZipEntry(origEntry);
                String vPath = entry.getName();
                if (zipScanner.match(vPath)) {
                    if (fullpath.length() > 0) {
                        addParentDirs(null, fullpath, zOut, "");
                        zipFile(in, zOut, fullpath, entry.getTime(), zipSrc);
                    } else {
                        addParentDirs(null, vPath, zOut, prefix);

Examples of org.apache.tuscany.sca.extensibility.impl.LDAPFilter.match()

    public Collection<ServiceDeclaration> getServiceDeclarations(Class<?> serviceType, String filter) throws IOException {
        Collection<ServiceDeclaration> sds = getServiceDeclarations(serviceType, false);
        Collection<ServiceDeclaration> filtered = new ArrayList<ServiceDeclaration>();
        LDAPFilter filterImpl = LDAPFilter.newInstance(filter);
        for(ServiceDeclaration sd: sds) {
            if(filterImpl.match(sd.getAttributes())) {
                filtered.add(sd);
            }
        }
        return filtered;
    }

Examples of org.apache.uima.cas.FSMatchConstraint.match()

    if (windowAnnotation != null && (annotationFS.getBegin() < windowAnnotation.getBegin()
            || annotationFS.getEnd() > windowAnnotation.getEnd())) {
      return false;
    }
    FSMatchConstraint defaultConstraint = filter.getDefaultConstraint();
    return defaultConstraint.match(annotationFS);
  }

  public RutaBasic getAnchor(boolean direction, int pointer) {
    if(direction) {
      return getBeginAnchor(pointer);
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.