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

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/CPToneDetPkg/CPToneDetDtEvt.java

http://mobicents.googlecode.com/
Java | 67 lines | 21 code | 11 blank | 35 comment | 0 complexity | 8147cc4427a51d07c906017814151a32 MD5 | raw file
 1package javax.megaco.pkg.CPToneDetPkg;
 2
 3import javax.megaco.pkg.MegacoPkg;
 4import javax.megaco.pkg.PkgEventItem;
 5
 6/**
 7 * The MEGACO Dial Tone event class extends the PkgEventItem class. This is a
 8 * final class. This class defines Dial Tone event of MEGACO Call Progress Tone
 9 * Detect package. The methods shall define that this event item belongs to the
10 * Call Progress Tone Detect package.
11 */
12public final class CPToneDetDtEvt extends PkgEventItem {
13
14	/**
15	 * Identifies Dial tone event of the MEGACO Call Progress Tone Detect
16	 * Package. Its value shall be set equal to 0x0030.
17	 */
18	public static final int CP_TONE_DET_DT_EVENT = 0x0030;
19
20	private CPToneDetPkg itemsPackageId = new CPToneDetPkg();
21
22	/**
23	 * Constructs a Jain MEGACO Object representing event Item of the MEGACO
24	 * Package for event Dial Tone and Package as Call Progress Tone Detect.
25	 */
26	public CPToneDetDtEvt() {
27		super();
28		super.itemId = CP_TONE_DET_DT_EVENT;
29		super.eventId = CP_TONE_DET_DT_EVENT;
30	}
31
32	/**
33	 * This method is used to get the event identifier from an Event Item
34	 * object. The implementations of this method in this class returns the id
35	 * of the Dial Tone event of Call Progress Tone Detect Package.
36	 * 
37	 * @return It shall return {@link CP_TONE_DET_DT_EVENT}.
38	 */
39	public int getEventId() {
40
41		return super.eventId;
42	}
43
44	/**
45	 * This method is used to get the item identifier from an Item object. The
46	 * implementations of this method in this class returns the id of the Dial
47	 * Tone event of Call Progress Tone Detect Package.
48	 * 
49	 * @return It shall return {@link CP_TONE_DET_DT_EVENT}.
50	 */
51	public int getItemId() {
52
53		return super.itemId;
54	}
55
56	/**
57	 * This method gets the package id to which the item belongs. Since the Dial
58	 * Tone event is defined in the Call Progress Tone Detect Package of MEGACO
59	 * protocol, this method returns the CPToneDetPkg class.
60	 * 
61	 * @return
62	 */
63	public MegacoPkg getItemsPackageId() {
64		return itemsPackageId;
65	}
66
67}