Examples of matches()


Examples of com.sun.enterprise.admin.util.IPatternMatcher.matches()

    private boolean matchDomain(String domainNamePattern, String testDomainName)
    {
        IPatternMatcher matcher = new CombinedPatternMatcher(domainNamePattern,
            testDomainName);
       
        return ( matcher.matches() );
    }
    /**
        This is where the check into persistent
        storage registry comes into picture. So first
        check whether a Bean corresponding exactly to this

Examples of com.sun.media.format.WavAudioFormat.matches()

  {
    // strangely, WavAudioFormat and AudioFormat match.
    {
      final WavAudioFormat f = new WavAudioFormat("abc");
      final AudioFormat f2 = new AudioFormat("abc");
      assertEquals(f.matches(f2), true);
      assertEquals(f2.matches(f), true);
    }
   
    {
     

Examples of com.sun.messaging.jmq.jmsserver.core.PacketReference.matches()

            int match = 0;
            int delivered = 0;
            int ackno = 0;
            for (int i=0; i < total; i ++) {
                PacketReference ref = (PacketReference)pfers.get(i);
                if (ref.matches(sid)) {
                    match ++;
                    if (ref.isAcknowledged(sid))
                        ackno ++;
                    if (ref.isDelivered(sid))
                        delivered ++;

Examples of com.sun.org.apache.xerces.internal.impl.xpath.regex.RegularExpression.matches()

    }
    if ( (fFacetsDefined & FACET_PATTERN ) != 0 ) {
      RegularExpression regex;
      for (int idx = fPattern.size()-1; idx >= 0; idx--) {
        regex = (RegularExpression)fPattern.elementAt(idx);
        if (!regex.matches(nvalue)){
          throw new InvalidDatatypeValueException("cvc-pattern-valid",
              new Object[]{content,
              fPatternStr.elementAt(idx),
             
              fTypeName});

Examples of com.sun.star.tool.starjar.regex.PatternMatcher.matches()

                    pathPattern = compiler.compile(filterElement.getPathPattern());
                    filenamePattern = compiler.compile(filterElement.getFilenamePattern());
                } catch (MalformedPatternException e) {
                    System.out.println("Fehler im Pattern\n" + e);
                }
                if (matcher.matches(file.getPath(),pathPattern) && matcher.matches(file.getFilename(),filenamePattern))
                    file.setInclude(filterElement.isInclude());
            }
        }
        starJar.zipFiles(fileListVector,"JarDirectoryTest.jar", "");
    }

Examples of com.sun.star.tool.starjar.regex.Perl5Matcher.matches()

                    pathPattern = compiler.compile(filterElement.getPathPattern());
                    filenamePattern = compiler.compile(filterElement.getFilenamePattern());
                } catch (MalformedPatternException e) {
                    System.out.println("Fehler im Pattern\n" + e);
                }
                if (matcher.matches(file.getPath(),pathPattern) && matcher.matches(file.getFilename(),filenamePattern))
                    file.setInclude(filterElement.isInclude());
            }
        }
        starJar.zipFiles(fileListVector,"JarDirectoryTest.jar", "");
    }

Examples of com.sun.tools.javac.main.JavacOption.matches()

           
            if (value != null) {
                if (!javacOpt.hasArg()) {
                    throw new IllegalArgumentException(CeylonCompileMessages.msg("option.error.syntax.javac", argument, "Unexpected argument given"));
                }
                if (!javacOpt.matches(argument)) {
                    throw new IllegalArgumentException(CeylonCompileMessages.msg("option.error.javac", argument));
                }
                if (javacOpt.process(options, argument, value)) {
                    throw new IllegalArgumentException(CeylonCompileMessages.msg("option.error.syntax.javac", argument, HELPER.lastError));
                }

Examples of com.sun.tools.javac.main.JavacOption.Option.matches()

                option = option.substring(option.indexOf('=') + 1);
                String diagsOption = option.contains("%") ?
                    "-XDdiagsFormat=" :
                    "-XDdiags=";
                diagsOption += option;
                if (xd.matches(diagsOption))
                    return xd.process(options, diagsOption);
                else
                    return false;
            }
        },

Examples of com.tuenti.supernanny.repo.artifacts.Requirement.matches()

public class MatchTest {
  @Test
  public void testPrefixMatches() {
    Requirement r = new Requirement("test", ReqType.SW, "5.9", RepositoryType.GIT, "");
    Assert.assertFalse(r.matches(new Version("5.8.0")));
    Assert.assertFalse(r.matches(new Version("5.10.0")));
    Assert.assertTrue(r.matches(new Version("5.9")));
    Assert.assertTrue(r.matches(new Version("5.9.0")));
    Assert.assertTrue(r.matches(new Version("5.9.1")));
    r = new Requirement("test", ReqType.SW, "5.*", RepositoryType.GIT, "");

Examples of com.volantis.styling.impl.engine.matchers.AttributeMatcher.matches()

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        Matcher matcher = new AttributeMatcher(null, "local", constraintMock);
        MatcherResult actual = matcher.matches(matcherContextMock);
        assertEquals("Wrong result", MatcherResult.FAILED, actual);
    }
}

/*
 
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.