Examples of Location


Examples of com.sun.xml.bind.v2.runtime.Location

                trees.getPath(element)
        );
    }

    private Location getLocation(final String name, final TreePath treePath) {
        return new Location() {
            public String toString() {
                if (treePath == null)
                    return name + " (Unknown Source)";
                // just like stack trace, we just print the file name and
                // not the whole path. The idea is that the package name should
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.runtime.Location

        assert primitiveType.isPrimitive();
        return primitiveType;
    }

    public Location getClassLocation(final Class clazz) {
        return new Location() {
            public String toString() {
                return clazz.getName();
            }
        };
    }
View Full Code Here

Examples of com.sun.xml.internal.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 com.sun.xmlsearch.util.Location

 
  void makeQueryHit(Query q, int nColumns, int doc, double penalty) {
    if (q.goodEnough(penalty)) {
      int[] array =
  q.getConceptArrayOfNewHit(penalty,
          new Location(doc, _begin, _end));
      for (int i = 0; i < nColumns; i++)
  array[i] = (_filled & 1 << i) != 0 ? _fillers[i].getConcept() : 0;
    }
  }
View Full Code Here

Examples of com.threerings.whirled.spot.data.Location

            if (model == null) {
                errmsg = "No scene found in scene file '" + path + "'.";

            } else {
                SpotSceneModel ssmodel = SpotSceneModel.getSceneModel(model);
                Location defloc = null;
                // find the default entrance to this scene
                for (Portal port : ssmodel.portals) {
                    if (port.portalId == ssmodel.defaultEntranceId) {
                        defloc = port.getOppLocation();
                        break;
View Full Code Here

Examples of com.wordpress.salaboy.model.Location

        assertEquals(0, persistenceService.getAllCalls().size());
        persistenceService.storeCall(call);
        assertEquals(1, persistenceService.getAllCalls().size());
        emergency = new Emergency();
        emergency.setCall(call);
        emergency.setLocation(new Location(1, 2));
        emergency.setType(Emergency.EmergencyType.HEART_ATTACK);
        emergency.setNroOfPeople(1);
        assertEquals(0, persistenceService.getAllEmergencies().size());
        persistenceService.storeEmergency(emergency);
        assertEquals(1, persistenceService.getAllEmergencies().size());
View Full Code Here

Examples of de.fhpotsdam.unfolding.geo.Location

      XML lonXML = itemXML[i].getChild("geo:long");
      if (latXML != null && latXML.getContent() != null) {
        float lat = Float.valueOf(latXML.getContent());
        float lon = Float.valueOf(lonXML.getContent());

        rssGeoLocations.add(new Location(lat, lon));
      }
    }
  }
View Full Code Here

Examples of de.pdark.decentxml.Location

         
          c = source.charAt (pos);
          if (c == endChar)
              break;
          if (c == '<') {
            Location l = new Location(source, pos);
              System.err.println("Illegal character in attribute value: '"+c+"' in "+originDetails+" at "+l);
          }
      }
     
      // Skip end-char
View Full Code Here

Examples of de.timefinder.data.Location

                logger.severe("No event found for activity:" + activity.getName());
                continue;
            }

            event.setStart(ass.getSlot());
            Location tfLoc = locToRoom.getSecond(ass.getResource(0));
            if (tfLoc != null) {
                event.setLocation(tfLoc);
            } else
                logger.warning("No TF-room found for activity:" + activity.getName());
        }
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.document.tokenizer.Location

        for (Iterator iter = colors.iterator(); iter.hasNext();) {
          Color col = (Color) iter.next();
          setHighlightColor(col);
          Set s = (Set)colorToLocation.get(col);
          for (Iterator iterator = s.iterator(); iterator.hasNext();) {
            Location loc = (Location) iterator.next();
            try {
              h.addHighlight(loc.getStartPosition(),
                  loc.getEndPosition(), myHighlightPainter);
            } catch (BadLocationException ble){
              log.warning("highlighting error");
            }
          }
        }
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.