/** * Returns a generic object authority factory for the specified {@code "AUTHORITY:NUMBER"} code. * * @param code The code to parse. * @return The authority factory. * @throws NoSuchAuthorityCodeException if no authority name has been found. */ @Override protected AuthorityFactory getAuthorityFactory(final String code) throws NoSuchAuthorityCodeException { return getAuthorityFactory(AuthorityFactory.class, code); }
/** * Returns the CS authority factory for the specified {@code "AUTHORITY:NUMBER"} code. * * @param code The code to parse. * @return The authority factory. * @throws NoSuchAuthorityCodeException if no authority name has been found. */ @Override protected CSAuthorityFactory getCSAuthorityFactory(final String code) throws NoSuchAuthorityCodeException { return getAuthorityFactory(CSAuthorityFactory.class, code); }
/** * Returns the CRS authority factory for the specified {@code "AUTHORITY:NUMBER"} code. * * @param code The code to parse. * @return The authority factory. * @throws NoSuchAuthorityCodeException if no authority name has been found. */ @Override protected CRSAuthorityFactory getCRSAuthorityFactory(final String code) throws NoSuchAuthorityCodeException { return getAuthorityFactory(CRSAuthorityFactory.class, code); }
/** * Returns the operation authority factory for the specified {@code "AUTHORITY:NUMBER"} code. * * @param code The code to parse. * @return The authority factory. * @throws NoSuchAuthorityCodeException if no authority name has been found. */ @Override protected CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory( final String code) throws NoSuchAuthorityCodeException { return getAuthorityFactory(CoordinateOperationAuthorityFactory.class, code); }
/** * Returns the datum authority factory for the specified {@code "AUTHORITY:NUMBER"} code. * * @param code The code to parse. * @return The authority factory. * @throws NoSuchAuthorityCodeException if no authority name has been found. */ @Override protected DatumAuthorityFactory getDatumAuthorityFactory(final String code) throws NoSuchAuthorityCodeException { return getAuthorityFactory(DatumAuthorityFactory.class, code); }
final AuthorityFactory factory; try { factory = getAuthorityFactory(factoryType, dummyCode); } catch (NoSuchAuthorityCodeException e) { continue;
factory = getAuthorityFactory(FACTORY_TYPES[type], code); } catch (NoSuchAuthorityCodeException exception) { if (failure == null) {
factory = getAuthorityFactory(FACTORY_TYPES[type], code); } catch (NoSuchAuthorityCodeException exception) { if (failure == null) {