001/**
002 * Copyright 2015 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.fileservice.reference;
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
023import core.tut.pori.http.ResponseData;
024import service.tut.pori.fileservice.Definitions;
025import service.tut.pori.fileservice.File;
026import service.tut.pori.fileservice.FileList;
027
028/**
029 * Response example
030 * 
031 */
032@XmlRootElement(name=service.tut.pori.fileservice.reference.Definitions.ELEMENT_EXAMPLE)
033@XmlAccessorType(XmlAccessType.NONE)
034public class Example extends ResponseData {
035  @XmlElement(name=Definitions.ELEMENT_FILE)
036  private File _file = null;
037  @XmlElement(name=Definitions.ELEMENT_FILELIST)
038  private FileList _fileList = null;
039
040  /**
041   * @return the fileList
042   */
043  public FileList getFileList() {
044    return _fileList;
045  }
046
047  /**
048   * @param fileList the fileList to set
049   */
050  public void setFileList(FileList fileList) {
051    _fileList = fileList;
052  }
053
054  /**
055   * @return the file
056   */
057  public File getFile() {
058    return _file;
059  }
060
061  /**
062   * @param file the file to set
063   */
064  public void setFile(File file) {
065    _file = file;
066  }
067}