View Javadoc
1   /******************************************************************************
2    * RestLibrarySections.java - Client facing domain object
3    * $Id: RestVideos.java,v 1.1 2015/04/30 06:34:27 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2015 - Dick Balaska
7    * 
8    * $Log: RestVideos.java,v $
9    * Revision 1.1  2015/04/30 06:34:27  dick
10   * Getting lists of VideoBase is always protected by session.
11   *
12   */
13  package com.buckosoft.BuckoVidLib.domain.rest;
14  
15  import java.util.List;
16  
17  import javax.xml.bind.annotation.XmlAccessType;
18  import javax.xml.bind.annotation.XmlAccessorType;
19  import javax.xml.bind.annotation.XmlElement;
20  import javax.xml.bind.annotation.XmlRootElement;
21  
22  /** Wrap a List<RestVideo> so that JAXB can figure out its name.
23   * @author dick
24   * @since 2015-04-30
25   */
26  @XmlRootElement(name = "Videos")
27  @XmlAccessorType(XmlAccessType.FIELD)
28  public class RestVideos {
29  	@XmlElement(name="Video")
30  	private	List<RestVideo>	videos;
31  
32  	/**
33  	 * @return the videos
34  	 */
35  	public List<RestVideo> getVideos() {
36  		return videos;
37  	}
38  
39  	/**
40  	 * @param videos the videos to set
41  	 */
42  	public void setVideos(List<RestVideo> videos) {
43  		this.videos = videos;
44  	}
45  
46  	
47  }