/* * 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.owc.xml.v030; import java.math.BigDecimal; 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.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.ows.xml.v100.IdentificationType; /** * <p>Java class for AbstractResourceType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="AbstractResourceType"> * <complexContent> * <extension base="{http://www.opengis.net/ows}IdentificationType"> * <sequence> * <element name="Server" type="{http://www.opengis.net/ows-context}ServerType" maxOccurs="unbounded" minOccurs="0"/> * <element name="DataURL" type="{http://www.opengis.net/ows-context}URLType" minOccurs="0"/> * <element name="MetadataURL" type="{http://www.opengis.net/ows-context}URLType" minOccurs="0"/> * <element ref="{http://www.opengis.net/sld}MinScaleDenominator" minOccurs="0"/> * <element ref="{http://www.opengis.net/sld}MaxScaleDenominator" minOccurs="0"/> * <element name="StyleList" type="{http://www.opengis.net/ows-context}StyleListType" minOccurs="0"/> * </sequence> * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> * <attribute name="group" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> * <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="0" /> * <attribute name="opacity" type="{http://www.w3.org/2001/XMLSchema}decimal" default="1" /> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AbstractResourceType", propOrder = { "server", "dataURL", "metadataURL", "minScaleDenominator", "maxScaleDenominator", "styleList" }) @XmlSeeAlso({ LayerType.class }) public abstract class AbstractResourceType extends IdentificationType { @XmlElement(name = "Server") protected List<ServerType> server; @XmlElement(name = "DataURL") protected URLType dataURL; @XmlElement(name = "MetadataURL") protected URLType metadataURL; @XmlElement(name = "MinScaleDenominator", namespace = "http://www.opengis.net/sld") protected Double minScaleDenominator; @XmlElement(name = "MaxScaleDenominator", namespace = "http://www.opengis.net/sld") protected Double maxScaleDenominator; @XmlElement(name = "StyleList") protected StyleListType styleList; @XmlAttribute @XmlSchemaType(name = "anySimpleType") protected String name; @XmlAttribute @XmlSchemaType(name = "anySimpleType") protected String id; @XmlAttribute @XmlSchemaType(name = "anySimpleType") protected String group; @XmlAttribute protected Boolean hidden; @XmlAttribute protected BigDecimal opacity; /** * Gets the value of the server 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 server property. * * <p> * For example, to add a new item, do as follows: * <pre> * getServer().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ServerType } * * */ public List<ServerType> getServer() { if (server == null) { server = new ArrayList<ServerType>(); } return this.server; } /** * Gets the value of the dataURL property. * * @return * possible object is * {@link URLType } * */ public URLType getDataURL() { return dataURL; } /** * Sets the value of the dataURL property. * * @param value * allowed object is * {@link URLType } * */ public void setDataURL(final URLType value) { this.dataURL = value; } /** * Gets the value of the metadataURL property. * * @return * possible object is * {@link URLType } * */ public URLType getMetadataURL() { return metadataURL; } /** * Sets the value of the metadataURL property. * * @param value * allowed object is * {@link URLType } * */ public void setMetadataURL(final URLType value) { this.metadataURL = value; } /** * Gets the value of the minScaleDenominator property. * * @return * possible object is * {@link Double } * */ public Double getMinScaleDenominator() { return minScaleDenominator; } /** * Sets the value of the minScaleDenominator property. * * @param value * allowed object is * {@link Double } * */ public void setMinScaleDenominator(final Double value) { this.minScaleDenominator = value; } /** * Gets the value of the maxScaleDenominator property. * * @return * possible object is * {@link Double } * */ public Double getMaxScaleDenominator() { return maxScaleDenominator; } /** * Sets the value of the maxScaleDenominator property. * * @param value * allowed object is * {@link Double } * */ public void setMaxScaleDenominator(final Double value) { this.maxScaleDenominator = value; } /** * Gets the value of the styleList property. * * @return * possible object is * {@link StyleListType } * */ public StyleListType getStyleList() { return styleList; } /** * Sets the value of the styleList property. * * @param value * allowed object is * {@link StyleListType } * */ public void setStyleList(final StyleListType value) { this.styleList = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(final String value) { this.name = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(final String value) { this.id = value; } /** * Gets the value of the group property. * * @return * possible object is * {@link String } * */ public String getGroup() { return group; } /** * Sets the value of the group property. * * @param value * allowed object is * {@link String } * */ public void setGroup(final String value) { this.group = value; } /** * Gets the value of the hidden property. * * @return * possible object is * {@link Boolean } * */ public boolean isHidden() { if (hidden == null) { return false; } else { return hidden; } } /** * Sets the value of the hidden property. * * @param value * allowed object is * {@link Boolean } * */ public void setHidden(final Boolean value) { this.hidden = value; } /** * Gets the value of the opacity property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getOpacity() { if (opacity == null) { return BigDecimal.ONE; } else { return opacity; } } /** * Sets the value of the opacity property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setOpacity(final BigDecimal value) { this.opacity = value; } }