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

net.jradius.dictionary.vsa_cablelabs.Attr_CableLabsAMOpaqueData Maven / Gradle / Ivy

The newest version!
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Thu, 5 Jan 2017 15:56:13 +0200

package net.jradius.dictionary.vsa_cablelabs;

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: CableLabs-AM-Opaque-Data
* Attribute Type: 26
* Vendor Id: 4491
* VSA Type: 61
* Value Type: NamedValue
* Possible Values:
*
    *
  • Reserved-0 (0) *
  • Dial-Tone (1) *
  • Stutter-Dial-Tone (2) *
  • Ring-Back-Tone (3) *
  • Reorder-Tone (4) *
  • Busy-Tone (5) *
  • Confirmation-Tone (6) *
  • Reserved-7 (7) *
  • Message-Waiting-Indicator (8) *
  • Off-hook-Warning-Tone (9) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_CableLabsAMOpaqueData extends VSAttribute { public static final String NAME = "CableLabs-AM-Opaque-Data"; public static final int VENDOR_ID = 4491; public static final int VSA_TYPE = 61; public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE; public static final long serialVersionUID = TYPE; public static final Long Reserved0 = new Long(0L); public static final Long DialTone = new Long(1L); public static final Long StutterDialTone = new Long(2L); public static final Long RingBackTone = new Long(3L); public static final Long ReorderTone = new Long(4L); public static final Long BusyTone = new Long(5L); public static final Long ConfirmationTone = new Long(6L); public static final Long Reserved7 = new Long(7L); public static final Long MessageWaitingIndicator = new Long(8L); public static final Long OffhookWarningTone = new Long(9L); @SuppressWarnings("serial") protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable { public Long[] knownValues = { new Long(0L),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)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("Reserved-0".equals(name)) return new Long(0L); if ("Dial-Tone".equals(name)) return new Long(1L); if ("Stutter-Dial-Tone".equals(name)) return new Long(2L); if ("Ring-Back-Tone".equals(name)) return new Long(3L); if ("Reorder-Tone".equals(name)) return new Long(4L); if ("Busy-Tone".equals(name)) return new Long(5L); if ("Confirmation-Tone".equals(name)) return new Long(6L); if ("Reserved-7".equals(name)) return new Long(7L); if ("Message-Waiting-Indicator".equals(name)) return new Long(8L); if ("Off-hook-Warning-Tone".equals(name)) return new Long(9L); return null; } public String getNamedValue(Long value) { if (new Long(0L).equals(value)) return "Reserved-0"; if (new Long(1L).equals(value)) return "Dial-Tone"; if (new Long(2L).equals(value)) return "Stutter-Dial-Tone"; if (new Long(3L).equals(value)) return "Ring-Back-Tone"; if (new Long(4L).equals(value)) return "Reorder-Tone"; if (new Long(5L).equals(value)) return "Busy-Tone"; if (new Long(6L).equals(value)) return "Confirmation-Tone"; if (new Long(7L).equals(value)) return "Reserved-7"; if (new Long(8L).equals(value)) return "Message-Waiting-Indicator"; if (new Long(9L).equals(value)) return "Off-hook-Warning-Tone"; return null; } }; public static transient 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_CableLabsAMOpaqueData() { setup(); } public Attr_CableLabsAMOpaqueData(Serializable o) { setup(o); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy