org.jsmpp.bean
Class OptionalParameter.Short

java.lang.Object
  extended by org.jsmpp.bean.OptionalParameter
      extended by org.jsmpp.bean.OptionalParameter.Short
Enclosing class:
OptionalParameter

public static class OptionalParameter.Short
extends OptionalParameter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jsmpp.bean.OptionalParameter
OptionalParameter.Byte, OptionalParameter.COctetString, OptionalParameter.Int, OptionalParameter.Null, OptionalParameter.OctetString, OptionalParameter.Short, OptionalParameter.Tag
 
Field Summary
 
Fields inherited from class org.jsmpp.bean.OptionalParameter
tag
 
Constructor Summary
OptionalParameter.Short(OptionalParameter.Tag tag, short value)
           
OptionalParameter.Short(short tag, byte[] value)
          Construct the Short optional parameters with specified bytes value.
OptionalParameter.Short(short tag, short value)
          Construct the Short optional parameter with specified short value.
 
Method Summary
 short getValue()
           
protected  byte[] serializeValue()
           
 
Methods inherited from class org.jsmpp.bean.OptionalParameter
equals, hashCode, serialize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionalParameter.Short

public OptionalParameter.Short(short tag,
                               short value)
Construct the Short optional parameter with specified short value.

Parameters:
tag -
value -

OptionalParameter.Short

public OptionalParameter.Short(OptionalParameter.Tag tag,
                               short value)

OptionalParameter.Short

public OptionalParameter.Short(short tag,
                               byte[] value)
Construct the Short optional parameters with specified bytes value. Only 2 bytes will be use as value.

Parameters:
tag - is the tag.
value - is the value.
Method Detail

getValue

public short getValue()

serializeValue

protected byte[] serializeValue()
Specified by:
serializeValue in class OptionalParameter