@Test public void testRole2String() throws OSHDBKeytablesNotFoundException { OSHDBRole role = new OSHDBRole(1); TagTranslator instance = new TagTranslator(TagTranslatorTest.conn); OSMRole expResult = new OSMRole("inner"); OSMRole result = instance.getOSMRoleOf(role); assertEquals(expResult, result); }
public OSMRole getOSMRoleOf(int role) { return this.getOSMRoleOf(new OSHDBRole(role)); }
TagTranslator implements AutoCloseable { public OSMRole getOSMRoleOf(int role) { return this.getOSMRoleOf(new OSHDBRole(role)); } }
TagTranslator implements AutoCloseable { public OSMRole getOSMRoleOf(int role) { return this.getOSMRoleOf(new OSHDBRole(role)); } TagTranslator(Connection conn); }
TagTranslator implements AutoCloseable { public OSMRole getOSMRoleOf(int role) { return this.getOSMRoleOf(new OSHDBRole(role)); } TagTranslator(Connection conn); @Override void close(); OSHDBTagKey getOSHDBTagKeyOf(String key); OSHDBTagKey getOSHDBTagKeyOf(OSMTagKey key); OSMTagKey getOSMTagKeyOf(int key); OSMTagKey getOSMTagKeyOf(OSHDBTagKey key); OSHDBTag getOSHDBTagOf(String key, String value); OSHDBTag getOSHDBTagOf(OSMTag tag); OSMTag getOSMTagOf(int key, int value); OSMTag getOSMTagOf(OSHDBTag tag); OSHDBRole getOSHDBRoleOf(String role); OSHDBRole getOSHDBRoleOf(OSMRole role); OSMRole getOSMRoleOf(int role); OSMRole getOSMRoleOf(OSHDBRole role); Connection getConnection(); }
TagTranslator implements AutoCloseable { public OSMRole getOSMRoleOf(int role) { return this.getOSMRoleOf(new OSHDBRole(role)); } TagTranslator(Connection conn); @Override void close(); OSHDBTagKey getOSHDBTagKeyOf(String key); OSHDBTagKey getOSHDBTagKeyOf(OSMTagKey key); OSMTagKey getOSMTagKeyOf(int key); OSMTagKey getOSMTagKeyOf(OSHDBTagKey key); OSHDBTag getOSHDBTagOf(String key, String value); OSHDBTag getOSHDBTagOf(OSMTag tag); OSMTag getOSMTagOf(int key, int value); OSMTag getOSMTagOf(OSHDBTag tag); OSHDBRole getOSHDBRoleOf(String role); OSHDBRole getOSHDBRoleOf(OSMRole role); OSMRole getOSMRoleOf(int role); OSMRole getOSMRoleOf(OSHDBRole role); Connection getConnection();  }