/*
* 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.ogc.xml.v100;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for PropertyIsNullType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PropertyIsNullType">
* <complexContent>
* <extension base="{http://www.opengis.net/ogc}ComparisonOpsType">
* <choice>
* <element ref="{http://www.opengis.net/ogc}PropertyName"/>
* <element ref="{http://www.opengis.net/ogc}Literal"/>
* </choice>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PropertyIsNullType", propOrder = {
"propertyName",
"literal"
})
public class PropertyIsNullType extends ComparisonOpsType {
@XmlElement(name = "PropertyName")
private PropertyNameType propertyName;
@XmlElement(name = "Literal")
private LiteralType literal;
public PropertyIsNullType() {
}
public PropertyIsNullType(final PropertyIsNullType that) {
if (that != null) {
if (that.literal != null) {
this.literal = new LiteralType(that.literal);
}
if (that.propertyName != null) {
this.propertyName = new PropertyNameType(that.propertyName);
}
}
}
/**
* Gets the value of the propertyName property.
*
*/
public PropertyNameType getPropertyName() {
return propertyName;
}
/**
* Sets the value of the propertyName property.
*
*/
public void setPropertyName(final PropertyNameType value) {
this.propertyName = value;
}
/**
* Gets the value of the literal property.
*
*/
public LiteralType getLiteral() {
return literal;
}
/**
* Sets the value of the literal property.
*
*/
public void setLiteral(final LiteralType value) {
this.literal = value;
}
@Override
public ComparisonOpsType getClone() {
return new PropertyIsNullType(this);
}
}