/** * Creates a responsible party metadata entry for OGC involvement. The organisation name is * automatically set to "Open Geospatial Consortium". * * @param role The OGC role (point of contact, owner, etc.) for a resource. * @param resource The URI to the resource. * @return Responsible party describing OGC involvement. * @since 2.2 */ public static ResponsibleParty OGC(final Role role, final OnLineResource resource) { final ContactImpl contact = new ContactImpl(resource); contact.freeze(); final ResponsiblePartyImpl ogc = new ResponsiblePartyImpl(role); ogc.setOrganisationName(OGC_NAME); ogc.setContactInfo(contact); ogc.freeze(); return ogc; }
/** Constructs a responsability party with the given role. */ public ResponsiblePartyImpl(final Role role) { setRole(role); }
/** * Creates a responsible party metadata entry for OGC involvement. The organisation name is * automatically set to "Open Geospatial Consortium". * * @param role The OGC role (point of contact, owner, etc.) for a resource. * @param function The OGC function (information, download, etc.) for a resource. * @param onlineResource The URI on the resource. * @return Responsible party describing OGC involvement. */ static ResponsibleParty OGC( final Role role, final OnLineFunction function, final String onlineResource) { try { return OGC(role, function, new URI(onlineResource)); } catch (URISyntaxException badContact) { Logging.unexpectedException( "org.geotools.metadata.iso", ResponsibleParty.class, "OGC", badContact); return OGC; } }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { ResponsiblePartyImpl responsibleParty = new ResponsiblePartyImpl(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { String name = (String) value[i].getValue(); responsibleParty.setIndividualName(name); } if (sameName(elems[1], value[i])) { String organization = (String) value[i].getValue(); responsibleParty.setOrganisationName( new SimpleInternationalString(organization)); } } return responsibleParty; }
contactPerson = new ResponsiblePartyImpl(); contactPerson.setContactInfo(contact); contactPerson.setPositionName(new SimpleInternationalString(positionName));
ResponsiblePartyImpl ret = new ResponsiblePartyImpl(); ret.setContactInfo(contactInfo); ret.setIndividualName((String)cppInfo.get("ContactPerson")); ret.setOrganisationName(new SimpleInternationalString((String)cppInfo.get("ContactOrganization"))); ret.setPositionName(new SimpleInternationalString((String)node.getChildValue("ContactPosition")));
oldParty = null; final ResponsiblePartyImpl party = new ResponsiblePartyImpl(oldParty); party.setRole(Role.RESOURCE_PROVIDER); party.setContactInfo(new ContactImpl(resource)); parties.add(party); authority = (Citation) citation.unmodifiable();
/** * Set the name of the responsible organization. Only one of {@link #getIndividualName * individualName}, </code>organisationName</code> and {@link #getPositionName positionName} * should be provided. */ public synchronized void setOrganisationName(final InternationalString newValue) { checkWritePermission(); organisationName = newValue; }
contactPerson = new ResponsiblePartyImpl(); contactPerson.setContactInfo(contact); contactPerson.setPositionName(new SimpleInternationalString(positionName));
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { ResponsiblePartyImpl responsibleParty = new ResponsiblePartyImpl(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { String name = (String) value[i].getValue(); responsibleParty.setIndividualName(name); } if (sameName(elems[1], value[i])) { String organization = (String) value[i].getValue(); responsibleParty.setOrganisationName( new SimpleInternationalString(organization)); } } return responsibleParty; }
/** * Set the name of the responsible person- surname, given name, title separated by a delimiter. * Only one of {@code individualName}, {@link #getOrganisationName organisationName} and {@link * #getPositionName positionName} should be provided. */ public synchronized void setIndividualName(final String newValue) { checkWritePermission(); individualName = newValue; }
/** * Creates a responsible party metadata entry for OGC involvement. * The organisation name is automatically set to "Open Geospatial Consortium". * * @param role The OGC role (point of contact, owner, etc.) for a resource. * @param resource The URI to the resource. * @return Responsible party describing OGC involvement. * * @since 2.2 */ public static ResponsibleParty OGC(final Role role, final OnLineResource resource) { final ContactImpl contact = new ContactImpl(resource); contact.freeze(); final ResponsiblePartyImpl ogc = new ResponsiblePartyImpl(role); ogc.setOrganisationName(OGC_NAME); ogc.setContactInfo(contact); ogc.freeze(); return ogc; }
contactPerson = new ResponsiblePartyImpl(); contactPerson.setContactInfo(contact); contactPerson.setPositionName(new SimpleInternationalString(positionName));
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { ResponsiblePartyImpl responsibleParty = new ResponsiblePartyImpl(); for (int i = 0; i < value.length; i++) { if (sameName(elems[0], value[i])) { String name = (String) value[i].getValue(); responsibleParty.setIndividualName(name); } if (sameName(elems[1], value[i])) { String organization = (String) value[i].getValue(); responsibleParty.setOrganisationName(new SimpleInternationalString(organization)); } } return responsibleParty; }
/** Set the address of the responsible party. */ public synchronized void setContactInfo(final Contact newValue) { checkWritePermission(); contactInfo = newValue; }
/** * Constructs a responsability party with the given role. */ public ResponsiblePartyImpl(final Role role) { setRole(role); }
/** * Creates a responsible party metadata entry for OGC involvement. The organisation name is * automatically set to "Open Geospatial Consortium". * * @param role The OGC role (point of contact, owner, etc.) for a resource. * @param function The OGC function (information, download, etc.) for a resource. * @param onlineResource The URI to the resource. * @return Responsible party describing OGC involvement. */ public static ResponsibleParty OGC( final Role role, final OnLineFunction function, final URI onlineResource) { final OnLineResourceImpl resource = new OnLineResourceImpl(onlineResource); resource.setFunction(function); resource.freeze(); return OGC(role, resource); }
/** * Creates a responsible party metadata entry for OGC involvement. * The organisation name is automatically set to "Open Geospatial Consortium". * * @param role The OGC role (point of contact, owner, etc.) for a resource. * @param resource The URI to the resource. * @return Responsible party describing OGC involvement. * * @since 2.2 */ public static ResponsibleParty OGC(final Role role, final OnLineResource resource) { final ContactImpl contact = new ContactImpl(resource); contact.freeze(); final ResponsiblePartyImpl ogc = new ResponsiblePartyImpl(role); ogc.setOrganisationName(OGC_NAME); ogc.setContactInfo(contact); ogc.freeze(); return ogc; }
/** Set the function performed by the responsible party. */ public synchronized void setRole(final Role newValue) { checkWritePermission(); role = newValue; } }
/** * Constructs a responsability party with the given role. */ public ResponsiblePartyImpl(final Role role) { setRole(role); }