/* * 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 javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyElement; 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 org.geotoolkit.ogc.xml.v200.FilterType; import org.geotoolkit.wfs.xml.ReplaceElement; /** * <p>Java class for ReplaceType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ReplaceType"> * <complexContent> * <extension base="{http://www.opengis.net/wfs/2.0}AbstractTransactionActionType"> * <sequence> * <any namespace='##other'/> * <element ref="{http://www.opengis.net/fes/2.0}Filter"/> * </sequence> * <attGroup ref="{http://www.opengis.net/wfs/2.0}StandardInputParameters"/> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ReplaceType", propOrder = { "any", "filter" }) public class ReplaceType extends AbstractTransactionActionType implements ReplaceElement { @XmlAnyElement(lax = true) private Object any; @XmlElement(name = "Filter", namespace = "http://www.opengis.net/fes/2.0", required = true) private FilterType filter; @XmlAttribute private String inputFormat; @XmlAttribute @XmlSchemaType(name = "anyURI") private String srsName; public ReplaceType() { } public ReplaceType(final String handle, final FilterType filter, final Object any, final String inputFormat, final String srsName) { super(handle); this.filter = filter; this.any = any; this.inputFormat = inputFormat; this.srsName = srsName; } /** * Gets the value of the any property. * * @return * possible object is * {@link Object } * */ public Object getAny() { return any; } @Override public Object getFeature() { return any; } /** * Sets the value of the any property. * * @param value * allowed object is * {@link Object } * */ public void setAny(Object value) { this.any = value; } /** * Gets the value of the filter property. * * @return * possible object is * {@link FilterType } * */ @Override 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 inputFormat property. * * @return * possible object is * {@link String } * */ @Override 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 } * */ @Override 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; } }