net.sf.jradius.packet.attribute.value
Class IntegerValue
java.lang.Object
net.sf.jradius.packet.attribute.value.AttributeValue
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
integerValue
protected java.lang.Long integerValue
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)
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.