@Test public void testParseWithoutVersion() throws NoSuchAuthorityCodeException { final URN_Parser parser = new URN_Parser("urn:ogc:def:CRS:EPSG:4326"); assertEquals("crs", parser.type.name); assertEquals("EPSG", parser.authority); assertNull ( parser.version); assertEquals("4326", parser.code); assertEquals("EPSG:4326", parser.getAuthorityCode()); }
public String getAuthorityCode() { return authority + SEPARATOR + code; }
URN_Parser { public String getAuthorityCode() { return authority + SEPARATOR + code; } }
URN_Parser { public String getAuthorityCode() { return authority + SEPARATOR + code; } URN_Parser(final String urn); }
URN_Parser { public String getAuthorityCode() { return authority + SEPARATOR + code; } URN_Parser(final String urn); String getAuthorityCode(); @Override String toString(); }
URN_Parser { public String getAuthorityCode() { return authority + SEPARATOR + code; } URN_Parser(final String urn); String getAuthorityCode(); @Override String toString(); final String urn; final URN_Type type; final String authority; final Version version; final String code; }