/* * 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.citygml.xml.v100.building; 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.XmlType; import org.geotoolkit.citygml.xml.v100.AbstractCityObjectType; import org.geotoolkit.gml.xml.v311.GeometryPropertyType; /** * A BuildingInstallation is a part of a Building which has not the significance of a BuildingPart. * Examples are stairs, antennas, balconies or small roofs. As subclass of _CityObject, a BuildingInstallation * inherits all attributes and relations, in particular an id, names, external references, and generalization * relations. * * <p>Java class for BuildingInstallationType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="BuildingInstallationType"> * <complexContent> * <extension base="{http://www.opengis.net/citygml/1.0}AbstractCityObjectType"> * <sequence> * <element name="class" type="{http://www.opengis.net/citygml/building/1.0}BuildingInstallationClassType" minOccurs="0"/> * <element name="function" type="{http://www.opengis.net/citygml/building/1.0}BuildingInstallationFunctionType" maxOccurs="unbounded" minOccurs="0"/> * <element name="usage" type="{http://www.opengis.net/citygml/building/1.0}BuildingInstallationUsageType" maxOccurs="unbounded" minOccurs="0"/> * <element name="lod2Geometry" type="{http://www.opengis.net/gml}GeometryPropertyType" minOccurs="0"/> * <element name="lod3Geometry" type="{http://www.opengis.net/gml}GeometryPropertyType" minOccurs="0"/> * <element name="lod4Geometry" type="{http://www.opengis.net/gml}GeometryPropertyType" minOccurs="0"/> * <element ref="{http://www.opengis.net/citygml/building/1.0}_GenericApplicationPropertyOfBuildingInstallation" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BuildingInstallationType", propOrder = { "clazz", "function", "usage", "lod2Geometry", "lod3Geometry", "lod4Geometry", "genericApplicationPropertyOfBuildingInstallation" }) public class BuildingInstallationType extends AbstractCityObjectType { @XmlElement(name = "class") private String clazz; private List<String> function; private List<String> usage; private GeometryPropertyType lod2Geometry; private GeometryPropertyType lod3Geometry; private GeometryPropertyType lod4Geometry; @XmlElement(name = "_GenericApplicationPropertyOfBuildingInstallation") private List<Object> genericApplicationPropertyOfBuildingInstallation; /** * Gets the value of the clazz property. * * @return * possible object is * {@link String } * */ public String getClazz() { return clazz; } /** * Sets the value of the clazz property. * * @param value * allowed object is * {@link String } * */ public void setClazz(final String value) { this.clazz = value; } /** * Gets the value of the function 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 function property. * * <p> * For example, to add a new item, do as follows: * <pre> * getFunction().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getFunction() { if (function == null) { function = new ArrayList<String>(); } return this.function; } /** * Gets the value of the usage 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 usage property. * * <p> * For example, to add a new item, do as follows: * <pre> * getUsage().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getUsage() { if (usage == null) { usage = new ArrayList<String>(); } return this.usage; } /** * Gets the value of the lod2Geometry property. * * @return * possible object is * {@link GeometryPropertyType } * */ public GeometryPropertyType getLod2Geometry() { return lod2Geometry; } /** * Sets the value of the lod2Geometry property. * * @param value * allowed object is * {@link GeometryPropertyType } * */ public void setLod2Geometry(final GeometryPropertyType value) { this.lod2Geometry = value; } /** * Gets the value of the lod3Geometry property. * * @return * possible object is * {@link GeometryPropertyType } * */ public GeometryPropertyType getLod3Geometry() { return lod3Geometry; } /** * Sets the value of the lod3Geometry property. * * @param value * allowed object is * {@link GeometryPropertyType } * */ public void setLod3Geometry(final GeometryPropertyType value) { this.lod3Geometry = value; } /** * Gets the value of the lod4Geometry property. * * @return * possible object is * {@link GeometryPropertyType } * */ public GeometryPropertyType getLod4Geometry() { return lod4Geometry; } /** * Sets the value of the lod4Geometry property. * * @param value * allowed object is * {@link GeometryPropertyType } * */ public void setLod4Geometry(final GeometryPropertyType value) { this.lod4Geometry = value; } /** * Gets the value of the genericApplicationPropertyOfBuildingInstallation 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 genericApplicationPropertyOfBuildingInstallation property. * * <p> * For example, to add a new item, do as follows: * <pre> * getGenericApplicationPropertyOfBuildingInstallation().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List<Object> getGenericApplicationPropertyOfBuildingInstallation() { if (genericApplicationPropertyOfBuildingInstallation == null) { genericApplicationPropertyOfBuildingInstallation = new ArrayList<Object>(); } return this.genericApplicationPropertyOfBuildingInstallation; } }