net.jradius.dictionary.vsa_starent.Attr_SNQoSClassInteractive1PHB 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_starent;
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: SN-QoS-Class-Interactive-1-PHB
* Attribute Type: 26
* Vendor Id: 8164
* VSA Type: 114
* Value Type: NamedValue
* Possible Values:
*
* - Best-Effort (0)
*
- Pass-Through (1)
*
- AF11 (10)
*
- AF12 (12)
*
- AF13 (14)
*
- AF21 (18)
*
- AF22 (20)
*
- AF23 (22)
*
- AF31 (26)
*
- AF32 (28)
*
- AF33 (30)
*
- AF41 (34)
*
- AF42 (36)
*
- AF43 (38)
*
- EF (46)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_SNQoSClassInteractive1PHB extends VSAttribute
{
public static final String NAME = "SN-QoS-Class-Interactive-1-PHB";
public static final int VENDOR_ID = 8164;
public static final int VSA_TYPE = 114;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long BestEffort = new Long(0L);
public static final Long PassThrough = new Long(1L);
public static final Long AF11 = new Long(10L);
public static final Long AF12 = new Long(12L);
public static final Long AF13 = new Long(14L);
public static final Long AF21 = new Long(18L);
public static final Long AF22 = new Long(20L);
public static final Long AF23 = new Long(22L);
public static final Long AF31 = new Long(26L);
public static final Long AF32 = new Long(28L);
public static final Long AF33 = new Long(30L);
public static final Long AF41 = new Long(34L);
public static final Long AF42 = new Long(36L);
public static final Long AF43 = new Long(38L);
public static final Long EF = new Long(46L);
protected class NamedValueMap implements NamedValue.NamedValueMap
{
public Long[] knownValues = { new Long(0L),new Long(1L),new Long(10L),new Long(12L),new Long(14L),new Long(18L),new Long(20L),new Long(22L),new Long(26L),new Long(28L),new Long(30L),new Long(34L),new Long(36L),new Long(38L),new Long(46L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("Best-Effort".equals(name)) return new Long(0L);
if ("Pass-Through".equals(name)) return new Long(1L);
if ("AF11".equals(name)) return new Long(10L);
if ("AF12".equals(name)) return new Long(12L);
if ("AF13".equals(name)) return new Long(14L);
if ("AF21".equals(name)) return new Long(18L);
if ("AF22".equals(name)) return new Long(20L);
if ("AF23".equals(name)) return new Long(22L);
if ("AF31".equals(name)) return new Long(26L);
if ("AF32".equals(name)) return new Long(28L);
if ("AF33".equals(name)) return new Long(30L);
if ("AF41".equals(name)) return new Long(34L);
if ("AF42".equals(name)) return new Long(36L);
if ("AF43".equals(name)) return new Long(38L);
if ("EF".equals(name)) return new Long(46L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(0L).equals(value)) return "Best-Effort";
if (new Long(1L).equals(value)) return "Pass-Through";
if (new Long(10L).equals(value)) return "AF11";
if (new Long(12L).equals(value)) return "AF12";
if (new Long(14L).equals(value)) return "AF13";
if (new Long(18L).equals(value)) return "AF21";
if (new Long(20L).equals(value)) return "AF22";
if (new Long(22L).equals(value)) return "AF23";
if (new Long(26L).equals(value)) return "AF31";
if (new Long(28L).equals(value)) return "AF32";
if (new Long(30L).equals(value)) return "AF33";
if (new Long(34L).equals(value)) return "AF41";
if (new Long(36L).equals(value)) return "AF42";
if (new Long(38L).equals(value)) return "AF43";
if (new Long(46L).equals(value)) return "EF";
return null;
}
};
public static NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 26;
vendorId = VENDOR_ID;
vsaAttributeType = VSA_TYPE;
setFormat("2,2");
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_SNQoSClassInteractive1PHB()
{
setup();
}
public Attr_SNQoSClassInteractive1PHB(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy