net.jradius.dictionary.vsa_shiva.Attr_ShivaLinkProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jradius-abfab-dictionary Show documentation
Show all versions of jradius-abfab-dictionary Show documentation
JRadius ABFAB Dictionary: FreeRADIUS 2.2.0 + RFC-to-be-7055
The newest version!
// 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_shiva;
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: Shiva-Link-Protocol
* Attribute Type: 26
* Vendor Id: 166
* VSA Type: 97
* Value Type: NamedValue
* Possible Values:
*
* - HDLC (1)
*
- ARAV1 (2)
*
- ARAV2 (3)
*
- SHELL (4)
*
- AALAP (5)
*
- SLIP (6)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_ShivaLinkProtocol extends VSAttribute
{
public static final String NAME = "Shiva-Link-Protocol";
public static final int VENDOR_ID = 166;
public static final int VSA_TYPE = 97;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long HDLC = new Long(1L);
public static final Long ARAV1 = new Long(2L);
public static final Long ARAV2 = new Long(3L);
public static final Long SHELL = new Long(4L);
public static final Long AALAP = new Long(5L);
public static final Long SLIP = new Long(6L);
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)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("HDLC".equals(name)) return new Long(1L);
if ("ARAV1".equals(name)) return new Long(2L);
if ("ARAV2".equals(name)) return new Long(3L);
if ("SHELL".equals(name)) return new Long(4L);
if ("AALAP".equals(name)) return new Long(5L);
if ("SLIP".equals(name)) return new Long(6L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(1L).equals(value)) return "HDLC";
if (new Long(2L).equals(value)) return "ARAV1";
if (new Long(3L).equals(value)) return "ARAV2";
if (new Long(4L).equals(value)) return "SHELL";
if (new Long(5L).equals(value)) return "AALAP";
if (new Long(6L).equals(value)) return "SLIP";
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_ShivaLinkProtocol()
{
setup();
}
public Attr_ShivaLinkProtocol(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy