Examples of target()


Examples of edu.stanford.nlp.fsm.DFSATransition.target()

    }
    // Follow along each transition:
    for (Iterator iter = inputs.iterator(); iter.hasNext();) {
      Object predictSpace = iter.next();
      DFSATransition transition = tSource.transition(predictSpace);
      DFSAState tDest = transition.target();
      DFSAState newASource = aSource;
      //System.err.printf("tsource=%s tdest=%s asource=%s pos=%d predictSpace=%s\n", tSource, tDest, newASource, pos, predictSpace);
      StringBuilder newAnswer = new StringBuilder(answer.toString());
      int answerLen = newAnswer.length();
      String prevChr = (answerLen > 0) ? newAnswer.substring(answerLen-1) : null;
View Full Code Here

Examples of io.vertx.core.dns.SrvRecord.target()

      SrvRecord record = result.get(0);

      assertEquals(priority, record.priority());
      assertEquals(weight, record.weight());
      assertEquals(port, record.port());
      assertEquals(target, record.target());

      testComplete();
    });
    await();
  }
View Full Code Here

Examples of javax.ws.rs.client.Client.target()

    if ( !dataStore.exists( EntitiesDesignDocument.DOCUMENT_ID, true ) ) {
      dataStore.saveDocument( new EntitiesDesignDocument() );
    }

    Client client = ClientBuilder.newBuilder().build();
    WebTarget target = client.target( dataStore.getDatabaseIdentifier().getDatabaseUri() );
    ResteasyWebTarget rtarget = (ResteasyWebTarget) target;

    return rtarget.proxy( DatabaseTestClient.class );
  }
View Full Code Here

Examples of javax.ws.rs.client.Client.target()

    return configuration;
  }

  private static void createServerAdminUser() {
    Client client = ClientBuilder.newClient();
    WebTarget target = client.target( serverUri + "/_config/admins/" + serverAdminUser );
    target.request().put( Entity.text( "\"" + serverAdminPassword + "\"" ) ).close();
  }

  private static void createDatabaseUser() throws Exception {
    // 1.) create user
View Full Code Here

Examples of javax.ws.rs.client.Client.target()

        System.out.println("MediaType: " + mediaType.toString());

        // Using the JAX-RS client, initiate a request
        // using the url as the target
        Client client = ClientBuilder.newClient();
        Response response = client.target(url)
                .register(JsonObjectProvider.class)
                .request(mediaType)
                .get();

        // Check the HTTP status of the request
View Full Code Here

Examples of net.citizensnpcs.guards.Guard.target()

            if (entity.isDead())
            {
                return false;
            }
           
            guard.target(entity, npc);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of net.kuujo.vertigo.io.connection.OutputConnectionContext.target()

  @Override
  public String toString() {
    if (!connections.isEmpty()) {
      OutputConnectionContext context = connections.get(0);
      return String.format("Stream[%s:%s->%s:%s]", context.source().component(), context.source().port(), context.target().component(), context.target().port());
    }
    return "Stream[?]";
  }

  /**
 
View Full Code Here

Examples of net.kuujo.vertigo.io.connection.OutputConnectionContext.target()

  @Override
  public String toString() {
    if (!connections.isEmpty()) {
      OutputConnectionContext context = connections.get(0);
      return String.format("Stream[%s:%s->%s:%s]", context.source().component(), context.source().port(), context.target().component(), context.target().port());
    }
    return "Stream[?]";
  }

  /**
 
View Full Code Here

Examples of org.adfemg.datacontrol.xml.annotation.ElementCustomization.target()

                final ElementCustomization annotation = customizer.getClass().getAnnotation(ElementCustomization.class);
                if (annotation == null) {
                    throw new IllegalStateException("Customizer " + customizer.getClass().getName() + " doesn't have " +
                                                    ElementCustomization.class.getName() + " annotation");
                }
                final String target = annotation.target();
                if (!customizers.containsKey(target)) {
                    customizers.put(target, new ArrayList<Object>());
                }
                customizers.get(target).add(customizer);
            }
View Full Code Here

Examples of org.atmosphere.handler.AnnotatedProxy.target()

                    ManagedAnnotation a = managed(ap, request.resource());
                    if (a != null) {
                        String targetPath = a.path();
                        if (targetPath.indexOf("{") != -1 && targetPath.indexOf("}") != -1) {
                            try {
                                boolean singleton = ap.target().getClass().getAnnotation(Singleton.class) != null;
                                if (!singleton) {
                                    AnnotatedProxy h = proxyHandler();

                                    final Object o = config.framework().newClassInstance(Object.class, ap.target().getClass());
                                    h.configure(config, o);
View Full Code Here
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.