net.jradius.dictionary.vsa_redback.Attr_DSLTransmissionSystem Maven / Gradle / Ivy
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Fri, 29 Nov 2013 13:24:47 +0000
package net.jradius.dictionary.vsa_redback;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import net.jradius.packet.attribute.VSAttribute;
import net.jradius.packet.attribute.value.NamedValue;
/**
* Attribute Name: DSL-Transmission-System
* Attribute Type: 26
* Vendor Id: 2352
* VSA Type: 182
* Value Type: NamedValue
* Possible Values:
*
* - ADSL1 (1)
*
- ADSL2 (2)
*
- ADSL2+ (3)
*
- VDSL1 (4)
*
- VDSL2 (5)
*
- SDSL (6)
*
- UNKNOWN (7)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_DSLTransmissionSystem extends VSAttribute
{
public static final String NAME = "DSL-Transmission-System";
public static final int VENDOR_ID = 2352;
public static final int VSA_TYPE = 182;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long ADSL1 = new Long(1L);
public static final Long ADSL2 = new Long(2L);
public static final Long VDSL1 = new Long(4L);
public static final Long VDSL2 = new Long(5L);
public static final Long SDSL = new Long(6L);
public static final Long UNKNOWN = new Long(7L);
protected class NamedValueMap implements NamedValue.NamedValueMap
{
public Long[] knownValues = { new Long(1L),new Long(2L),new Long(3L),new Long(4L),new Long(5L),new Long(6L),new Long(7L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("ADSL1".equals(name)) return new Long(1L);
if ("ADSL2".equals(name)) return new Long(2L);
if ("ADSL2+".equals(name)) return new Long(3L);
if ("VDSL1".equals(name)) return new Long(4L);
if ("VDSL2".equals(name)) return new Long(5L);
if ("SDSL".equals(name)) return new Long(6L);
if ("UNKNOWN".equals(name)) return new Long(7L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(1L).equals(value)) return "ADSL1";
if (new Long(2L).equals(value)) return "ADSL2";
if (new Long(3L).equals(value)) return "ADSL2+";
if (new Long(4L).equals(value)) return "VDSL1";
if (new Long(5L).equals(value)) return "VDSL2";
if (new Long(6L).equals(value)) return "SDSL";
if (new Long(7L).equals(value)) return "UNKNOWN";
return null;
}
};
public static NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 26;
vendorId = VENDOR_ID;
vsaAttributeType = VSA_TYPE;
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_DSLTransmissionSystem()
{
setup();
}
public Attr_DSLTransmissionSystem(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy