net.jradius.dictionary.Attr_VMPSErrorCode 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;
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: VMPS-Error-Code
* Attribute Type: 0x2b01 (FreeRADIUS Internal Attribute)
* Value Type: NamedValue
* Possible Values:
*
* - VMPS-No-Error (0)
*
- VMPS-Wrong-Version (1)
*
- VMPS-Insufficient-Resources (2)
*
- VMPS-Deny (3)
*
- VMPS-Shutdown (4)
*
- VMPS-Wrong-Mgmt-Domain (5)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_VMPSErrorCode extends RadiusAttribute
{
public static final String NAME = "VMPS-Error-Code";
public static final long TYPE = 0x2b01;
public static final long serialVersionUID = TYPE;
public static final Long VMPSNoError = new Long(0L);
public static final Long VMPSWrongVersion = new Long(1L);
public static final Long VMPSInsufficientResources = new Long(2L);
public static final Long VMPSDeny = new Long(3L);
public static final Long VMPSShutdown = new Long(4L);
public static final Long VMPSWrongMgmtDomain = new Long(5L);
@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)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("VMPS-No-Error".equals(name)) return new Long(0L);
if ("VMPS-Wrong-Version".equals(name)) return new Long(1L);
if ("VMPS-Insufficient-Resources".equals(name)) return new Long(2L);
if ("VMPS-Deny".equals(name)) return new Long(3L);
if ("VMPS-Shutdown".equals(name)) return new Long(4L);
if ("VMPS-Wrong-Mgmt-Domain".equals(name)) return new Long(5L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(0L).equals(value)) return "VMPS-No-Error";
if (new Long(1L).equals(value)) return "VMPS-Wrong-Version";
if (new Long(2L).equals(value)) return "VMPS-Insufficient-Resources";
if (new Long(3L).equals(value)) return "VMPS-Deny";
if (new Long(4L).equals(value)) return "VMPS-Shutdown";
if (new Long(5L).equals(value)) return "VMPS-Wrong-Mgmt-Domain";
return null;
}
};
public static transient NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 0x2b01;
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_VMPSErrorCode()
{
setup();
}
public Attr_VMPSErrorCode(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy