/* * 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.gml.xml.v311; 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.XmlElementRef; import javax.xml.bind.annotation.XmlType; /** * A base for derived types used to specify complex types containing an array of objects, by unspecified UML association - either composition or aggregation. An instance of this type contains elements representing Objects. * * Ideally this type would be derived by extension of AssociationType. * However, this leads to a non-deterministic content model, since both the base and the extension have minOccurs="0", and is thus prohibited in XML Schema. * * <p>Java class for ArrayAssociationType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ArrayAssociationType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://www.opengis.net/gml}_Object" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ArrayAssociationType", propOrder = { "object" }) public class ArrayAssociationType { @XmlElementRef(name = "AbstractObject", namespace = "http://www.opengis.net/gml", type = JAXBElement.class) protected List<JAXBElement<?>> object; /** * Gets the value of the object 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 object property. * * <p> * For example, to add a new item, do as follows: * <pre> * getObject().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link OrientableSurfaceType }{@code >} * {@link JAXBElement }{@code <}{@link DictionaryType }{@code >} * {@link JAXBElement }{@code <}{@link BaseUnitType }{@code >} * {@link JAXBElement }{@code <}{@link MultiSurfaceType }{@code >} * {@link JAXBElement }{@code <}{@link TimePeriodType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractGeometricAggregateType }{@code >} * {@link JAXBElement }{@code <}{@link SolidType }{@code >} * {@link JAXBElement }{@code <}{@link UnitDefinitionType }{@code >} * {@link JAXBElement }{@code <}{@link MultiPointType }{@code >} * {@link JAXBElement }{@code <}{@link SurfaceType }{@code >} * {@link JAXBElement }{@code <}{@link DefinitionProxyType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractMetaDataType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractCurveType }{@code >} * {@link JAXBElement }{@code <}{@link DefinitionType }{@code >} * {@link JAXBElement }{@code <}{@link LinearRingType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractTimeComplexType }{@code >} * {@link JAXBElement }{@code <}{@link PolyhedralSurfaceType }{@code >} * {@link JAXBElement }{@code <}{@link CurveType }{@code >} * {@link JAXBElement }{@code <}{@link BagType }{@code >} * {@link JAXBElement }{@code <}{@link FeatureCollectionType }{@code >} * {@link JAXBElement }{@code <}{@link GenericMetaDataType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractGMLType }{@code >} * {@link JAXBElement }{@code <}{@link Object }{@code >} * {@link JAXBElement }{@code <}{@link RingType }{@code >} * {@link JAXBElement }{@code <}{@link MultiCurveType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractGeometricPrimitiveType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractTimeObjectType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractSolidType }{@code >} * {@link JAXBElement }{@code <}{@link ArrayType }{@code >} * {@link JAXBElement }{@code <}{@link TinType }{@code >} * {@link JAXBElement }{@code <}{@link MultiGeometryType }{@code >} * {@link JAXBElement }{@code <}{@link LineStringType }{@code >} * {@link JAXBElement }{@code <}{@link ConventionalUnitType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractRingType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractSurfaceType }{@code >} * {@link JAXBElement }{@code <}{@link TriangulatedSurfaceType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractFeatureCollectionType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractFeatureType }{@code >} * {@link JAXBElement }{@code <}{@link MultiLineStringType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractGeometryType }{@code >} * {@link JAXBElement }{@code <}{@link OrientableCurveType }{@code >} * {@link JAXBElement }{@code <}{@link MultiPolygonType }{@code >} * {@link JAXBElement }{@code <}{@link PolygonType }{@code >} * {@link JAXBElement }{@code <}{@link DictionaryType }{@code >} * {@link JAXBElement }{@code <}{@link TimeInstantType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractTimePrimitiveType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractTimeGeometricPrimitiveType }{@code >} * {@link JAXBElement }{@code <}{@link PointType }{@code >} * {@link JAXBElement }{@code <}{@link MultiSolidType }{@code >} * {@link JAXBElement }{@code <}{@link DerivedUnitType }{@code >} * * */ public List<JAXBElement<?>> getObject() { if (object == null) { object = new ArrayList<JAXBElement<?>>(); } return this.object; } }