Examples of match()


Examples of org.openrdf.model.Graph.match()

                    value = value.substring( value.lastIndexOf( ':' ) + 1, value.length() );
                    String name = field.getName();
                    input.addField( name, value );
                } else if( statement.getObject() instanceof BNode )
                {
                    Iterator<Statement> seq = graph.match( (Resource) statement.getObject(), new URIImpl( "http://www.w3.org/1999/02/22-rdf-syntax-ns#li" ), null, (Resource) null );
                    while( seq.hasNext() )
                    {
                        Statement seqStatement = seq.next();
                        String value = seqStatement.getObject().stringValue();
                        value = value.substring( value.lastIndexOf( ':' ) + 1, value.length() );

Examples of org.openrdf.model.impl.GraphImpl.match()

                    value = value.substring( value.lastIndexOf( ':' ) + 1, value.length() );
                    String name = field.getName();
                    input.addField( name, value );
                } else if( statement.getObject() instanceof BNode )
                {
                    Iterator<Statement> seq = graph.match( (Resource) statement.getObject(), new URIImpl( "http://www.w3.org/1999/02/22-rdf-syntax-ns#li" ), null, (Resource) null );
                    while( seq.hasNext() )
                    {
                        Statement seqStatement = seq.next();
                        String value = seqStatement.getObject().stringValue();
                        value = value.substring( value.lastIndexOf( ':' ) + 1, value.length() );

Examples of org.openrdf.repository.RepositoryConnection.match()

    // Fetch statements from rep1 and rep2
    Set<Statement> model1, model2;

    RepositoryConnection con1 = rep1.getConnection();
    try {
      model1 = con1.match(null, null, null, true).asSet();
    }
    finally {
      con1.close();
    }

Examples of org.openrdf.repository.http.helpers.PrefixHashSet.match()

  public long size(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts)
    throws StoreException
  {
    PrefixHashSet hash = federation.getLocalPropertySpace();

    if (federation.isDistinct() || pred != null && hash != null && hash.match(pred.stringValue())) {
      long size = 0;
      for (RepositoryConnection member : members) {
        size += member.sizeMatch(subj, pred, obj, includeInferred, contexts);
      }
      return size;

Examples of org.openstreetmap.josm.actions.search.SearchCompiler.Match.match()

            try {
                m = SearchCompiler.compile(searchStr, false, false);
            } catch (ParseError ex) {
                return null;
            }
            return m.match(env.osm);
        }

        /**
         * Obtains the JOSM'key {@link org.openstreetmap.josm.data.Preferences} string for key {@code key},
         * and defaults to {@code def} if that is null.

Examples of org.osgi.framework.Filter.match()

              if (filterString == null) {
                matchingConfigurations.addElement(new ConfigurationImpl(d));
              }
              else {
                Filter filter = Activator.bc.createFilter(filterString);
                if (filter.match(d)) {                        if(callingBundleLocation == null){
                  matchingConfigurations.addElement(new ConfigurationImpl(d));
                }
                else{
                  if(callingBundleLocation.equals((String) d.get(ConfigurationAdmin.SERVICE_BUNDLELOCATION))){
                    matchingConfigurations.addElement(new ConfigurationImpl(d));

Examples of org.osgi.service.device.Driver.match()

        ServiceReference ref = m_osgi.registerService(
            new String[]{ Driver.class.getName() }, driver, p );

        MatchAnswer answer = new MatchAnswer( ref );

        Mockito.when( driver.match( Mockito.isA( ServiceReference.class ) ) )
          .thenAnswer( answer );
       
        Bundle bundle = m_osgi.getBundle( ref );
        Mockito.when( bundle.getLocation() )
          .thenReturn(

Examples of org.osgi.service.indexer.impl.types.VersionRange.match()

      VersionRange versionRange = null;
      if (bundleRef.length > 1)
        versionRange = new VersionRange(bundleRef[1]);
     
      Version version = Util.getVersion(resource);
      if (versionRange == null || versionRange.match(version)) {
        processClause(name, Util.readProcessedProperty(name, propertiesList), caps, reqs);
      }
    }
  }
 

Examples of org.papoose.core.filter.Expr.match()

                        break;
                    }
                }
                if (!secure) continue;

                if (expr != null && !expr.match(p)) continue;

                result.add(reference);
            }

            return sortedReferences(result);

Examples of org.parboiled.matchers.Matcher.match()

            long time = System.nanoTime();
            timeCorrection += time - timeStamp;
            timeStamp = time - timeCorrection;

            boolean matched = matcher.match(context);

            time = System.nanoTime();
            ruleStats.nanoTime += time - timeCorrection - timeStamp;
            timeStamp = time;
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.