/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/DTMFGenPkg/DTMFGenDBSignal.java
http://mobicents.googlecode.com/ · Java · 60 lines · 22 code · 11 blank · 27 comment · 0 complexity · 46123ef6ae6fcee9f10d9619e7a0db96 MD5 · raw file
- package javax.megaco.pkg.DTMFGenPkg;
-
- import javax.megaco.pkg.MegacoPkg;
- import javax.megaco.pkg.PkgSignalItem;
-
- /**
- * The MEGACO DTMF character B signal class extends the PkgSignalItem class.
- * This is a final class. This class defines DTMF character B signal of MEGACO
- * DTMF package. The methods shall define that this signal item belongs to the
- * DTMF package.
- */
- public final class DTMFGenDBSignal extends PkgSignalItem {
-
- /**
- * Identifies signal id DTMF character B of the MEGACO DTMF Generator
- * Package. Its value shall be set equal to 0x001b.
- */
- public static final int DTMF_GEN_DB_SIGNAL = 0x001b;
-
- private DTMFGenPkg itemsPkgId = new DTMFGenPkg();
-
- /**
- * Constructs a MEGACO signal item with signal id as DTMF character B.
- */
- public DTMFGenDBSignal() {
- super();
- super.signalId = DTMF_GEN_DB_SIGNAL;
- super.itemId = DTMF_GEN_DB_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 B signal of DTMF Generator Package.
- *
- * @return It shall return {@link DTMF_GEN_DB_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 B signal of DTMF Generator Package.
- *
- * @return It shall return {@link DTMF_GEN_DB_SIGNAL}.
- */
- public int getSignalId() {
- return super.signalId;
- }
-
- @Override
- public MegacoPkg getItemsPkgId() {
-
- return itemsPkgId;
- }
-
- }