/** * 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; }
oldParty = null; final ResponsiblePartyImpl party = new ResponsiblePartyImpl(oldParty); party.setRole(Role.RESOURCE_PROVIDER); party.setContactInfo(new ContactImpl(resource));
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();
/** * 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; }
/** * 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; }
ResponsiblePartyImpl ret = new ResponsiblePartyImpl();
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; }
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 = new ResponsiblePartyImpl();