/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2011, 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.ols.xml.v121; 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; import org.geotoolkit.gml.xml.v311.AbstractGeometricPrimitiveType; import org.geotoolkit.gml.xml.v311.CurveInterpolationType; import org.geotoolkit.gml.xml.v311.DirectPositionType; import org.geotoolkit.gml.xml.v311.LengthType; /** * This is Modeled after GML ArcByCenterPointType. * * <p>Java class for CircularArcType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CircularArcType"> * <complexContent> * <extension base="{http://www.opengis.net/gml}AbstractGeometricPrimitiveType"> * <sequence> * <element ref="{http://www.opengis.net/gml}pos"/> * <element name="innerRadius" type="{http://www.opengis.net/gml}LengthType"/> * <element name="outerRadius" type="{http://www.opengis.net/gml}LengthType"/> * <element name="startAngle" type="{http://www.opengis.net/gml}AngleType"/> * <element name="endAngle" type="{http://www.opengis.net/gml}AngleType"/> * </sequence> * <attribute name="interpolation" type="{http://www.opengis.net/gml}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 = "CircularArcType", propOrder = { "pos", "innerRadius", "outerRadius", "startAngle", "endAngle" }) public class CircularArcType extends AbstractGeometricPrimitiveType { @XmlElement(namespace = "http://www.opengis.net/gml", required = true) private DirectPositionType pos; @XmlElement(required = true) private LengthType innerRadius; @XmlElement(required = true) private LengthType outerRadius; @XmlElement(required = true) private AngleType startAngle; @XmlElement(required = true) 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 innerRadius property. * * @return * possible object is * {@link LengthType } * */ public LengthType getInnerRadius() { return innerRadius; } /** * Sets the value of the innerRadius property. * * @param value * allowed object is * {@link LengthType } * */ public void setInnerRadius(LengthType value) { this.innerRadius = value; } /** * Gets the value of the outerRadius property. * * @return * possible object is * {@link LengthType } * */ public LengthType getOuterRadius() { return outerRadius; } /** * Sets the value of the outerRadius property. * * @param value * allowed object is * {@link LengthType } * */ public void setOuterRadius(LengthType value) { this.outerRadius = 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; } }