/** * Adds the specified identifier as a CRS authority factory. This is used as a convenience * method for the creation of constants, and for making sure that all of them use the same * identifier type. */ final void addAuthority(final String identifier, final boolean asTitle) { if (asTitle) { getAlternateTitles().add(new SimpleInternationalString(identifier)); } getIdentifiers().add(new IdentifierImpl(identifier)); }
final Collection<Identifier> identifiers = c.getIdentifiers(); for (int i = 1; i < authorities.length; i++) { identifiers.addAll(authorities[i].getIdentifiers());
/** * Adds the specified identifier as a CRS authority factory. This is used as a convenience * method for the creation of constants, and for making sure that all of them use the same * identifier type. */ final void addAuthority(final String identifier, final boolean asTitle) { if (asTitle) { getAlternateTitles().add(new SimpleInternationalString(identifier)); } getIdentifierTypes().add("Authority name"); getIdentifiers().add(identifier); }
/** * Adds the specified identifier as a CRS authority factory. This is used as a convenience * method for the creation of constants, and for making sure that all of them use the same * identifier type. */ final void addAuthority(final String identifier, final boolean asTitle) { if (asTitle) { getAlternateTitles().add(new SimpleInternationalString(identifier)); } getIdentifiers().add(new IdentifierImpl(identifier)); }