/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2013, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.ows.xml.v200; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * Basic metadata identifying and describing a set of * data. * * <p>Java class for BasicIdentificationType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="BasicIdentificationType"> * <complexContent> * <extension base="{http://www.opengis.net/ows/2.0}DescriptionType"> * <sequence> * <element ref="{http://www.opengis.net/ows/2.0}Identifier" minOccurs="0"/> * <element ref="{http://www.opengis.net/ows/2.0}Metadata" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BasicIdentificationType", propOrder = { "identifier", "metadata" }) @XmlSeeAlso({ ManifestType.class, ReferenceGroupType.class, IdentificationType.class }) public class BasicIdentificationType extends DescriptionType { @XmlElement(name = "Identifier") private CodeType identifier; @XmlElementRef(name = "Metadata", namespace = "http://www.opengis.net/ows/2.0", type = JAXBElement.class) private List<JAXBElement<? extends MetadataType>> metadata; public BasicIdentificationType() { } public BasicIdentificationType(CodeType identifier, final List<LanguageStringType> title, final List<LanguageStringType> _abstract, final List<KeywordsType> keywords) { super(title, _abstract, keywords); this.identifier = identifier; } /** * Optional unique identifier or name of this * dataset. * * @return * possible object is * {@link CodeType } * */ public CodeType getIdentifier() { return identifier; } /** * Sets the value of the identifier property. * * @param value * allowed object is * {@link CodeType } * */ public void setIdentifier(CodeType value) { this.identifier = value; } /** * Optional unordered list of additional metadata * about this data(set). A list of optional metadata elements for * this data identification could be specified in the * Implementation Specification for this service.Gets the value of the metadata property. * * Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link MetadataType }{@code >} * {@link JAXBElement }{@code <}{@link AdditionalParametersType }{@code >} * * */ public List<JAXBElement<? extends MetadataType>> getMetadata() { if (metadata == null) { metadata = new ArrayList<JAXBElement<? extends MetadataType>>(); } return this.metadata; } }