Examples of Location


Examples of org.kohsuke.rngom.ast.om.Location

    public void startElement(String namespaceURI, String localName,
                             String qName, Attributes atts) {
      flushText();
      if (builder != null)
        builderStack.push(builder);
      Location loc = makeLocation();
      builder = schemaBuilder.makeElementAnnotationBuilder(namespaceURI,
                                                           localName,
                                                           findPrefix(qName, namespaceURI),
                                                           loc,
                                                           getComments(),
View Full Code Here

Examples of org.lilyproject.util.location.Location

        public void endPrefixMapping(String prefix) throws SAXException {
        }

        public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {
            if (uri.equals("")) {
                Location location = locator == null ? Location.UNKNOWN : new LocationImpl(null, locator.getSystemId(),
                        locator.getLineNumber(), locator.getColumnNumber());
                ConfImpl config = new ConfImpl(localName, location);
                configs.add(config);

                for (int i = 0; i < atts.getLength(); i++) {
View Full Code Here

Examples of org.mitre.medfacts.i2b2.util.Location

      }
      List<String> posTags = posTagger.processStringList(lineStr);
      int c = 0;
      for (String tag : posTags) {
  PartOfSpeechAnnotation posAn = new PartOfSpeechAnnotation();
  posAn.setBegin(new Location(i, c));
  posAn.setEnd(new Location(i, c));
  posAn.setPartOfSpeech(tag);
  posList.add(posAn);
  c += 1;
      }
    }
View Full Code Here

Examples of org.mockito.internal.debugging.Location

    public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) {
        List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted);
       
        int actualCount = actualInvocations.size();
        if (wantedCount > actualCount) {
            Location lastLocation = finder.getLastLocation(actualInvocations);
            reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);       
        }
       
        invocationMarker.markVerified(invocations, wanted);
    }
View Full Code Here

Examples of org.mockito.invocation.Location

        if (defaultReturnValue != null) {
            return defaultReturnValue;
        }
        Class<?> type = invocation.getMethod().getReturnType();
        if (!type.isPrimitive() && !Modifier.isFinal(type.getModifiers())) {
            final Location location = new LocationImpl();
            return Mockito.mock(type, new ThrowsSmartNullPointer(invocation, location));
        }
        return null;
    }
View Full Code Here

Examples of org.onemind.swingweb.client.gwt.util.Location

                RootPanel.get().add(new Label("sw-app-url element must be defined"));
            } else
            {
                if (url.startsWith("/"))
                {
                    Location loc = WindowUtils.getLocation();
                    url = "http://" + loc.getHost() + url;
                }
                GwtClient client = new GwtClient(url);
                initHandlers(client);
                if (consoleArea != null)
                {
View Full Code Here

Examples of org.openbravo.model.common.businesspartner.Location

        // Business Partner
        if (bp_id == null) {
            final BusinessPartner syncBp = extPos.getBusinessPartner();
            iOrder.setBusinessPartner(syncBp);
            final Location syncBpLoc = (syncBp.getBusinessPartnerLocationList()
                    .isEmpty()) ? null : syncBp
                    .getBusinessPartnerLocationList().get(0);

            iOrder.setPartnerAddress(syncBpLoc);
            // Payment Term
            iOrder.setPaymentTerms(syncBp.getPaymentTerms());
        } else {
            final BusinessPartner syncSelBp = (BusinessPartner) OBDal
                    .getInstance().get("BusinessPartner", bp_id);
            iOrder.setBusinessPartner(syncSelBp);
            final Location syncBpLoc = (syncSelBp
                    .getBusinessPartnerLocationList().isEmpty()) ? null
                    : syncSelBp.getBusinessPartnerLocationList().get(0);
            iOrder.setPartnerAddress(syncBpLoc);
        }
View Full Code Here

Examples of org.openmrs.Location

    @Test
    public void encounterLocationTag_shouldShowRetiredLocationIfPreviouslySelected() throws Exception {

        // create an encounter associated with a retired location
        Location location = Context.getLocationService().getLocation(3);
        Patient patient = Context.getPatientService().getPatient(2);
        Encounter encounter = Context.getEncounterService().getEncounter(101);

        // (sanity check)
        Assert.assertTrue(location.isRetired());

        // set the location on this encounter to the retired location
        encounter.setLocation(location);

        // now render a form using that encounter
View Full Code Here

Examples of org.openpnp.model.Location

    return new Point(point.getX() * scaleX, point.getY() * scaleY);
  }
 
  public static Location calculateBoardPlacementLocation(BoardLocation bl, Placement placement) {
        // Determine where we will place the part
        Location boardLocation = bl.getLocation();
        Location placementLocation = placement.getLocation();

        // We will work in the units of the placementLocation, so convert
        // anything that isn't in those units to it.
        boardLocation = boardLocation.convertToUnits(placementLocation.getUnits());
       
        // If we are placing the bottom of the board we need to invert
        // the placement location.
        if (bl.getSide() == Side.Bottom) {
            placementLocation = placementLocation.invert(true, false, false, false);
        }

        // Create the point that represents the final placement location
        Point p = new Point(placementLocation.getX(),
                placementLocation.getY());

        // Rotate and translate the point into the same coordinate space
        // as the board
        p = Utils2D.rotateTranslateScalePoint(p, boardLocation
                .getRotation(), boardLocation.getX(), boardLocation
                .getY(), 1.0, 1.0);

        // Update the placementLocation with the transformed point
        placementLocation = placementLocation.derive(p.getX(), p.getY(), null, null);

        // Update the placementLocation with the board's rotation and
        // the placement's rotation
        // This sets the rotation of the part itself when it will be
        // placed
        placementLocation = placementLocation.derive(
                null,
                null,
                null,
                (placementLocation.getRotation() + boardLocation.getRotation()) % 360.0);
       
        return placementLocation;
     
  }
View Full Code Here

Examples of org.openqa.selenium.html5.Location

  @Test(enabled = false)
  public void testShouldSetAndGetLocation() {
    //driver.get(pages.html5Page);

    LocationContext d = (LocationContext) new Augmenter().augment(driver);
    Location loc = new Location(40.714353, -74.005973, 0.056747);

    d.setLocation(loc);

    //driver.manage().timeouts().implicitlyWait(2000, MILLISECONDS);
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.