/* * 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 ModelType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ModelType"> * <complexContent> * <extension base="{http://www.opengis.net/kml/2.2}AbstractGeometryType"> * <sequence> * <element ref="{http://www.opengis.net/kml/2.2}altitudeModeGroup" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}Location" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}Orientation" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}Scale" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}Link" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}ResourceMap" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}ModelSimpleExtensionGroup" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.opengis.net/kml/2.2}ModelObjectExtensionGroup" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ModelType", propOrder = { "altitudeModeGroup", "location", "orientation", "scale", "link", "resourceMap", "modelSimpleExtensionGroup", "modelObjectExtensionGroup" }) public class ModelType extends AbstractGeometryType { @XmlElementRef(name = "altitudeModeGroup", namespace = "http://www.opengis.net/kml/2.2", type = JAXBElement.class) private JAXBElement<?> altitudeModeGroup; @XmlElement(name = "Location") private LocationType location; @XmlElement(name = "Orientation") private OrientationType orientation; @XmlElement(name = "Scale") private ScaleType scale; @XmlElement(name = "Link") private LinkType link; @XmlElement(name = "ResourceMap") private ResourceMapType resourceMap; @XmlElement(name = "ModelSimpleExtensionGroup") @XmlSchemaType(name = "anySimpleType") private List<Object> modelSimpleExtensionGroup; @XmlElement(name = "ModelObjectExtensionGroup") private List<AbstractObjectType> modelObjectExtensionGroup; /** * Gets the value of the altitudeModeGroup property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link Object }{@code >} * {@link JAXBElement }{@code <}{@link AltitudeModeEnumType }{@code >} * */ public JAXBElement<?> getAltitudeModeGroup() { return altitudeModeGroup; } /** * Sets the value of the altitudeModeGroup property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link Object }{@code >} * {@link JAXBElement }{@code <}{@link AltitudeModeEnumType }{@code >} * */ public void setAltitudeModeGroup(final JAXBElement<?> value) { this.altitudeModeGroup = ((JAXBElement<?> ) value); } /** * Gets the value of the location property. * * @return * possible object is * {@link LocationType } * */ public LocationType getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link LocationType } * */ public void setLocation(final LocationType value) { this.location = value; } /** * Gets the value of the orientation property. * * @return * possible object is * {@link OrientationType } * */ public OrientationType getOrientation() { return orientation; } /** * Sets the value of the orientation property. * * @param value * allowed object is * {@link OrientationType } * */ public void setOrientation(final OrientationType value) { this.orientation = value; } /** * Gets the value of the scale property. * * @return * possible object is * {@link ScaleType } * */ public ScaleType getScale() { return scale; } /** * Sets the value of the scale property. * * @param value * allowed object is * {@link ScaleType } * */ public void setScale(final ScaleType value) { this.scale = value; } /** * Gets the value of the link property. * * @return * possible object is * {@link LinkType } * */ public LinkType getLink() { return link; } /** * Sets the value of the link property. * * @param value * allowed object is * {@link LinkType } * */ public void setLink(final LinkType value) { this.link = value; } /** * Gets the value of the resourceMap property. * * @return * possible object is * {@link ResourceMapType } * */ public ResourceMapType getResourceMap() { return resourceMap; } /** * Sets the value of the resourceMap property. * * @param value * allowed object is * {@link ResourceMapType } * */ public void setResourceMap(final ResourceMapType value) { this.resourceMap = value; } /** * Gets the value of the modelSimpleExtensionGroup 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 modelSimpleExtensionGroup property. * * <p> * For example, to add a new item, do as follows: * <pre> * getModelSimpleExtensionGroup().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List<Object> getModelSimpleExtensionGroup() { if (modelSimpleExtensionGroup == null) { modelSimpleExtensionGroup = new ArrayList<Object>(); } return this.modelSimpleExtensionGroup; } /** * Gets the value of the modelObjectExtensionGroup 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 modelObjectExtensionGroup property. * * <p> * For example, to add a new item, do as follows: * <pre> * getModelObjectExtensionGroup().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AbstractObjectType } * * */ public List<AbstractObjectType> getModelObjectExtensionGroup() { if (modelObjectExtensionGroup == null) { modelObjectExtensionGroup = new ArrayList<AbstractObjectType>(); } return this.modelObjectExtensionGroup; } }