/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 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.v200; 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; import javax.xml.namespace.QName; import org.geotoolkit.ogc.xml.v200.FilterType; import org.geotoolkit.wfs.xml.UpdateElement; /** * <p>Java class for UpdateType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="UpdateType"> * <complexContent> * <extension base="{http://www.opengis.net/wfs/2.0}AbstractTransactionActionType"> * <sequence> * <element ref="{http://www.opengis.net/wfs/2.0}Property" maxOccurs="unbounded"/> * <element ref="{http://www.opengis.net/fes/2.0}Filter" minOccurs="0"/> * </sequence> * <attGroup ref="{http://www.opengis.net/wfs/2.0}StandardInputParameters"/> * <attribute name="typeName" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "UpdateType", propOrder = { "property", "filter" }) public class UpdateType extends AbstractTransactionActionType implements UpdateElement { @XmlElement(name = "Property", required = true) private List<PropertyType> property; @XmlElement(name = "Filter", namespace = "http://www.opengis.net/fes/2.0") private FilterType filter; @XmlAttribute(required = true) private QName typeName; @XmlAttribute private String inputFormat; @XmlAttribute @XmlSchemaType(name = "anyURI") private String srsName; public UpdateType() { } public UpdateType(final String inputFormat, final List<PropertyType> property, final FilterType filter, final QName typeName, final String srsName) { this.inputFormat = inputFormat; this.property = property; this.filter = filter; this.typeName = typeName; this.srsName = srsName; } /** * Gets the value of the property property. * */ public List<PropertyType> getProperty() { if (property == null) { property = new ArrayList<>(); } return this.property; } /** * Gets the value of the filter property. * * @return * possible object is * {@link FilterType } * */ public FilterType getFilter() { return filter; } /** * Sets the value of the filter property. * * @param value * allowed object is * {@link FilterType } * */ public void setFilter(FilterType value) { this.filter = value; } /** * Gets the value of the typeName property. * * @return * possible object is * {@link QName } * */ public QName getTypeName() { return typeName; } /** * Sets the value of the typeName property. * * @param value * allowed object is * {@link QName } * */ public void setTypeName(QName value) { this.typeName = value; } /** * Gets the value of the inputFormat property. * * @return * possible object is * {@link String } * */ public String getInputFormat() { if (inputFormat == null) { return "application/gml+xml; version=3.2"; } else { return inputFormat; } } /** * Sets the value of the inputFormat property. * * @param value * allowed object is * {@link String } * */ public void setInputFormat(String value) { this.inputFormat = value; } /** * Gets the value of the srsName property. * * @return * possible object is * {@link String } * */ public String getSrsName() { return srsName; } /** * Sets the value of the srsName property. * * @param value * allowed object is * {@link String } * */ public void setSrsName(String value) { this.srsName = value; } }