/** * Returns the on line function that matches the given string, or returns a new one if none * match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static OnLineFunction valueOf(String code) { return valueOf(OnLineFunction.class, code); } }
/** * Returns the on line function that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static OnLineFunction valueOf(String code) { return valueOf(OnLineFunction.class, code); } }
/** * Returns the on line function that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static OnLineFunction valueOf(String code) { return valueOf(OnLineFunction.class, code); } }
/** * Adds a URL to a more complete description of the metadata. * * <ul> * <li>{@code metadata/metadataLinkage/linkage} * with {@code function} set to {@code OnLineFunction.COMPLETE_METADATA}</li> * </ul> * * @param link */ public final void addCompleteMetadata(final URI link) { if (link != null) { final DefaultOnlineResource ln = new DefaultOnlineResource(link); ln.setFunction(OnLineFunction.valueOf("COMPLETE_METADATA")); ln.setProtocol(link.getScheme()); addIfNotPresent(metadata().getMetadataLinkages(), ln); } }
/** * Adds a URL to a more complete description of the metadata. * Storage location is: * * <ul> * <li>{@code metadata/metadataLinkage/linkage} * with {@code function} set to {@code OnLineFunction.COMPLETE_METADATA}</li> * </ul> * * @param link URL to a more complete description of the metadata, or {@code null}. */ public final void addCompleteMetadata(final URI link) { if (link != null) { final DefaultOnlineResource ln = new DefaultOnlineResource(link); ln.setFunction(OnLineFunction.valueOf("COMPLETE_METADATA")); ln.setProtocol(link.getScheme()); addIfNotPresent(metadata().getMetadataLinkages(), ln); } }
case 2: { url = SQLUtilities.getSimplifiedURL(metadata); function = OnLineFunction.valueOf(CONNECTION); description = Resources.formatInternational(Resources.Keys.GeodeticDataBase_4, Constants.EPSG, version, metadata.getDatabaseProductName(),
case 2: { url = SQLUtilities.getSimplifiedURL(metadata); function = OnLineFunction.valueOf(CONNECTION); description = Resources.formatInternational(Resources.Keys.GeodeticDataBase_4, Constants.EPSG, version, metadata.getDatabaseProductName(),
final OnLineFunction f = OnLineFunction.valueOf(CONNECTION); for (final OnlineResource res : ((DefaultCitation) authority).getOnlineResources()) { if (f.equals(res.getFunction())) {
final OnLineFunction f = OnLineFunction.valueOf(CONNECTION); for (final OnlineResource res : ((DefaultCitation) authority).getOnlineResources()) { if (f.equals(res.getFunction())) {