PageRenderTime 52ms CodeModel.GetById 46ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/message/Descriptor.java

http://mobicents.googlecode.com/
Java | 39 lines | 12 code | 8 blank | 19 comment | 0 complexity | cec45581c88e5d4bca9ab88393a2b81e MD5 | raw file
 1package javax.megaco.message;
 2
 3import java.io.Serializable;
 4
 5/**
 6 * The Jain MEGACO descriptor class is an abstract class. This is to be derived
 7 * by the individual descriptor classes.
 8 * 
 9 * @author amit bhayani
10 * 
11 */
12public abstract class Descriptor implements Serializable {
13
14	protected int descriptorId = -1;
15
16	/**
17	 * Constructs a Jain Megaco abstract class.
18	 */
19	public Descriptor() {
20
21	}
22
23	/**
24	 * The method is an abstract method and can be used to get the descriptor
25	 * identifier. By overriding this method the derived class would return a
26	 * hardcoded value that would correspond to its descriptor identity.
27	 * 
28	 * @return descriptorId - The integer corresponding to the descriptor id.
29	 *         The values shall be defined in DescriptorType
30	 */
31	public abstract int getDescriptorId();
32
33	@Override
34	public String toString() {
35		//return getClass().getSimpleName();
36		return super.toString();
37	}
38
39}