//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert 
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.04 um 12:22:03 PM CET 
//

package org.onvif.ver10.schema;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;

/**
 * <p>
 * Java-Klasse f�r PresetTour complex type.
 * 
 * <p>
 * Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
 * 
 * <pre>
 * <complexType name="PresetTour">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Name" type="{http://www.onvif.org/ver10/schema}Name" minOccurs="0"/>
 *         <element name="Status" type="{http://www.onvif.org/ver10/schema}PTZPresetTourStatus"/>
 *         <element name="AutoStart" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="StartingCondition" type="{http://www.onvif.org/ver10/schema}PTZPresetTourStartingCondition"/>
 *         <element name="TourSpot" type="{http://www.onvif.org/ver10/schema}PTZPresetTourSpot" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="Extension" type="{http://www.onvif.org/ver10/schema}PTZPresetTourExtension" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="token" type="{http://www.onvif.org/ver10/schema}ReferenceToken" />
 *       <anyAttribute processContents='lax'/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PresetTour", propOrder = { "name", "status", "autoStart", "startingCondition", "tourSpot", "extension" })
public class PresetTour {

	@XmlElement(name = "Name")
	protected String name;
	@XmlElement(name = "Status", required = true)
	protected PTZPresetTourStatus status;
	@XmlElement(name = "AutoStart")
	protected boolean autoStart;
	@XmlElement(name = "StartingCondition", required = true)
	protected PTZPresetTourStartingCondition startingCondition;
	@XmlElement(name = "TourSpot")
	protected List<PTZPresetTourSpot> tourSpot;
	@XmlElement(name = "Extension")
	protected PTZPresetTourExtension extension;
	@XmlAttribute(name = "token")
	protected String token;
	@XmlAnyAttribute
	private Map<QName, String> otherAttributes = new HashMap<QName, String>();

	/**
	 * Ruft den Wert der name-Eigenschaft ab.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getName() {
		return name;
	}

	/**
	 * Legt den Wert der name-Eigenschaft fest.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setName(String value) {
		this.name = value;
	}

	/**
	 * Ruft den Wert der status-Eigenschaft ab.
	 * 
	 * @return possible object is {@link PTZPresetTourStatus }
	 * 
	 */
	public PTZPresetTourStatus getStatus() {
		return status;
	}

	/**
	 * Legt den Wert der status-Eigenschaft fest.
	 * 
	 * @param value
	 *            allowed object is {@link PTZPresetTourStatus }
	 * 
	 */
	public void setStatus(PTZPresetTourStatus value) {
		this.status = value;
	}

	/**
	 * Ruft den Wert der autoStart-Eigenschaft ab.
	 * 
	 */
	public boolean isAutoStart() {
		return autoStart;
	}

	/**
	 * Legt den Wert der autoStart-Eigenschaft fest.
	 * 
	 */
	public void setAutoStart(boolean value) {
		this.autoStart = value;
	}

	/**
	 * Ruft den Wert der startingCondition-Eigenschaft ab.
	 * 
	 * @return possible object is {@link PTZPresetTourStartingCondition }
	 * 
	 */
	public PTZPresetTourStartingCondition getStartingCondition() {
		return startingCondition;
	}

	/**
	 * Legt den Wert der startingCondition-Eigenschaft fest.
	 * 
	 * @param value
	 *            allowed object is {@link PTZPresetTourStartingCondition }
	 * 
	 */
	public void setStartingCondition(PTZPresetTourStartingCondition value) {
		this.startingCondition = value;
	}

	/**
	 * Gets the value of the tourSpot 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 tourSpot property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getTourSpot().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link PTZPresetTourSpot }
	 * 
	 * 
	 */
	public List<PTZPresetTourSpot> getTourSpot() {
		if (tourSpot == null) {
			tourSpot = new ArrayList<PTZPresetTourSpot>();
		}
		return this.tourSpot;
	}

	/**
	 * Ruft den Wert der extension-Eigenschaft ab.
	 * 
	 * @return possible object is {@link PTZPresetTourExtension }
	 * 
	 */
	public PTZPresetTourExtension getExtension() {
		return extension;
	}

	/**
	 * Legt den Wert der extension-Eigenschaft fest.
	 * 
	 * @param value
	 *            allowed object is {@link PTZPresetTourExtension }
	 * 
	 */
	public void setExtension(PTZPresetTourExtension value) {
		this.extension = value;
	}

	/**
	 * Ruft den Wert der token-Eigenschaft ab.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getToken() {
		return token;
	}

	/**
	 * Legt den Wert der token-Eigenschaft fest.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setToken(String value) {
		this.token = value;
	}

	/**
	 * Gets a map that contains attributes that aren't bound to any typed property on this class.
	 * 
	 * <p>
	 * the map is keyed by the name of the attribute and the value is the string value of the attribute.
	 * 
	 * the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
	 * 
	 * 
	 * @return always non-null
	 */
	public Map<QName, String> getOtherAttributes() {
		return otherAttributes;
	}

}
