Examples of matches()


Examples of net.sf.saxon.regex.RegularExpression.matches()

            CharSequence flagstr = flags.evaluateAsString(context);
            final Platform platform = Configuration.getPlatform();
            final int xmlVersion = context.getConfiguration().getXMLVersion();
            int flagBits = JRegularExpression.setFlags(flagstr);
            re = new JRegularExpression(regex.evaluateAsString(context), xmlVersion, RegularExpression.XPATH_SYNTAX, flagBits);  
            if (re.matches("")) {
                dynamicError("The regular expression must not be one that matches a zero-length string",
                        "XTDE1150", context);
            }
        }

Examples of net.sourceforge.processdash.util.PatternList.matches()

        PatternList p = new PatternList(patterns);
        List<ZipEntry> result = new ArrayList<ZipEntry>();
        Enumeration<? extends ZipEntry> entries = srcZip.entries();
        while (entries.hasMoreElements()) {
            ZipEntry e = entries.nextElement();
            if (p.matches(e.getName()))
                result.add(e);
        }
        return result;
    }

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.CatalogFilterMatcher.matches()

      {
            IDatabaseObjectInfo dbo = new DatabaseObjectInfo(null, null,
                                 catalogs[i],
                                 DatabaseObjectType.CATALOG,
                                 md);
            if (filterMatcher.matches(dbo.getSimpleName()))
            {
          childNodes.add(new ObjectTreeNode(session, dbo));
        }
      }
    }

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.ObjFilterMatcher.matches()

      IUDTInfo[] udts =
         conn.getSQLMetaData().getUDTs(catalogName, schemaName, filterMatcher.getSqlLikeMatchString(), null);

    for (int i = 0; i < udts.length; ++i)
    {
         if(filterMatcher.matches(udts[i].getSimpleName()))
         {
            ObjectTreeNode child = new ObjectTreeNode(session, udts[i]);
            childNodes.add(child);
         }
      }

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaFilterMatcher.matches()

      for (int i = 0; i < schemas.length; ++i)
      {
            IDatabaseObjectInfo dbo = new DatabaseObjectInfo(catalogName, null,
                                    schemas[i],
                                    DatabaseObjectType.SCHEMA, md);
            if(filterMatcher.matches(dbo.getSimpleName()))
            {
               childNodes.add(new ObjectTreeNode(session, dbo));
        }
      }
    }

Examples of net.timewalker.ffmq3.common.message.MessageSelector.matches()

        {
            System.out.print("TESTING valid ["+VALID_SELECTORS[n]+"] : ");
           
            MessageSelector selector = new MessageSelector(VALID_SELECTORS[n].getSelector());
            System.out.println(selector);
            boolean matches = selector.matches(getTestMessage());
            assertEquals(VALID_SELECTORS[n].getSelector(),VALID_SELECTORS[n].shouldMatch(), matches);
           
            String render1 = selector.toString();
            selector = new MessageSelector(render1);
            matches = selector.matches(getTestMessage());

Examples of net.timewalker.ffmq3.security.Privilege.matches()

  public void checkPermission(String resourceName, String action) throws JMSException
  {
    for (int i = 0; i < privileges.size(); i++)
    {
      Privilege privilege = (Privilege)privileges.get(i);
      if (privilege.matches(resourceName, action))
        return;
    }
    throw new FFMQException("Access denied to resource '"+resourceName+"' for action '"+action+"'","ACCESS_DENIED");
  }
 

Examples of net.xeoh.plugins.diagnosis.local.util.conditions.matcher.Matcher.matches()

        Set<Class<? extends DiagnosisChannelID<?>>> keySet = this.onRequirements.keySet();
        for (Class<? extends DiagnosisChannelID<?>> c : keySet) {
            final Matcher requirement = this.onRequirements.get(c);
            final Object is = this.currentStatus.get(c);
           
            if(!requirement.matches(is)) {
                announceState(STATE.OFF);
                return;
            }
        }
       

Examples of nz.co.abrahams.asithappens.flow.Flow.matches()

           
            if ( flow.timestamp >= startTime && flow.timestamp <= finishTime ) {
               
                foundMatch = false;
                for (int set = 0; set < data.size(); set++) {
                    if ( flow.matches(flows[set], options) ) {
                        foundMatch = true;
                        data.elementAt(set).add(new DataPoint(flow.timestamp, flow.length * 8));
                        logger.debug("Adding data to flow" + set + ": " + flow.timestamp + " " + flow.length);
                    }
                }

Examples of org.aavso.tools.vstar.data.filter.MagnitudeFieldMatcher.matches()

        ObservationMatcherOp.EQUALS);
   
    ValidObservation ob = new ValidObservation();
    ob.setMagnitude(new Magnitude(4.0, 0));
   
    assertTrue(matcher.matches(ob));
  }

  public void testMagnitudeMatcherTest2() {
    MagnitudeFieldMatcher matcher = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.LESS_THAN);
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.