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

net.jradius.dictionary.vsa_eltex.Attr_EltexDisconnectCodeLocal 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_eltex;

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: Eltex-Disconnect-Code-Local
* Attribute Type: 26
* Vendor Id: 35265
* VSA Type: 11
* Value Type: NamedValue
* Possible Values:
*
    *
  • User-Answer (1) *
  • Incomplete-Number (2) *
  • Unassigned-Number (3) *
  • Unsuccesfull-Other-Cause (4) *
  • User-Busy (5) *
  • Out-of-Order (6) *
  • No-Answer (7) *
  • Unavailable-Trunk (8) *
  • Access-Denied (9) *
  • Unavailable-Voice-Channel (10) *
  • RADIUS-Server-Unavailable (11) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_EltexDisconnectCodeLocal extends VSAttribute { public static final String NAME = "Eltex-Disconnect-Code-Local"; public static final int VENDOR_ID = 35265; public static final int VSA_TYPE = 11; public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE; public static final long serialVersionUID = TYPE; public static final Long UserAnswer = new Long(1L); public static final Long IncompleteNumber = new Long(2L); public static final Long UnassignedNumber = new Long(3L); public static final Long UnsuccesfullOtherCause = new Long(4L); public static final Long UserBusy = new Long(5L); public static final Long OutofOrder = new Long(6L); public static final Long NoAnswer = new Long(7L); public static final Long UnavailableTrunk = new Long(8L); public static final Long AccessDenied = new Long(9L); public static final Long UnavailableVoiceChannel = new Long(10L); public static final Long RADIUSServerUnavailable = new Long(11L); 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)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("User-Answer".equals(name)) return new Long(1L); if ("Incomplete-Number".equals(name)) return new Long(2L); if ("Unassigned-Number".equals(name)) return new Long(3L); if ("Unsuccesfull-Other-Cause".equals(name)) return new Long(4L); if ("User-Busy".equals(name)) return new Long(5L); if ("Out-of-Order".equals(name)) return new Long(6L); if ("No-Answer".equals(name)) return new Long(7L); if ("Unavailable-Trunk".equals(name)) return new Long(8L); if ("Access-Denied".equals(name)) return new Long(9L); if ("Unavailable-Voice-Channel".equals(name)) return new Long(10L); if ("RADIUS-Server-Unavailable".equals(name)) return new Long(11L); return null; } public String getNamedValue(Long value) { if (new Long(1L).equals(value)) return "User-Answer"; if (new Long(2L).equals(value)) return "Incomplete-Number"; if (new Long(3L).equals(value)) return "Unassigned-Number"; if (new Long(4L).equals(value)) return "Unsuccesfull-Other-Cause"; if (new Long(5L).equals(value)) return "User-Busy"; if (new Long(6L).equals(value)) return "Out-of-Order"; if (new Long(7L).equals(value)) return "No-Answer"; if (new Long(8L).equals(value)) return "Unavailable-Trunk"; if (new Long(9L).equals(value)) return "Access-Denied"; if (new Long(10L).equals(value)) return "Unavailable-Voice-Channel"; if (new Long(11L).equals(value)) return "RADIUS-Server-Unavailable"; 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_EltexDisconnectCodeLocal() { setup(); } public Attr_EltexDisconnectCodeLocal(Serializable o) { setup(o); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy