Examples of matches()


Examples of org.jboss.metadata.ejb.spec.ExcludeListMetaData.matches()

      JBossMetaData jbossMetaData = getJBossMetaDataWithCheck();
     
      // First check the excluded method list as this takes priority over
      // all other assignments
      ExcludeListMetaData excluded = getExcludeList();
      if (excluded != null && excluded.matches(methodName, params, interfaceType))
      {
         // No one is allowed to execute this method so add a role that
         // fails to equate to any Principal or Principal name and return.
         // We don't return null to differentiate between an explicit
         // assignment of no access and no assignment information.

Examples of org.jboss.metadata.ejb.spec.MethodsMetaData.matches()

      // TODO: methods
      ContainerTransactionMetaData tx2 = it.next();
      assertEquals(TransactionAttributeType.MANDATORY, tx2.getTransAttribute());
      MethodsMetaData tx2Methods = tx2.getMethods();
      String[] params = {};
      tx2Methods.matches("transactionAttributeMandatory", params, null);

      // @EJB
      AnnotatedEJBReferencesMetaData ejbRefs = bean.getAnnotatedEjbReferences();
      assertEquals(2, ejbRefs.size());
      AnnotatedEJBReferenceMetaData injectedField = ejbRefs.get("injectedField");

Examples of org.jitterbit.util.string.StringMatcher.matches()

        }
        if (searchString.length() == 0 && emptyStringMatchesEverything) {
            return true;
        }
        StringMatcher matcher = rule.getMatcher();
        return matcher.matches(searchString, s);
    }

    @Override
    public StringSearchRule getSearchRule() {
        return rule;

Examples of org.jitterbit.util.string.WildcardStringMatcher.matches()

            final StringMatcher matcher = new WildcardStringMatcher(false);
            impl = new Predicate<String>() {

                @Override
                public boolean apply(String title) {
                    return matcher.matches(text, title);
                }
            };
        }

        @Override

Examples of org.jnode.net.ipv4.IPv4Address.matches()

                final NetDeviceAPI api = dev.getAPI(NetDeviceAPI.class);
                final IPv4ProtocolAddressInfo addrInfo;
                addrInfo = (IPv4ProtocolAddressInfo) api.getProtocolAddressInfo(EthernetConstants.ETH_P_IP);
                if (addrInfo != null) {
                    final IPv4Address devAddr = (IPv4Address) addrInfo.getDefaultAddress();
                    if (devAddr.matches(target, mask)) {
                        return dev;
                    }
                }
            } catch (ApiNotFoundException ex) {
                // Should not happen, but if it happens anyway, just ignore it.

Examples of org.jrdf.util.boundary.RegexMatcher.matches()

        }
    }

    public void parseLine(String line) {
        final RegexMatcher startMolecule = regexMatcherFactory.createMatcher(START_MOLECULE, line);
        if (startMolecule.matches()) {
            handleStartMolecule();
        } else {
            final RegexMatcher tripleMatcher = regexMatcherFactory.createMatcher(TRIPLE_REGEX, line);
            if (tripleMatcher.matches()) {
                handleTriple(tripleMatcher, line);

Examples of org.jwall.web.audit.rules.AuditEventRule.matches()

  @Test
  public void testRuleID() throws Exception {
    AuditEventRule rule = new AuditEventRule();
    rule.add( new ConditionEQ( "RULE_ID", "960015" ) );
    rule.add( new MockAction() );
    Assert.assertTrue( rule.matches( event, null ) );
  }
 
  @Test
  public void testRuleID2() throws Exception {
   

Examples of org.jwall.web.audit.rules.operators.ConditionEQ.matches()

 
  @Test
  public void testMatchesListOfString() throws Exception {
    ConditionEQ eq = new ConditionEQ( "", "B" );
    boolean rc = eq.matches( positive );
    Assert.assertTrue( rc );
  }
 
  @Test
  public void testNegated() throws Exception {

Examples of org.jwall.web.audit.rules.operators.ConditionGE.matches()

    {
        try {
            log.info( "Testing  SEVERITY @ge 2" );
            log.info( "   event SEVERITY: " + ValueExtractor.extractValues( AuditEvent.SEVERITY, event ) );
            Condition c = new ConditionGE( "SEVERITY", "2" );
            if( ! c.matches( event ) )
                fail( "Failed to match ConditionGE on SEVERITY with value '2' !" );
        } catch (Exception e) {
            fail( "Error: " + e.getMessage() );
        }
    }

Examples of org.jwall.web.audit.rules.operators.ConditionGT.matches()

    {
        try {
            log.info( "Testing  SEVERITY @gt 4" );
            log.info( "   event SEVERITY: " + ValueExtractor.extractValues( AuditEvent.SEVERITY, event ) ); //event.getAll( AuditEvent.SEVERITY ) );
            Condition c = new ConditionGT( "SEVERITY", "4" );
            if( c.matches( event ) )
                fail( "Failed to match ConditionGT on SEVERITY with value '4' !" );
        } catch (Exception e) {
            fail( "Error: " + e.getMessage() );
        }
    }
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.