View Javadoc

1   /***
2    * Java DAB EPG API - Serialize/Deserialize To/From POJOs to XML/Binary as per
3    * ETSI specifications TS 102 818 (XML Specification for DAB EPG) and TS 102 
4    * 371 (Transportation and Binary Encoding Specification for EPG).
5    * 
6    * Copyright (C) 2007 GCap Media PLC
7    *
8    * This library is free software; you can redistribute it and/or
9    * modify it under the terms of the GNU Lesser General Public
10   * License as published by the Free Software Foundation; either
11   * version 2.1 of the License, or (at your option) any later version.
12   *
13   * This library is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   * Lesser General Public License for more details.
17   *
18   * You should have received a copy of the GNU Lesser General Public
19   * License along with this library; if not, write to the Free Software
20   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21   */
22  package com.gcapmedia.dab.epg;
23  
24  /***
25   * Indicates a group an element belongs to.
26   */
27  public class Membership {
28  
29  	/***
30  	 * Short CRID
31  	 */
32  	private int shortId;
33  	
34  	/***
35  	 * Refers to the ID of a group element
36  	 */
37  	private Crid crid;
38  	
39  	/***
40  	 * An index for the item within the specified group. This would
41  	 * be used, for example, to specify an episode number for a 
42  	 * programme in a series.
43  	 */
44  	private int index;
45  	
46  	/***
47  	 * Create a new membership link
48  	 * @param id ID of the group element to link to
49  	 */
50  	public Membership(int shortId) {
51  		this.shortId = shortId;
52  	}
53  	
54  	/***
55  	 * @return Returns the short ID
56  	 */
57  	public int getShortId() {
58  		return shortId;
59  	}
60  	
61  	/***
62  	 * Sets the short ID
63  	 * @param shortId Short ID
64  	 */
65  	public void setShortId(int shortId) {
66  		this.shortId = shortId;
67  	}
68  	
69  	/***
70  	 * @return Returns the CRID of the group element
71  	 */
72  	public Crid getCrid() {
73  		return crid;
74  	}
75  	
76  	/***
77  	 * Sets the Content Reference ID (CRID)
78  	 * @param crid CRID
79  	 */
80  	public void setCrid(Crid crid) {
81  		this.crid = crid;
82  	}
83  	
84  	/***
85  	 * @return Returns the index of the item within the group, e.g. episode number
86  	 */
87  	public int getIndex() {
88  		return index;
89  	}
90  	
91  	/***
92  	 * Sets the 
93  	 */
94  	public void setIndex(int index) {
95  		this.index = index;
96  	}
97  }