/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2010, 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.wmts.xml.v100; 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.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.ows.xml.v110.CodeType; import org.geotoolkit.ows.xml.v110.DescriptionType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <extension base="{http://www.opengis.net/ows/1.1}DescriptionType"> * <sequence> * <element ref="{http://www.opengis.net/ows/1.1}Identifier"/> * <element ref="{http://www.opengis.net/wmts/1.0}Theme" maxOccurs="unbounded" minOccurs="0"/> * <element name="LayerRef" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "identifier", "theme", "layerRef" }) @XmlRootElement(name = "Theme") public class Theme extends DescriptionType { @XmlElement(name = "Identifier", namespace = "http://www.opengis.net/ows/1.1", required = true) private CodeType identifier; @XmlElement(name = "Theme") private List<Theme> theme; @XmlElement(name = "LayerRef") @XmlSchemaType(name = "anyURI") private List<String> layerRef; /** * Name of the theme * * @return * possible object is * {@link CodeType } * */ public CodeType getIdentifier() { return identifier; } /** * Name of the theme * * @param value * allowed object is * {@link CodeType } * */ public void setIdentifier(final CodeType value) { this.identifier = value; } /** * Metadata describing the child (subordinate) themes of this theme where layers available on this server can be classified * Gets the value of the theme property. */ public List<Theme> getTheme() { if (theme == null) { theme = new ArrayList<Theme>(); } return this.theme; } /** * Gets the value of the layerRef property. * */ public List<String> getLayerRef() { if (layerRef == null) { layerRef = new ArrayList<String>(); } return this.layerRef; } }