/* * 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 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.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ArcByCenterPointType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ArcByCenterPointType"> * <complexContent> * <extension base="{http://www.opengis.net/gml/3.2}AbstractCurveSegmentType"> * <sequence> * <choice> * <choice> * <element ref="{http://www.opengis.net/gml/3.2}pos"/> * <element ref="{http://www.opengis.net/gml/3.2}pointProperty"/> * <element ref="{http://www.opengis.net/gml/3.2}pointRep"/> * </choice> * <element ref="{http://www.opengis.net/gml/3.2}posList"/> * <element ref="{http://www.opengis.net/gml/3.2}coordinates"/> * </choice> * <element name="radius" type="{http://www.opengis.net/gml/3.2}LengthType"/> * <element name="startAngle" type="{http://www.opengis.net/gml/3.2}AngleType" minOccurs="0"/> * <element name="endAngle" type="{http://www.opengis.net/gml/3.2}AngleType" minOccurs="0"/> * </sequence> * <attribute name="interpolation" type="{http://www.opengis.net/gml/3.2}CurveInterpolationType" fixed="circularArcCenterPointWithRadius" /> * <attribute name="numArc" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" fixed="1" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ArcByCenterPointType", propOrder = { "pos", "pointProperty", "pointRep", "posList", "coordinates", "radius", "startAngle", "endAngle" }) @XmlSeeAlso({ CircleByCenterPointType.class }) public class ArcByCenterPointType extends AbstractCurveSegmentType { private DirectPositionType pos; private PointPropertyType pointProperty; private PointPropertyType pointRep; private DirectPositionListType posList; private CoordinatesType coordinates; @XmlElement(required = true) private LengthType radius; private AngleType startAngle; private AngleType endAngle; @XmlAttribute private CurveInterpolationType interpolation; @XmlAttribute(required = true) private Integer numArc; /** * Gets the value of the pos property. * * @return * possible object is * {@link DirectPositionType } * */ public DirectPositionType getPos() { return pos; } /** * Sets the value of the pos property. * * @param value * allowed object is * {@link DirectPositionType } * */ public void setPos(DirectPositionType value) { this.pos = value; } /** * Gets the value of the pointProperty property. * * @return * possible object is * {@link PointPropertyType } * */ public PointPropertyType getPointProperty() { return pointProperty; } /** * Sets the value of the pointProperty property. * * @param value * allowed object is * {@link PointPropertyType } * */ public void setPointProperty(PointPropertyType value) { this.pointProperty = value; } /** * Gets the value of the pointRep property. * * @return * possible object is * {@link PointPropertyType } * */ public PointPropertyType getPointRep() { return pointRep; } /** * Sets the value of the pointRep property. * * @param value * allowed object is * {@link PointPropertyType } * */ public void setPointRep(PointPropertyType value) { this.pointRep = value; } /** * Gets the value of the posList property. * * @return * possible object is * {@link DirectPositionListType } * */ public DirectPositionListType getPosList() { return posList; } /** * Sets the value of the posList property. * * @param value * allowed object is * {@link DirectPositionListType } * */ public void setPosList(DirectPositionListType value) { this.posList = value; } /** * Gets the value of the coordinates property. * * @return * possible object is * {@link CoordinatesType } * */ public CoordinatesType getCoordinates() { return coordinates; } /** * Sets the value of the coordinates property. * * @param value * allowed object is * {@link CoordinatesType } * */ public void setCoordinates(CoordinatesType value) { this.coordinates = value; } /** * Gets the value of the radius property. * * @return * possible object is * {@link LengthType } * */ public LengthType getRadius() { return radius; } /** * Sets the value of the radius property. * * @param value * allowed object is * {@link LengthType } * */ public void setRadius(LengthType value) { this.radius = value; } /** * Gets the value of the startAngle property. * * @return * possible object is * {@link AngleType } * */ public AngleType getStartAngle() { return startAngle; } /** * Sets the value of the startAngle property. * * @param value * allowed object is * {@link AngleType } * */ public void setStartAngle(AngleType value) { this.startAngle = value; } /** * Gets the value of the endAngle property. * * @return * possible object is * {@link AngleType } * */ public AngleType getEndAngle() { return endAngle; } /** * Sets the value of the endAngle property. * * @param value * allowed object is * {@link AngleType } * */ public void setEndAngle(AngleType value) { this.endAngle = value; } /** * Gets the value of the interpolation property. * * @return * possible object is * {@link CurveInterpolationType } * */ public CurveInterpolationType getInterpolation() { if (interpolation == null) { return CurveInterpolationType.CIRCULAR_ARC_CENTER_POINT_WITH_RADIUS; } else { return interpolation; } } /** * Sets the value of the interpolation property. * * @param value * allowed object is * {@link CurveInterpolationType } * */ public void setInterpolation(CurveInterpolationType value) { this.interpolation = value; } /** * Gets the value of the numArc property. * * @return * possible object is * {@link Integer } * */ public Integer getNumArc() { if (numArc == null) { return new Integer("1"); } else { return numArc; } } /** * Sets the value of the numArc property. * * @param value * allowed object is * {@link Integer } * */ public void setNumArc(Integer value) { this.numArc = value; } }