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