/*
* 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.wmc.xml.v110;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.geotoolkit.util.Utilities;
/**
* <p>Java class for GeneralType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="GeneralType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Window" type="{http://www.opengis.net/context}WindowType" minOccurs="0"/>
* <element name="BoundingBox" type="{http://www.opengis.net/context}BoundingBoxType"/>
* <element name="Title" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="KeywordList" type="{http://www.opengis.net/context}KeywordListType" minOccurs="0"/>
* <element name="Abstract" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="LogoURL" type="{http://www.opengis.net/context}URLType" minOccurs="0"/>
* <element name="DescriptionURL" type="{http://www.opengis.net/context}URLType" minOccurs="0"/>
* <element name="ContactInformation" type="{http://www.opengis.net/context}ContactInformationType" minOccurs="0"/>
* <element name="Extension" type="{http://www.opengis.net/context}ExtensionType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GeneralType", propOrder = {
"window",
"boundingBox",
"title",
"keywordList",
"_abstract",
"logoURL",
"descriptionURL",
"contactInformation",
"extension"
})
public class GeneralType {
@XmlElement(name = "Window")
protected WindowType window;
@XmlElement(name = "BoundingBox", required = true)
protected BoundingBoxType boundingBox;
@XmlElement(name = "Title", required = true)
protected String title;
@XmlElement(name = "KeywordList")
protected KeywordListType keywordList;
@XmlElement(name = "Abstract")
protected String _abstract;
@XmlElement(name = "LogoURL")
protected URLType logoURL;
@XmlElement(name = "DescriptionURL")
protected URLType descriptionURL;
@XmlElement(name = "ContactInformation")
protected ContactInformationType contactInformation;
@XmlElement(name = "Extension")
protected ExtensionType extension;
/**
* Gets the value of the window property.
*
* @return
* possible object is
* {@link WindowType }
*
*/
public WindowType getWindow() {
return window;
}
/**
* Sets the value of the window property.
*
* @param value
* allowed object is
* {@link WindowType }
*
*/
public void setWindow(final WindowType value) {
this.window = value;
}
/**
* Gets the value of the boundingBox property.
*
* @return
* possible object is
* {@link BoundingBoxType }
*
*/
public BoundingBoxType getBoundingBox() {
return boundingBox;
}
/**
* Sets the value of the boundingBox property.
*
* @param value
* allowed object is
* {@link BoundingBoxType }
*
*/
public void setBoundingBox(final BoundingBoxType value) {
this.boundingBox = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(final String value) {
this.title = value;
}
/**
* Gets the value of the keywordList property.
*
* @return
* possible object is
* {@link KeywordListType }
*
*/
public KeywordListType getKeywordList() {
return keywordList;
}
/**
* Sets the value of the keywordList property.
*
* @param value
* allowed object is
* {@link KeywordListType }
*
*/
public void setKeywordList(final KeywordListType value) {
this.keywordList = value;
}
/**
* Gets the value of the abstract property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAbstract() {
return _abstract;
}
/**
* Sets the value of the abstract property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAbstract(final String value) {
this._abstract = value;
}
/**
* Gets the value of the logoURL property.
*
* @return
* possible object is
* {@link URLType }
*
*/
public URLType getLogoURL() {
return logoURL;
}
/**
* Sets the value of the logoURL property.
*
* @param value
* allowed object is
* {@link URLType }
*
*/
public void setLogoURL(final URLType value) {
this.logoURL = value;
}
/**
* Gets the value of the descriptionURL property.
*
* @return
* possible object is
* {@link URLType }
*
*/
public URLType getDescriptionURL() {
return descriptionURL;
}
/**
* Sets the value of the descriptionURL property.
*
* @param value
* allowed object is
* {@link URLType }
*
*/
public void setDescriptionURL(final URLType value) {
this.descriptionURL = value;
}
/**
* Gets the value of the contactInformation property.
*
* @return
* possible object is
* {@link ContactInformationType }
*
*/
public ContactInformationType getContactInformation() {
return contactInformation;
}
/**
* Sets the value of the contactInformation property.
*
* @param value
* allowed object is
* {@link ContactInformationType }
*
*/
public void setContactInformation(final ContactInformationType value) {
this.contactInformation = value;
}
/**
* Gets the value of the extension property.
*
* @return
* possible object is
* {@link ExtensionType }
*
*/
public ExtensionType getExtension() {
return extension;
}
/**
* Sets the value of the extension property.
*
* @param value
* allowed object is
* {@link ExtensionType }
*
*/
public void setExtension(final ExtensionType value) {
this.extension = value;
}
/**
* Verify if this entry is identical to specified object.
*/
@Override
public boolean equals(final Object object) {
if (object == this) {
return true;
}
if (object instanceof GeneralType) {
final GeneralType that = (GeneralType) object;
return Objects.equals(this._abstract, that._abstract) &&
Objects.equals(this.boundingBox, that.boundingBox) &&
Objects.equals(this.contactInformation, that.contactInformation) &&
Objects.equals(this.descriptionURL, that.descriptionURL) &&
Objects.equals(this.extension, that.extension) &&
Objects.equals(this.keywordList, that.keywordList) &&
Objects.equals(this.logoURL, that.logoURL) &&
Objects.equals(this.title, that.title) &&
Objects.equals(this.window, that.window);
}
return false;
}
@Override
public int hashCode() {
int hash = 7;
hash = 41 * hash + (this.window != null ? this.window.hashCode() : 0);
hash = 41 * hash + (this.boundingBox != null ? this.boundingBox.hashCode() : 0);
hash = 41 * hash + (this.title != null ? this.title.hashCode() : 0);
hash = 41 * hash + (this.keywordList != null ? this.keywordList.hashCode() : 0);
hash = 41 * hash + (this._abstract != null ? this._abstract.hashCode() : 0);
hash = 41 * hash + (this.logoURL != null ? this.logoURL.hashCode() : 0);
hash = 41 * hash + (this.descriptionURL != null ? this.descriptionURL.hashCode() : 0);
hash = 41 * hash + (this.contactInformation != null ? this.contactInformation.hashCode() : 0);
hash = 41 * hash + (this.extension != null ? this.extension.hashCode() : 0);
return hash;
}
@Override
public String toString() {
StringBuilder s = new StringBuilder("[GeneralType]\n");
if (title != null) {
s.append("title:").append(title).append('\n');
}
if (boundingBox != null) {
s.append("boundingBox:").append(boundingBox).append('\n');
}
if (window != null) {
s.append("window:").append(window).append('\n');
}
if (keywordList != null) {
s.append("keywordList:").append(keywordList).append('\n');
}
if (_abstract != null) {
s.append("_abstract:").append(_abstract).append('\n');
}
if (logoURL != null) {
s.append("logoURL:").append(logoURL).append('\n');
}
if (descriptionURL != null) {
s.append("descriptionURL:").append(descriptionURL).append('\n');
}
if (contactInformation != null) {
s.append("contactInformation:").append(contactInformation).append('\n');
}
if (extension != null) {
s.append("extension:").append(extension).append('\n');
}
return s.toString();
}
}