/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2011, 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.wfs.xml.v100;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* A GetFeatureWithLock request operates identically to a
* GetFeature request expect that it attempts to lock the
* feature instances in the result set and includes a lock
* identifier in its response to a client. A lock identifier
* is an identifier generated by a Web Feature Service that
* a client application can use, in subsequent operations,
* to reference the locked set of feature instances.
*
*
* <p>Java class for GetFeatureWithLockType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="GetFeatureWithLockType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.opengis.net/wfs}Query" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="1.0.0" />
* <attribute name="service" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="WFS" />
* <attribute name="handle" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="expiry" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* <attribute name="outputFormat" type="{http://www.w3.org/2001/XMLSchema}string" default="GML2" />
* <attribute name="maxFeatures" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetFeatureWithLockType", propOrder = {
"query"
})
public class GetFeatureWithLockType {
@XmlElement(name = "Query", required = true)
private List<QueryType> query;
@XmlAttribute(required = true)
private String version;
@XmlAttribute(required = true)
private String service;
@XmlAttribute
private String handle;
@XmlAttribute
@XmlSchemaType(name = "positiveInteger")
private BigInteger expiry;
@XmlAttribute
private String outputFormat;
@XmlAttribute
@XmlSchemaType(name = "positiveInteger")
private BigInteger maxFeatures;
/**
* Gets the value of the query property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the query property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getQuery().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link QueryType }
*
*
*/
public List<QueryType> getQuery() {
if (query == null) {
query = new ArrayList<QueryType>();
}
return this.query;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
if (version == null) {
return "1.0.0";
} else {
return version;
}
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
/**
* Gets the value of the service property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getService() {
if (service == null) {
return "WFS";
} else {
return service;
}
}
/**
* Sets the value of the service property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setService(String value) {
this.service = value;
}
/**
* Gets the value of the handle property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHandle() {
return handle;
}
/**
* Sets the value of the handle property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHandle(String value) {
this.handle = value;
}
/**
* Gets the value of the expiry property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getExpiry() {
return expiry;
}
/**
* Sets the value of the expiry property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setExpiry(BigInteger value) {
this.expiry = value;
}
/**
* Gets the value of the outputFormat property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOutputFormat() {
if (outputFormat == null) {
return "GML2";
} else {
return outputFormat;
}
}
/**
* Sets the value of the outputFormat property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOutputFormat(String value) {
this.outputFormat = value;
}
/**
* Gets the value of the maxFeatures property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaxFeatures() {
return maxFeatures;
}
/**
* Sets the value of the maxFeatures property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaxFeatures(BigInteger value) {
this.maxFeatures = value;
}
}