org.tinyradius.attribute
Class StringAttribute

java.lang.Object
  extended by org.tinyradius.attribute.RadiusAttribute
      extended by org.tinyradius.attribute.StringAttribute

public class StringAttribute
extends RadiusAttribute

This class represents a Radius attribute which only contains a string.


Constructor Summary
StringAttribute()
          Constructs an empty string attribute.
StringAttribute(int type, java.lang.String value)
          Constructs a string attribute with the given value.
 
Method Summary
 java.lang.String getAttributeValue()
          Returns the string value of this attribute.
 void setAttributeValue(java.lang.String value)
          Sets the string value of this attribute.
 
Methods inherited from class org.tinyradius.attribute.RadiusAttribute
createRadiusAttribute, createRadiusAttribute, createRadiusAttribute, getAttributeData, getAttributeType, getAttributeTypeObject, getDictionary, getVendorId, readAttribute, setAttributeData, setAttributeType, setDictionary, setVendorId, toString, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringAttribute

public StringAttribute()
Constructs an empty string attribute.


StringAttribute

public StringAttribute(int type,
                       java.lang.String value)
Constructs a string attribute with the given value.

Parameters:
type - attribute type
value - attribute value
Method Detail

getAttributeValue

public java.lang.String getAttributeValue()
Returns the string value of this attribute.

Overrides:
getAttributeValue in class RadiusAttribute
Returns:
a string

setAttributeValue

public void setAttributeValue(java.lang.String value)
Sets the string value of this attribute.

Overrides:
setAttributeValue in class RadiusAttribute
Parameters:
value - string, not null