Package com.microej.kf.util.policy
Enum FeaturePolicySchema
- java.lang.Object
-
- java.lang.Enum<FeaturePolicySchema>
-
- com.microej.kf.util.policy.FeaturePolicySchema
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FeaturePolicySchema>
public enum FeaturePolicySchema extends java.lang.Enum<FeaturePolicySchema>
This enum represents the field names of a JSON policy file.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CPUCPU limitation field name.CRITICALITYCriticality field name.FLASHFlash limitation field name.LIMITLimitations section name.NET_DATANetwork data section name.NET_LIMITDaily data limit field name.NET_SUBNETSubnet field name.NET_UPSTREAMUpstream section name.PRIORITYPriority field name.RAMRAM limitation field name.RESOURCESResources section name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns the name of each field.static FeaturePolicySchemavalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FeaturePolicySchema[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIORITY
public static final FeaturePolicySchema PRIORITY
Priority field name.
-
CRITICALITY
public static final FeaturePolicySchema CRITICALITY
Criticality field name.
-
RESOURCES
public static final FeaturePolicySchema RESOURCES
Resources section name.
-
LIMIT
public static final FeaturePolicySchema LIMIT
Limitations section name.
-
CPU
public static final FeaturePolicySchema CPU
CPU limitation field name.
-
RAM
public static final FeaturePolicySchema RAM
RAM limitation field name.
-
FLASH
public static final FeaturePolicySchema FLASH
Flash limitation field name.
-
NET_DATA
public static final FeaturePolicySchema NET_DATA
Network data section name.
-
NET_UPSTREAM
public static final FeaturePolicySchema NET_UPSTREAM
Upstream section name.
-
NET_LIMIT
public static final FeaturePolicySchema NET_LIMIT
Daily data limit field name.
-
NET_SUBNET
public static final FeaturePolicySchema NET_SUBNET
Subnet field name.
-
-
Method Detail
-
values
public static FeaturePolicySchema[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FeaturePolicySchema c : FeaturePolicySchema.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeaturePolicySchema valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
Returns the name of each field.- Overrides:
toStringin classjava.lang.Enum<FeaturePolicySchema>- Returns:
- the string value representing a field.
-
-