/*
* 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.kml.xml.v220;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for NetworkLinkControlType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="NetworkLinkControlType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.opengis.net/kml/2.2}minRefreshPeriod" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}maxSessionLength" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}cookie" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}message" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}linkName" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}linkDescription" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}linkSnippet" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}expires" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}Update" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}AbstractViewGroup" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}NetworkLinkControlSimpleExtensionGroup" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.opengis.net/kml/2.2}NetworkLinkControlObjectExtensionGroup" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetworkLinkControlType", propOrder = {
"minRefreshPeriod",
"maxSessionLength",
"cookie",
"message",
"linkName",
"linkDescription",
"linkSnippet",
"expires",
"update",
"abstractViewGroup",
"networkLinkControlSimpleExtensionGroup",
"networkLinkControlObjectExtensionGroup"
})
public class NetworkLinkControlType {
@XmlElement(defaultValue = "0.0")
private Double minRefreshPeriod;
@XmlElement(defaultValue = "-1.0")
private Double maxSessionLength;
private String cookie;
private String message;
private String linkName;
private String linkDescription;
private SnippetType linkSnippet;
private String expires;
@XmlElement(name = "Update")
private UpdateType update;
@XmlElementRef(name = "AbstractViewGroup", namespace = "http://www.opengis.net/kml/2.2", type = JAXBElement.class)
private JAXBElement<? extends AbstractViewType> abstractViewGroup;
@XmlElement(name = "NetworkLinkControlSimpleExtensionGroup")
@XmlSchemaType(name = "anySimpleType")
private List<Object> networkLinkControlSimpleExtensionGroup;
@XmlElement(name = "NetworkLinkControlObjectExtensionGroup")
private List<AbstractObjectType> networkLinkControlObjectExtensionGroup;
/**
* Gets the value of the minRefreshPeriod property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMinRefreshPeriod() {
return minRefreshPeriod;
}
/**
* Sets the value of the minRefreshPeriod property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMinRefreshPeriod(final Double value) {
this.minRefreshPeriod = value;
}
/**
* Gets the value of the maxSessionLength property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMaxSessionLength() {
return maxSessionLength;
}
/**
* Sets the value of the maxSessionLength property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMaxSessionLength(final Double value) {
this.maxSessionLength = value;
}
/**
* Gets the value of the cookie property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCookie() {
return cookie;
}
/**
* Sets the value of the cookie property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCookie(final String value) {
this.cookie = value;
}
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessage(final String value) {
this.message = value;
}
/**
* Gets the value of the linkName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLinkName() {
return linkName;
}
/**
* Sets the value of the linkName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLinkName(final String value) {
this.linkName = value;
}
/**
* Gets the value of the linkDescription property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLinkDescription() {
return linkDescription;
}
/**
* Sets the value of the linkDescription property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLinkDescription(final String value) {
this.linkDescription = value;
}
/**
* Gets the value of the linkSnippet property.
*
* @return
* possible object is
* {@link SnippetType }
*
*/
public SnippetType getLinkSnippet() {
return linkSnippet;
}
/**
* Sets the value of the linkSnippet property.
*
* @param value
* allowed object is
* {@link SnippetType }
*
*/
public void setLinkSnippet(final SnippetType value) {
this.linkSnippet = value;
}
/**
* Gets the value of the expires property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExpires() {
return expires;
}
/**
* Sets the value of the expires property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExpires(final String value) {
this.expires = value;
}
/**
* Gets the value of the update property.
*
* @return
* possible object is
* {@link UpdateType }
*
*/
public UpdateType getUpdate() {
return update;
}
/**
* Sets the value of the update property.
*
* @param value
* allowed object is
* {@link UpdateType }
*
*/
public void setUpdate(final UpdateType value) {
this.update = value;
}
/**
* Gets the value of the abstractViewGroup property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link LookAtType }{@code >}
* {@link JAXBElement }{@code <}{@link CameraType }{@code >}
* {@link JAXBElement }{@code <}{@link AbstractViewType }{@code >}
*
*/
public JAXBElement<? extends AbstractViewType> getAbstractViewGroup() {
return abstractViewGroup;
}
/**
* Sets the value of the abstractViewGroup property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link LookAtType }{@code >}
* {@link JAXBElement }{@code <}{@link CameraType }{@code >}
* {@link JAXBElement }{@code <}{@link AbstractViewType }{@code >}
*
*/
public void setAbstractViewGroup(final JAXBElement<? extends AbstractViewType> value) {
this.abstractViewGroup = ((JAXBElement<? extends AbstractViewType> ) value);
}
/**
* Gets the value of the networkLinkControlSimpleExtensionGroup 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 networkLinkControlSimpleExtensionGroup property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNetworkLinkControlSimpleExtensionGroup().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List<Object> getNetworkLinkControlSimpleExtensionGroup() {
if (networkLinkControlSimpleExtensionGroup == null) {
networkLinkControlSimpleExtensionGroup = new ArrayList<Object>();
}
return this.networkLinkControlSimpleExtensionGroup;
}
/**
* Gets the value of the networkLinkControlObjectExtensionGroup 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 networkLinkControlObjectExtensionGroup property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNetworkLinkControlObjectExtensionGroup().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AbstractObjectType }
*
*
*/
public List<AbstractObjectType> getNetworkLinkControlObjectExtensionGroup() {
if (networkLinkControlObjectExtensionGroup == null) {
networkLinkControlObjectExtensionGroup = new ArrayList<AbstractObjectType>();
}
return this.networkLinkControlObjectExtensionGroup;
}
}