/* * 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.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * A CompositeSurface is defined by a set of orientable surfaces. A composite surface is geometry type with all the geometric properties of a (primitive) surface. Essentially, a composite surface is a collection of surfaces that join in pairs on common boundary curves and which, when considered as a whole, form a single surface. * * <p>Java class for CompositeSurfaceType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CompositeSurfaceType"> * <complexContent> * <extension base="{http://www.opengis.net/gml}AbstractSurfaceType"> * <sequence> * <element ref="{http://www.opengis.net/gml}surfaceMember" maxOccurs="unbounded"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CompositeSurfaceType", propOrder = { "surfaceMember" }) public class CompositeSurfaceType extends AbstractSurfaceType { @XmlElement(required = true) protected List<SurfacePropertyType> surfaceMember; /** * This element references or contains one surface in the composite surface. The surfaces are contiguous. * NOTE: This definition allows for a nested structure, i.e. a CompositeSurface may use, for example, another CompositeSurface as a member.Gets the value of the surfaceMember property. */ public List<SurfacePropertyType> getSurfaceMember() { if (surfaceMember == null) { surfaceMember = new ArrayList<SurfacePropertyType>(); } return this.surfaceMember; } @Override public String toString() { StringBuilder sb = new StringBuilder(super.toString()); if (surfaceMember != null && surfaceMember.size() > 0) { sb.append("surfaceMember:\n"); for (SurfacePropertyType entry : surfaceMember) { sb.append(entry).append("\n"); } } return sb.toString(); } }