PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/DTMFGenPkg/DTMFGenD3Signal.java

http://mobicents.googlecode.com/
Java | 60 lines | 22 code | 11 blank | 27 comment | 0 complexity | 219a939a60676eaedef809a26f103d18 MD5 | raw file
 1package javax.megaco.pkg.DTMFGenPkg;
 2
 3import javax.megaco.pkg.MegacoPkg;
 4import javax.megaco.pkg.PkgSignalItem;
 5
 6/**
 7 * The MEGACO DTMF character 3 signal class extends the PkgSignalItem class.
 8 * This is a final class. This class defines DTMF character 3 signal of MEGACO
 9 * DTMF package. The methods shall define that this signal item belongs to the
10 * DTMF package.
11 */
12public final class DTMFGenD3Signal extends PkgSignalItem {
13
14	/**
15	 * Identifies signal id DTMF character 3 of the MEGACO DTMF Generator
16	 * Package. Its value shall be set equal to 0x0013.
17	 */
18	public static final int DTMF_GEN_D3_SIGNAL = 0x0013;
19
20	private DTMFGenPkg itemsPkgId = new DTMFGenPkg();
21
22	/**
23	 * Constructs a MEGACO signal item with signal id as DTMF character 3.
24	 */
25	public DTMFGenD3Signal() {
26		super();
27		super.signalId = DTMF_GEN_D3_SIGNAL;
28		super.itemId = DTMF_GEN_D3_SIGNAL;
29	}
30
31	/**
32	 * This method is used to get the signal identifier from an Signal Item
33	 * object. The implementations of this method in this class returns the id
34	 * of the DTMF character 3 signal of DTMF Generator Package.
35	 * 
36	 * @return It shall return {@link DTMF_GEN_D3_SIGNAL}.
37	 */
38	public int getItemId() {
39
40		return super.itemId;
41	}
42
43	/**
44	 * This method is used to get the item identifier from an Item object. The
45	 * implementations of this method in this class returns the id of the DTMF
46	 * character 3 signal of DTMF Generator Package.
47	 * 
48	 * @return It shall return {@link DTMF_GEN_D3_SIGNAL}.
49	 */
50	public int getSignalId() {
51		return super.signalId;
52	}
53
54	@Override
55	public MegacoPkg getItemsPkgId() {
56
57		return itemsPkgId;
58	}
59
60}