net.jradius.dictionary.vsa_usr.Attr_USRSimplifiedMNPLevels 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_usr;
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: USR-Simplified-MNP-Levels
* Attribute Type: 26
* Vendor Id: 429
* VSA Type: 0x0099
* Value Type: NamedValue
* Possible Values:
*
* - none (1)
*
- mnpLevel3 (2)
*
- mnpLevel4 (3)
*
- ccittV42 (4)
*
- usRoboticsHST (5)
*
- synchronousNone (6)
*
- mnpLevel2 (7)
*
- mnp10 (8)
*
- v42Etc (9)
*
- mnp10Etc (10)
*
- lapmEtc (11)
*
- v42Etc2 (12)
*
- v42SRej (13)
*
- piafs (14)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_USRSimplifiedMNPLevels extends VSAttribute
{
public static final String NAME = "USR-Simplified-MNP-Levels";
public static final int VENDOR_ID = 429;
public static final int VSA_TYPE = 0x0099;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long none = new Long(1L);
public static final Long mnpLevel3 = new Long(2L);
public static final Long mnpLevel4 = new Long(3L);
public static final Long ccittV42 = new Long(4L);
public static final Long usRoboticsHST = new Long(5L);
public static final Long synchronousNone = new Long(6L);
public static final Long mnpLevel2 = new Long(7L);
public static final Long mnp10 = new Long(8L);
public static final Long v42Etc = new Long(9L);
public static final Long mnp10Etc = new Long(10L);
public static final Long lapmEtc = new Long(11L);
public static final Long v42Etc2 = new Long(12L);
public static final Long v42SRej = new Long(13L);
public static final Long piafs = new Long(14L);
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),new Long(8L),new Long(9L),new Long(10L),new Long(11L),new Long(12L),new Long(13L),new Long(14L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("none".equals(name)) return new Long(1L);
if ("mnpLevel3".equals(name)) return new Long(2L);
if ("mnpLevel4".equals(name)) return new Long(3L);
if ("ccittV42".equals(name)) return new Long(4L);
if ("usRoboticsHST".equals(name)) return new Long(5L);
if ("synchronousNone".equals(name)) return new Long(6L);
if ("mnpLevel2".equals(name)) return new Long(7L);
if ("mnp10".equals(name)) return new Long(8L);
if ("v42Etc".equals(name)) return new Long(9L);
if ("mnp10Etc".equals(name)) return new Long(10L);
if ("lapmEtc".equals(name)) return new Long(11L);
if ("v42Etc2".equals(name)) return new Long(12L);
if ("v42SRej".equals(name)) return new Long(13L);
if ("piafs".equals(name)) return new Long(14L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(1L).equals(value)) return "none";
if (new Long(2L).equals(value)) return "mnpLevel3";
if (new Long(3L).equals(value)) return "mnpLevel4";
if (new Long(4L).equals(value)) return "ccittV42";
if (new Long(5L).equals(value)) return "usRoboticsHST";
if (new Long(6L).equals(value)) return "synchronousNone";
if (new Long(7L).equals(value)) return "mnpLevel2";
if (new Long(8L).equals(value)) return "mnp10";
if (new Long(9L).equals(value)) return "v42Etc";
if (new Long(10L).equals(value)) return "mnp10Etc";
if (new Long(11L).equals(value)) return "lapmEtc";
if (new Long(12L).equals(value)) return "v42Etc2";
if (new Long(13L).equals(value)) return "v42SRej";
if (new Long(14L).equals(value)) return "piafs";
return null;
}
};
public static NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 26;
vendorId = VENDOR_ID;
vsaAttributeType = VSA_TYPE;
setFormat("4,0");
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_USRSimplifiedMNPLevels()
{
setup();
}
public Attr_USRSimplifiedMNPLevels(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy