/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, 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.csw.xml.v200; import java.util.Arrays; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.csw.xml.GetRecordById; /** * Requests the default representation of a catalogue object * Id - object idenitifier (a URI) * ElementSetName - one of "brief, "summary", or "full" * * * <p>Java class for GetRecordByIdType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="GetRecordByIdType"> * <complexContent> * <extension base="{http://www.opengis.net/cat/csw}RequestBaseType"> * <sequence> * <element name="Id" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> * <element ref="{http://www.opengis.net/cat/csw}ElementSetName" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "GetRecordByIdType", propOrder = { "id", "elementSetName" }) public class GetRecordByIdType extends RequestBaseType implements GetRecordById { @XmlElement(name = "Id", required = true) @XmlSchemaType(name = "anyURI") private String id; @XmlElement(name = "ElementSetName", defaultValue = "summary") private ElementSetNameType elementSetName; /** * An empty constructor used by JAXB */ GetRecordByIdType(){ } /** * An empty constructor used by JAXB */ public GetRecordByIdType(final String service, final String version, final ElementSetNameType elementSetName, final String id){ super(service, version); this.elementSetName = elementSetName; this.id = id; } /** * Gets the value of the id property. * */ @Override public List<String> getId() { return Arrays.asList(id); } /** * Sets the value of the id property. * */ public void setId(final String value) { this.id = value; } /** * Gets the value of the elementSetName property. * */ @Override public ElementSetNameType getElementSetName() { return elementSetName; } /** * Sets the value of the elementSetName property. * */ public void setElementSetName(final ElementSetNameType value) { this.elementSetName = value; } @Override public String getOutputSchema() { return "http://www.opengis.net/cat/csw"; } @Override public String getOutputFormat() { return "application/xml"; } @Override public void setOutputFormat(final String value) {} }