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

net.jradius.dictionary.vsa_acc.Attr_AccClearingLocation 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_acc;

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: Acc-Clearing-Location
* Attribute Type: 26
* Vendor Id: 5
* VSA Type: 16
* Value Type: NamedValue
* Possible Values:
*
    *
  • Local-or-remote-user (0) *
  • Prvte-ntwork-serving-local-user (1) *
  • Pblic-ntwork-serving-local-user (2) *
  • Transit-network (3) *
  • Prvte-ntwork-serv-remote-user (4) *
  • Pblic-ntwork-serv-remote-user (5) *
  • International-network (6) *
  • Beyond-interworking-point (10) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_AccClearingLocation extends VSAttribute { public static final String NAME = "Acc-Clearing-Location"; public static final int VENDOR_ID = 5; public static final int VSA_TYPE = 16; public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE; public static final long serialVersionUID = TYPE; public static final Long Localorremoteuser = new Long(0L); public static final Long Prvtentworkservinglocaluser = new Long(1L); public static final Long Pblicntworkservinglocaluser = new Long(2L); public static final Long Transitnetwork = new Long(3L); public static final Long Prvtentworkservremoteuser = new Long(4L); public static final Long Pblicntworkservremoteuser = new Long(5L); public static final Long Internationalnetwork = new Long(6L); public static final Long Beyondinterworkingpoint = new Long(10L); protected class NamedValueMap implements NamedValue.NamedValueMap { 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(10L)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("Local-or-remote-user".equals(name)) return new Long(0L); if ("Prvte-ntwork-serving-local-user".equals(name)) return new Long(1L); if ("Pblic-ntwork-serving-local-user".equals(name)) return new Long(2L); if ("Transit-network".equals(name)) return new Long(3L); if ("Prvte-ntwork-serv-remote-user".equals(name)) return new Long(4L); if ("Pblic-ntwork-serv-remote-user".equals(name)) return new Long(5L); if ("International-network".equals(name)) return new Long(6L); if ("Beyond-interworking-point".equals(name)) return new Long(10L); return null; } public String getNamedValue(Long value) { if (new Long(0L).equals(value)) return "Local-or-remote-user"; if (new Long(1L).equals(value)) return "Prvte-ntwork-serving-local-user"; if (new Long(2L).equals(value)) return "Pblic-ntwork-serving-local-user"; if (new Long(3L).equals(value)) return "Transit-network"; if (new Long(4L).equals(value)) return "Prvte-ntwork-serv-remote-user"; if (new Long(5L).equals(value)) return "Pblic-ntwork-serv-remote-user"; if (new Long(6L).equals(value)) return "International-network"; if (new Long(10L).equals(value)) return "Beyond-interworking-point"; 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_AccClearingLocation() { setup(); } public Attr_AccClearingLocation(Serializable o) { setup(o); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy