/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/DTMFGenPkg/DTMFGenD0Signal.java
Java | 60 lines | 22 code | 11 blank | 27 comment | 0 complexity | 7e7b19d4c28bae53aa4b5934772e9408 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
- package javax.megaco.pkg.DTMFGenPkg;
-
- import javax.megaco.pkg.MegacoPkg;
- import javax.megaco.pkg.PkgSignalItem;
-
- /**
- * The MEGACO DTMF character 0 signal class extends the PkgSignalItem class.
- * This is a final class. This class defines DTMF character 0 signal of MEGACO
- * DTMF package. The methods shall define that this signal item belongs to the
- * DTMF package.
- */
- public final class DTMFGenD0Signal extends PkgSignalItem {
-
- /**
- * Identifies signal id DTMF character 0 of the MEGACO DTMF Generator
- * Package. Its value shall be set equal to 0x0010.
- */
- public static final int DTMF_GEN_D0_SIGNAL = 0x0010;
-
- private DTMFGenPkg itemsPkgId = new DTMFGenPkg();
-
- /**
- * Constructs a MEGACO signal item with signal id as DTMF character 0.
- */
- public DTMFGenD0Signal() {
- super();
- super.signalId = DTMF_GEN_D0_SIGNAL;
- super.itemId = DTMF_GEN_D0_SIGNAL;
- }
-
- /**
- * This method is used to get the signal identifier from an Signal Item
- * object. The implementations of this method in this class returns the id
- * of the DTMF character 0 signal of DTMF Generator Package.
- *
- * @return It shall return {@link DTMF_GEN_D0_SIGNAL}.
- */
- public int getItemId() {
-
- 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 DTMF
- * character 0 signal of DTMF Generator Package.
- *
- * @return It shall return {@link DTMF_GEN_D0_SIGNAL}.
- */
- public int getSignalId() {
- return super.signalId;
- }
-
- @Override
- public MegacoPkg getItemsPkgId() {
-
- return itemsPkgId;
- }
-
- }