Examples of matches()


Examples of org.apache.xerces.utils.regex.RegularExpression.matches()

                                       throws InvalidDatatypeValueException{
        long normalizedValue;

        if ( fPattern != null ) {
            RegularExpression regex = new RegularExpression(fPattern, "X" );
            if ( regex.matches( content) == false )
                throw new InvalidDatatypeValueException("Value'"+content+
                            "does not match regular expression facet" + fPattern );
        }

        normalizedValue = normalizeDuration(content.toCharArray(), 0 );

Examples of org.apache.xmlbeans.impl.regex.RegularExpression.matches()


    public static boolean matches(String source, String pattern)
    {
        RegularExpression re = new RegularExpression(pattern);
        return re.matches(source);
    }


    /**
     * Splits a string by the delimiter character passed in.  Faster than using patterns.

Examples of org.apache.zookeeper.server.auth.AuthenticationProvider.matches()

                    for (Id authId : ids) {
                        if (authId.getScheme().equals("super")) {
                            return;
                        }
                        if (authId.getScheme().equals(id.getScheme())
                                && ap.matches(authId.getId(), id.getId())) {
                            return;
                        }
                    }
                }
            }

Examples of org.apache.zookeeper_voltpatches.server.auth.AuthenticationProvider.matches()

                AuthenticationProvider ap = ProviderRegistry.getProvider(id
                        .getScheme());
                if (ap != null) {
                    for (Id authId : ids) {
                        if (authId.getScheme().equals(id.getScheme())
                                && ap.matches(authId.getId(), id.getId())) {
                            return;
                        }
                    }
                }
            }

Examples of org.aspectj.weaver.ConcreteTypeMunger.matches()

    public void weaveNormalTypeMungers(ResolvedType onType) {
      ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.PROCESSING_TYPE_MUNGERS, onType.getName());
      if (onType.isRawType() || onType.isParameterizedType()) onType = onType.getGenericType();
    for (Iterator i = typeMungerList.iterator(); i.hasNext(); ) {
      ConcreteTypeMunger m = (ConcreteTypeMunger)i.next();
      if (!m.isLateMunger() && m.matches(onType)) {
        onType.addInterTypeMunger(m);
      }
    }
    CompilationAndWeavingContext.leavingPhase(tok);
  }

Examples of org.aspectj.weaver.patterns.DeclareAnnotation.matches()

      Set<DeclareAnnotation> worthRetrying = new LinkedHashSet<DeclareAnnotation>();
      boolean modificationOccured = false;

      for (Iterator<DeclareAnnotation> iter2 = decaFs.iterator(); iter2.hasNext();) {
        DeclareAnnotation decaF = iter2.next();
        if (decaF.matches(itdIsActually, world)) {
          if (decaF.isRemover()) {
            LazyMethodGen annotationHolder = locateAnnotationHolderForFieldMunger(clazz, fieldMunger);
            if (annotationHolder.hasAnnotation(decaF.getAnnotationType())) {
              isChanged = true;
              // something to remove

Examples of org.aspectj.weaver.patterns.TypePattern.matches()

        Set<ResolvedType> excludedTypes = world.getExclusionMap().get(declaringType);
        ResolvedType type = shadow.getEnclosingType().resolve(world);
        if (excludedTypes != null && excludedTypes.contains(type)) {
          return false;
        }
        boolean b = scoped.matches(type, TypePattern.STATIC).alwaysTrue();
        if (!b) {
          if (!world.getMessageHandler().isIgnoring(IMessage.INFO)) {
            world.getMessageHandler().handleMessage(
                MessageUtil.info("Type '" + type.getName() + "' not woven by aspect '" + declaringType.getName()
                    + "' due to scope exclusion in XML definition"));

Examples of org.aspectj.weaver.tools.JoinPointMatch.matches()

      RuntimeTestWalker originalMethodResidueTest = new RuntimeTestWalker(originalShadowMatch);
      if (!originalMethodResidueTest.testThisInstanceOfResidue(thisObject.getClass())) {
        return false;
      }
    }
    if (joinPointMatch.matches() && pmi != null) {
      bindParameters(pmi, joinPointMatch);
    }
    return joinPointMatch.matches();
  }

Examples of org.axonframework.common.annotation.ParameterResolver.matches()

    public void testResolvesToDateTimeWhenAnnotated() throws Exception {
        ParameterResolver resolver = testSubject.createInstance(new Annotation[0],
                                                                DateTime.class,
                                                                new Annotation[]{annotation});
        final EventMessage<Object> message = GenericEventMessage.asEventMessage("test");
        assertTrue(resolver.matches(message));
        assertEquals(message.getTimestamp(), resolver.resolveParameterValue(message));
    }

    @Test
    public void testIgnoredWhenNotAnnotated() throws Exception {

Examples of org.beangle.web.filter.RequestMatcher.matches()

   * @return an ordered array of Filters defining the filter chain
   */
  public List<Filter> getFilters(HttpServletRequest request) {
    for (Map.Entry<RequestMatcher, List<Filter>> entry : filterChainMap.entrySet()) {
      RequestMatcher matcher = entry.getKey();
      boolean matched = matcher.matches(request);
      if (matched) { return entry.getValue(); }
    }
    return 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.