Package java.util.regex

Examples of java.util.regex.Pattern$Bound


          new SchemaVersionValidator(loginCredentials, preferences)
                  .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
         
          entityDao = new AllEntityDao(dbCtx.getJdbcTemplate());

          sink.process(new BoundContainer(new Bound("Osmosis " + OsmosisConstants.VERSION)));
          reader = new EntitySnapshotReader(entityDao.getHistory(), snapshotInstant);
          try {
            while (reader.hasNext()) {
              sink.process(reader.next());
            }
View Full Code Here


    }
    origin = attributes.getValue(ATTRIBUTE_NAME_ORIGIN);
    if (origin == null || origin.equals("")) {
      throw new OsmosisRuntimeException("Origin attribute of bound element is empty or missing.");
    }
    bound = new Bound(right, left, top, bottom, origin);
  }
View Full Code Here

            double rightf = block.getBbox().getRight() * multiplier;
            double leftf = block.getBbox().getLeft() * multiplier;
            double topf = block.getBbox().getTop() * multiplier;
            double bottomf = block.getBbox().getBottom() * multiplier;

            Bound bounds = new Bound(rightf, leftf, topf, bottomf, source);
            sink.process(new BoundContainer(bounds));
        }
    }
View Full Code Here

            SAXParser parser = createParser();
            InputStream inputStream =
              getInputStream(myBaseUrl + "/map?bbox=" + myLeft + "," + myBottom + "," + myRight + "," + myTop);

            // First send the Bound down the pipeline
            mySink.process(new BoundContainer(new Bound(myRight, myLeft, myTop, myBottom, myBaseUrl)));

            try {
                parser.parse(inputStream, new OsmHandler(mySink, true));
            } finally {
                inputStream.close();
View Full Code Here

  /**
   * Test processing a single Bound entity.
   */
  @Test
  public final void testProcess1() {
    testOsmWriter.process(new BoundContainer(new Bound("source")));
    // Nothing to assert; just expect no exception
  }
View Full Code Here

  /**
   * Test processing a repeated Bound entity.
   */
  @Test(expected = OsmosisRuntimeException.class)
  public final void testProcess2() {
    testOsmWriter.process(new BoundContainer(new Bound("source")));
    testOsmWriter.process(new BoundContainer(new Bound("source2")));
    fail("Expected to throw an exception.");
  }
View Full Code Here

    testOsmWriter.process(new NodeContainer(
        new Node(
            new CommonEntityData(1234, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0,
                new ArrayList<Tag>()),
            20, 20)));
    testOsmWriter.process(new BoundContainer(new Bound("source")));
    fail("Expected to throw an exception.");
  }
View Full Code Here

    testWay.getWayNodes().add(new WayNode(1234));
    testWay.getWayNodes().add(new WayNode(1235));
    testWay.getTags().add(new Tag("test_key1", "test_value1"));
   
    testOsmWriter.process(new WayContainer(testWay));
    testOsmWriter.process(new BoundContainer(new Bound("source")));
  }
View Full Code Here

    testRelation = new Relation(new CommonEntityData(3456, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0));
    testRelation.getMembers().add(new RelationMember(1234, EntityType.Node, "role1"));
    testRelation.getTags().add(new Tag("test_key1", "test_value1"));
   
    testOsmWriter.process(new RelationContainer(testRelation));
    testOsmWriter.process(new BoundContainer(new Bound("source")));
  }
View Full Code Here

   * @param scr
   *            Maintains the mapping between classes and their identifiers
   *            within the store.
   */
  public BoundContainer(StoreReader sr, StoreClassRegister scr) {
    bound = new Bound(sr, scr);
  }
View Full Code Here

TOP

Related Classes of java.util.regex.Pattern$Bound

Copyright © 2018 www.massapicom. 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.