net.sf.jradius.packet.attribute.value
Class IntegerValue

java.lang.Object
  extended by net.sf.jradius.packet.attribute.value.AttributeValue
      extended by net.sf.jradius.packet.attribute.value.IntegerValue
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DateValue, NamedValue

public class IntegerValue
extends AttributeValue

The Integer attribute value. Uses a Long as the underlying object since this is an unsigned long in RADIUS.

Author:
David Bird
See Also:
Serialized Form

Field Summary
protected  java.lang.Long integerValue
           
 
Constructor Summary
IntegerValue()
           
IntegerValue(int i)
           
IntegerValue(java.lang.Integer i)
           
IntegerValue(long l)
           
IntegerValue(java.lang.Long l)
           
 
Method Summary
 void getBytes(java.io.OutputStream out)
           
 int getLength()
           
 java.lang.Long getValue()
           
 java.io.Serializable getValueObject()
           
static boolean isValid(long l)
           
 void setLong(java.lang.Long l)
           
 void setValue(byte[] b)
           
 void setValue(long l)
           
 void setValue(java.lang.String v)
           
 void setValueObject(java.io.Serializable o)
           
 java.lang.String toString()
           
 java.lang.String toXMLString()
           
 
Methods inherited from class net.sf.jradius.packet.attribute.value.AttributeValue
getBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

integerValue

protected java.lang.Long integerValue
Constructor Detail

IntegerValue

public IntegerValue()

IntegerValue

public IntegerValue(java.lang.Long l)

IntegerValue

public IntegerValue(java.lang.Integer i)

IntegerValue

public IntegerValue(int i)

IntegerValue

public IntegerValue(long l)
Method Detail

getLength

public int getLength()
Overrides:
getLength in class AttributeValue

getBytes

public void getBytes(java.io.OutputStream out)
              throws java.io.IOException
Specified by:
getBytes in class AttributeValue
Throws:
java.io.IOException

setValue

public void setValue(byte[] b)
Specified by:
setValue in class AttributeValue

setValue

public void setValue(java.lang.String v)
Overrides:
setValue in class AttributeValue

getValue

public java.lang.Long getValue()

toString

public java.lang.String toString()
Overrides:
toString in class AttributeValue

toXMLString

public java.lang.String toXMLString()
Overrides:
toXMLString in class AttributeValue

setLong

public void setLong(java.lang.Long l)

getValueObject

public java.io.Serializable getValueObject()
Overrides:
getValueObject in class AttributeValue

setValueObject

public void setValueObject(java.io.Serializable o)
Specified by:
setValueObject in class AttributeValue

setValue

public void setValue(long l)
              throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

isValid

public static boolean isValid(long l)


Copyright © 2006 The JRadius Project, All Rights Reserved.