001/**
002 * Copyright 2014 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.contentanalysis;
017
018import javax.xml.bind.annotation.XmlAccessType;
019import javax.xml.bind.annotation.XmlAccessorType;
020import javax.xml.bind.annotation.XmlElement;
021import javax.xml.bind.annotation.XmlRootElement;
022
023/**
024 * Class for representing a response received from a back-end to a previously submitted analysis task.
025 * 
026 * <h3>XML Example</h3>
027 * 
028 * {@doc.restlet service="[service.tut.pori.contentanalysis.reference.Definitions#SERVICE_CA_REFERENCE_EXAMPLE]" method="[service.tut.pori.contentanalysis.Definitions#ELEMENT_TASK_RESULTS]" type="GET" query="" body_uri=""}
029 * 
030 * @see service.tut.pori.contentanalysis.PhotoList
031 */
032@XmlRootElement(name=Definitions.ELEMENT_TASK_RESULTS)
033@XmlAccessorType(XmlAccessType.NONE)
034public class PhotoTaskResponse extends TaskResponse{
035  @XmlElement(name = Definitions.ELEMENT_PHOTOLIST)
036  private PhotoList _photoList = null;
037  
038  /**
039   * @return the response photo list
040   * @see #setPhotoList(PhotoList)
041   */
042  public PhotoList getPhotoList() {
043    return _photoList;
044  }
045  
046  /**
047   * @param photoList the data to set
048   * @see #getPhotoList()
049   */
050  public void setPhotoList(PhotoList photoList) {
051    _photoList = photoList;
052  }
053}