DefaultResponsibleParty changes for revisions 11095:11096

Addition of pre-defined constants. Those constants will be replaced by entries in an embedded database for the Apache SIS project. The metadata-sql module can handle this task.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r11095:11096 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/citation/ResponsiblePartyImpl.java
Revision 11095Revision 11096
package org.geotools.metadata.citation;

// OpenGIS dependencies
import org.geotools.metadata.MetadataEntity;
import org.geotools.resources.Utilities;
import org.geotools.util.SimpleInternationalString;
import org.opengis.metadata.citation.Contact;
import org.opengis.metadata.citation.Role;
import org.opengis.util.InternationalString;
package org.geotools.metadata.citation;

// OpenGIS dependencies
import java.net.MalformedURLException;
import java.net.URL;

import org.geotools.metadata.MetadataEntity;
import org.geotools.resources.Utilities;
import org.geotools.util.SimpleInternationalString;
import org.opengis.metadata.citation.Address;
import org.opengis.metadata.citation.Contact;
import org.opengis.metadata.citation.OnLineFunction;
import org.opengis.metadata.citation.OnLineResource;
import org.opengis.metadata.citation.Role;
import org.opengis.metadata.citation.Telephone;
import org.opengis.util.InternationalString;
private static final long serialVersionUID = -2477962229031486552L;

/**
 * The <A HREF="http://www.opengis.org">OpenGIS consortium</A> responsible party.
 *
 * @see org.geotools.metadata.citation.Contact#OPEN_GIS
 *
 * @todo Localize.
 */
public static ResponsibleParty OPEN_GIS = new ResponsibleParty(Role.PRINCIPAL_INVESTIGATOR);
static {
    OPEN_GIS.setOrganisationName(new SimpleInternationalString("OpenGIS consortium"));
private static final long serialVersionUID = -2477962229031486552L;

/**
 * Create a a ResonsibleParty metadata entry for OGC involvemnt.
 * <p>
 * TODO: limited to package visability waiting for Martin okay
 * </p>
 * @param role
 * @param function
 * @param onlineResource
 * @return ResponsibleParty describing OGC involvement
 */
static ResponsibleParty ogc( Role role, OnLineFunction function, URL onlineResource ){
    org.geotools.metadata.citation.OnLineResource resource = new org.geotools.metadata.citation.OnLineResource();

    resource.setLinkage( onlineResource );
    resource.setFunction( function );
    resource.freeze();

    org.geotools.metadata.citation.Contact contact = new org.geotools.metadata.citation.Contact();
    contact.setOnLineResource( resource );
    contact.freeze();

    ResponsibleParty ogc = new ResponsibleParty( role );
    ogc.setOrganisationName(new SimpleInternationalString("Open Geospatial Consortium"));
    ogc.setContactInfo( contact );
    ogc.freeze();

    return ogc;
}

/**
 * The <A HREF="http://www.opengis.org">OpenGIS consortium</A> responsible party.
 *
 * @see org.geotools.metadata.citation.Contact#OPEN_GIS
 *
 * @todo Localize.
 */
public static ResponsibleParty OGC = new ResponsibleParty(Role.RESOURCE_PROVIDER);
static {
    OGC.setOrganisationName(new SimpleInternationalString("Open Geospatial Consortium"));
    OGC.setContactInfo(org.geotools.metadata.citation.Contact.OGC);
    OGC.freeze();
}

/**
 * The <A HREF="http://www.opengis.org">OpenGIS consortium</A> responsible party.
 *
 * @see org.geotools.metadata.citation.Contact#OPEN_GIS
 *
 * @todo Localize.
 */
public static ResponsibleParty OPEN_GIS = new ResponsibleParty(Role.PRINCIPAL_INVESTIGATOR);
static {
    OPEN_GIS.setOrganisationName(new SimpleInternationalString("OpenGIS consortium"));