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.twitterjazz.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 service.tut.pori.contentanalysis.AbstractTaskDetails; 024import service.tut.pori.contentanalysis.Definitions; 025import service.tut.pori.contentanalysis.PhotoList; 026import service.tut.pori.twitterjazz.TwitterProfile; 027 028/** 029 * A minimal implementation of TwitterTaskDetails used for testing 030 */ 031@XmlRootElement(name=Definitions.ELEMENT_TASK_DETAILS) 032@XmlAccessorType(XmlAccessType.NONE) 033public final class TwitterTaskDetails extends AbstractTaskDetails { 034 @XmlElement(name=Definitions.ELEMENT_PHOTOLIST) 035 private PhotoList _photoList = null; 036 @XmlElement(name = service.tut.pori.twitterjazz.Definitions.ELEMENT_TWITTER_PROFILE) 037 private TwitterProfile _profile = null; 038 039 /** 040 * @return the profile 041 */ 042 public TwitterProfile getProfile() { 043 return _profile; 044 } 045 046 /** 047 * @param profile the profile to set 048 */ 049 public void setProfile(TwitterProfile profile) { 050 _profile = profile; 051 } 052 053 /** 054 * @return the photoList 055 */ 056 public PhotoList getPhotoList() { 057 return _photoList; 058 } 059 060 /** 061 * @param photoList the photoList to set 062 */ 063 public void setPhotoList(PhotoList photoList) { 064 _photoList = photoList; 065 } 066 067 @Override 068 public TaskParameters getTaskParameters() { 069 return null; 070 } 071 072 @Override 073 public void setTaskParameters(TaskParameters parameters) { 074 throw new UnsupportedOperationException("Method not supported."); 075 } 076}