net.jradius.dictionary.Attr_ARAPZoneAccess Maven / Gradle / Ivy
// 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;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import net.jradius.packet.attribute.RadiusAttribute;
import net.jradius.packet.attribute.value.NamedValue;
/**
* Attribute Name: ARAP-Zone-Access
* Attribute Type: 72
* Value Type: NamedValue
* Possible Values:
*
* - Default-Zone (1)
*
- Zone-Filter-Inclusive (2)
*
- Zone-Filter-Exclusive (4)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_ARAPZoneAccess extends RadiusAttribute
{
public static final String NAME = "ARAP-Zone-Access";
public static final long TYPE = 72;
public static final long serialVersionUID = TYPE;
public static final Long DefaultZone = new Long(1L);
public static final Long ZoneFilterInclusive = new Long(2L);
public static final Long ZoneFilterExclusive = new Long(4L);
@SuppressWarnings("serial")
protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable
{
public Long[] knownValues = { new Long(1L),new Long(2L),new Long(4L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("Default-Zone".equals(name)) return new Long(1L);
if ("Zone-Filter-Inclusive".equals(name)) return new Long(2L);
if ("Zone-Filter-Exclusive".equals(name)) return new Long(4L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(1L).equals(value)) return "Default-Zone";
if (new Long(2L).equals(value)) return "Zone-Filter-Inclusive";
if (new Long(4L).equals(value)) return "Zone-Filter-Exclusive";
return null;
}
};
public static transient NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 72;
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_ARAPZoneAccess()
{
setup();
}
public Attr_ARAPZoneAccess(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy