/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2012, 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.v321; 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.XmlType; /** * <p>Java class for TopoComplexType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="TopoComplexType"> * <complexContent> * <extension base="{http://www.opengis.net/gml/3.2}AbstractTopologyType"> * <sequence> * <element ref="{http://www.opengis.net/gml/3.2}maximalComplex"/> * <element ref="{http://www.opengis.net/gml/3.2}superComplex" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.opengis.net/gml/3.2}subComplex" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.opengis.net/gml/3.2}topoPrimitiveMember" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.opengis.net/gml/3.2}topoPrimitiveMembers" minOccurs="0"/> * </sequence> * <attGroup ref="{http://www.opengis.net/gml/3.2}AggregationAttributeGroup"/> * <attribute name="isMaximal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TopoComplexType", propOrder = { "maximalComplex", "superComplex", "subComplex", "topoPrimitiveMember", "topoPrimitiveMembers" }) public class TopoComplexType extends AbstractTopologyType { @XmlElement(required = true) private TopoComplexPropertyType maximalComplex; private List<TopoComplexPropertyType> superComplex; private List<TopoComplexPropertyType> subComplex; private List<TopoPrimitiveMemberType> topoPrimitiveMember; private TopoPrimitiveArrayAssociationType topoPrimitiveMembers; @XmlAttribute private java.lang.Boolean isMaximal; @XmlAttribute private AggregationType aggregationType; /** * Gets the value of the maximalComplex property. * * @return * possible object is * {@link TopoComplexPropertyType } * */ public TopoComplexPropertyType getMaximalComplex() { return maximalComplex; } /** * Sets the value of the maximalComplex property. * * @param value * allowed object is * {@link TopoComplexPropertyType } * */ public void setMaximalComplex(TopoComplexPropertyType value) { this.maximalComplex = value; } /** * Gets the value of the superComplex 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 superComplex property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSuperComplex().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TopoComplexPropertyType } * * */ public List<TopoComplexPropertyType> getSuperComplex() { if (superComplex == null) { superComplex = new ArrayList<TopoComplexPropertyType>(); } return this.superComplex; } /** * Gets the value of the subComplex 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 subComplex property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSubComplex().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TopoComplexPropertyType } * * */ public List<TopoComplexPropertyType> getSubComplex() { if (subComplex == null) { subComplex = new ArrayList<TopoComplexPropertyType>(); } return this.subComplex; } /** * Gets the value of the topoPrimitiveMember 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 topoPrimitiveMember property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTopoPrimitiveMember().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TopoPrimitiveMemberType } * * */ public List<TopoPrimitiveMemberType> getTopoPrimitiveMember() { if (topoPrimitiveMember == null) { topoPrimitiveMember = new ArrayList<TopoPrimitiveMemberType>(); } return this.topoPrimitiveMember; } /** * Gets the value of the topoPrimitiveMembers property. * * @return * possible object is * {@link TopoPrimitiveArrayAssociationType } * */ public TopoPrimitiveArrayAssociationType getTopoPrimitiveMembers() { return topoPrimitiveMembers; } /** * Sets the value of the topoPrimitiveMembers property. * * @param value * allowed object is * {@link TopoPrimitiveArrayAssociationType } * */ public void setTopoPrimitiveMembers(TopoPrimitiveArrayAssociationType value) { this.topoPrimitiveMembers = value; } /** * Gets the value of the isMaximal property. * * @return * possible object is * {@link java.lang.Boolean } * */ public boolean isIsMaximal() { if (isMaximal == null) { return false; } else { return isMaximal; } } /** * Sets the value of the isMaximal property. * * @param value * allowed object is * {@link java.lang.Boolean } * */ public void setIsMaximal(java.lang.Boolean value) { this.isMaximal = value; } /** * Gets the value of the aggregationType property. * * @return * possible object is * {@link AggregationType } * */ public AggregationType getAggregationType() { return aggregationType; } /** * Sets the value of the aggregationType property. * * @param value * allowed object is * {@link AggregationType } * */ public void setAggregationType(AggregationType value) { this.aggregationType = value; } }