PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://mobicents.googlecode.com/
Java | 60 lines | 22 code | 11 blank | 27 comment | 0 complexity | aaaff341ea863a2e95700972d80dbaba 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 A signal class extends the PkgSignalItem class.
 8 * This is a final class. This class defines DTMF character A signal of MEGACO
 9 * DTMF package. The methods shall define that this signal item belongs to the
10 * DTMF package.
11 */
12public final class DTMFGenDASignal extends PkgSignalItem {
13
14	/**
15	 * Identifies signal id DTMF character A of the MEGACO DTMF Generator
16	 * Package. Its value shall be set equal to 0x001a.
17	 */
18	public static final int DTMF_GEN_DA_SIGNAL = 0x001a;
19
20	private DTMFGenPkg itemsPkgId = new DTMFGenPkg();
21
22	/**
23	 * Constructs a MEGACO signal item with signal id as DTMF character A.
24	 */
25	public DTMFGenDASignal() {
26		super();
27		super.signalId = DTMF_GEN_DA_SIGNAL;
28		super.itemId = DTMF_GEN_DA_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 A signal of DTMF Generator Package.
35	 * 
36	 * @return It shall return {@link DTMF_GEN_DA_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 A signal of DTMF Generator Package.
47	 * 
48	 * @return It shall return {@link DTMF_GEN_DA_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}