/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/ToneDetPkg/ToneEtdEvent.java
http://mobicents.googlecode.com/ · Java · 65 lines · 21 code · 9 blank · 35 comment · 0 complexity · 1383f181779a46c05f019bbf01ada56b MD5 · raw file
- package javax.megaco.pkg.ToneDetPkg;
-
- import javax.megaco.pkg.MegacoPkg;
- import javax.megaco.pkg.PkgEventItem;
-
- /**
- * The MEGACO Start Tone Detect event class extends the PkgEventItem class. This
- * is a final class. This class defines Start Tone Detect event of MEGACO Tone
- * Detect package. The methods shall define that this event item belongs to the
- * Tone Detect package.
- */
- public final class ToneEtdEvent extends PkgEventItem {
- /**
- * Identifies End tone detect of the MEGACO Tone Detect Package. Its value
- * shall be set equal to 0x0002.
- */
- public static final int TONE_DET_ETD_EVENT = 0x0002;
-
- /**
- * Constructs a Jain MEGACO Object representing Event Item of the MEGACO
- * Package for Event Start Tone Detected and Package as ToneDet.
- */
- public ToneEtdEvent() {
- super();
- super.itemId = TONE_DET_ETD_EVENT;
- super.eventId = TONE_DET_ETD_EVENT;
- super.packageId = new ToneDetPkg();
-
- }
-
- /**
- * This method is used to get the event identifier from an Event Item
- * object. The implementations of this method in this class returns the id
- * of the Start Tone Detect event of Tone Detect Package.
- *
- * @return It shall {@link MEGACI_TONE_DET_ETD_EVENT}.
- */
- public int getEventId() {
-
- return super.itemId;
- }
-
- /**
- * This method is used to get the item identifier from an Item object. The
- * implementations of this method in this class returns the id of the Start
- * Tone Detect event of Tone Detect Package.
- *
- * @return It shall return {@link MEGACI_TONE_DET_ETD_EVENT}.
- */
- public int getItemId() {
-
- return super.itemId;
- }
-
- /**
- * This method gets the package to which the item belongs. Since the Start
- * Tone Detect event is defined in the Tone Detect Package of MEGACO
- * protocol, this method returns the ToneDetPkg class object .
- *
- * @return The package is {@link ToneDetPkg}.
- */
- public MegacoPkg getItemsPkgId() {
- return super.packageId;
- }
- }