net.jradius.dictionary.vsa_alcatel.Attr_AATIPTOSPrecedence 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_alcatel;
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: AAT-IP-TOS-Precedence
* Attribute Type: 26
* Vendor Id: 3041
* VSA Type: 23
* Value Type: NamedValue
* Possible Values:
*
* - IP-TOS-Precedence-Pri-Normal (0)
*
- IP-TOS-Precedence-Pri-One (32)
*
- IP-TOS-Precedence-Pri-Two (64)
*
- IP-TOS-Precedence-Pri-Three (96)
*
- IP-TOS-Precedence-Pri-Four (128)
*
- IP-TOS-Precedence-Pri-Five (160)
*
- IP-TOS-Precedence-Pri-Six (192)
*
- IP-TOS-Precedence-Pri-Seven (224)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_AATIPTOSPrecedence extends VSAttribute
{
public static final String NAME = "AAT-IP-TOS-Precedence";
public static final int VENDOR_ID = 3041;
public static final int VSA_TYPE = 23;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long IPTOSPrecedencePriNormal = new Long(0L);
public static final Long IPTOSPrecedencePriOne = new Long(32L);
public static final Long IPTOSPrecedencePriTwo = new Long(64L);
public static final Long IPTOSPrecedencePriThree = new Long(96L);
public static final Long IPTOSPrecedencePriFour = new Long(128L);
public static final Long IPTOSPrecedencePriFive = new Long(160L);
public static final Long IPTOSPrecedencePriSix = new Long(192L);
public static final Long IPTOSPrecedencePriSeven = new Long(224L);
protected class NamedValueMap implements NamedValue.NamedValueMap
{
public Long[] knownValues = { new Long(0L),new Long(32L),new Long(64L),new Long(96L),new Long(128L),new Long(160L),new Long(192L),new Long(224L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("IP-TOS-Precedence-Pri-Normal".equals(name)) return new Long(0L);
if ("IP-TOS-Precedence-Pri-One".equals(name)) return new Long(32L);
if ("IP-TOS-Precedence-Pri-Two".equals(name)) return new Long(64L);
if ("IP-TOS-Precedence-Pri-Three".equals(name)) return new Long(96L);
if ("IP-TOS-Precedence-Pri-Four".equals(name)) return new Long(128L);
if ("IP-TOS-Precedence-Pri-Five".equals(name)) return new Long(160L);
if ("IP-TOS-Precedence-Pri-Six".equals(name)) return new Long(192L);
if ("IP-TOS-Precedence-Pri-Seven".equals(name)) return new Long(224L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(0L).equals(value)) return "IP-TOS-Precedence-Pri-Normal";
if (new Long(32L).equals(value)) return "IP-TOS-Precedence-Pri-One";
if (new Long(64L).equals(value)) return "IP-TOS-Precedence-Pri-Two";
if (new Long(96L).equals(value)) return "IP-TOS-Precedence-Pri-Three";
if (new Long(128L).equals(value)) return "IP-TOS-Precedence-Pri-Four";
if (new Long(160L).equals(value)) return "IP-TOS-Precedence-Pri-Five";
if (new Long(192L).equals(value)) return "IP-TOS-Precedence-Pri-Six";
if (new Long(224L).equals(value)) return "IP-TOS-Precedence-Pri-Seven";
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_AATIPTOSPrecedence()
{
setup();
}
public Attr_AATIPTOSPrecedence(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy