All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jradius.dictionary.vsa_ascend.Attr_AscendIPTOSPrecedence Maven / Gradle / Ivy

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_ascend;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy