/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
- package javax.megaco.message;
- import java.io.Serializable;
- /**
- * The Jain MEGACO descriptor class is an abstract class. This is to be derived
- * by the individual descriptor classes.
- *
- * @author amit bhayani
- *
- */
- public abstract class Descriptor implements Serializable {
- protected int descriptorId = -1;
- /**
- * Constructs a Jain Megaco abstract class.
- */
- public Descriptor() {
- }
- /**
- * The method is an abstract method and can be used to get the descriptor
- * identifier. By overriding this method the derived class would return a
- * hardcoded value that would correspond to its descriptor identity.
- *
- * @return descriptorId - The integer corresponding to the descriptor id.
- * The values shall be defined in DescriptorType
- */
- public abstract int getDescriptorId();
- @Override
- public String toString() {
- //return getClass().getSimpleName();
- return super.toString();
- }
- }