/*
* 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 javax.xml.datatype.Duration;
import org.geotoolkit.gml.xml.v311.EnvelopeType;
/**
* Defines a single turn-by-turn route instruction or advisory formatted for presentation.
*
* <p>Java class for RouteInstructionType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RouteInstructionType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Instruction" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="distance" type="{http://www.opengis.net/xls}DistanceType"/>
* <element name="RouteInstructionGeometry" type="{http://www.opengis.net/xls}RouteGeometryType" minOccurs="0"/>
* <element name="BoundingBox" type="{http://www.opengis.net/gml}EnvelopeType" minOccurs="0"/>
* </sequence>
* <attribute name="duration" use="required" type="{http://www.w3.org/2001/XMLSchema}duration" />
* <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RouteInstructionType", propOrder = {
"instruction",
"distance",
"routeInstructionGeometry",
"boundingBox"
})
public class RouteInstructionType {
@XmlElement(name = "Instruction", required = true)
private String instruction;
@XmlElement(required = true)
private DistanceType distance;
@XmlElement(name = "RouteInstructionGeometry")
private RouteGeometryType routeInstructionGeometry;
@XmlElement(name = "BoundingBox")
private EnvelopeType boundingBox;
@XmlAttribute(required = true)
private Duration duration;
@XmlAttribute
private String description;
/**
* Gets the value of the instruction property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInstruction() {
return instruction;
}
/**
* Sets the value of the instruction property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstruction(String value) {
this.instruction = value;
}
/**
* Gets the value of the distance property.
*
* @return
* possible object is
* {@link DistanceType }
*
*/
public DistanceType getDistance() {
return distance;
}
/**
* Sets the value of the distance property.
*
* @param value
* allowed object is
* {@link DistanceType }
*
*/
public void setDistance(DistanceType value) {
this.distance = value;
}
/**
* Gets the value of the routeInstructionGeometry property.
*
* @return
* possible object is
* {@link RouteGeometryType }
*
*/
public RouteGeometryType getRouteInstructionGeometry() {
return routeInstructionGeometry;
}
/**
* Sets the value of the routeInstructionGeometry property.
*
* @param value
* allowed object is
* {@link RouteGeometryType }
*
*/
public void setRouteInstructionGeometry(RouteGeometryType value) {
this.routeInstructionGeometry = value;
}
/**
* Gets the value of the boundingBox property.
*
* @return
* possible object is
* {@link EnvelopeType }
*
*/
public EnvelopeType getBoundingBox() {
return boundingBox;
}
/**
* Sets the value of the boundingBox property.
*
* @param value
* allowed object is
* {@link EnvelopeType }
*
*/
public void setBoundingBox(EnvelopeType value) {
this.boundingBox = value;
}
/**
* Gets the value of the duration property.
*
* @return
* possible object is
* {@link Duration }
*
*/
public Duration getDuration() {
return duration;
}
/**
* Sets the value of the duration property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setDuration(Duration value) {
this.duration = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
}