Package org.jabylon.properties
Enum Severity
- java.lang.Object
-
- java.lang.Enum<Severity>
-
- org.jabylon.properties.Severity
-
- All Implemented Interfaces:
Serializable,Comparable<Severity>,org.eclipse.emf.common.util.Enumerator
public enum Severity extends Enum<Severity> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Severity', and utility methods for working with them.- See Also:
PropertiesPackage.getSeverity()
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_VALUEThe 'ERROR' literal value.static intINFO_VALUEThe 'INFO' literal value.static List<Severity>VALUESA public read-only list of all the 'Severity' enumerators.static intWARNING_VALUEThe 'WARNING' literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Severityget(int value)Returns the 'Severity' literal with the specified integer value.static Severityget(String literal)Returns the 'Severity' literal with the specified literal value.static SeveritygetByName(String name)Returns the 'Severity' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static SeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static Severity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFO
public static final Severity INFO
The 'INFO' literal object.- See Also:
INFO_VALUE
-
WARNING
public static final Severity WARNING
The 'WARNING' literal object.- See Also:
WARNING_VALUE
-
ERROR
public static final Severity ERROR
The 'ERROR' literal object.- See Also:
ERROR_VALUE
-
-
Field Detail
-
INFO_VALUE
public static final int INFO_VALUE
The 'INFO' literal value.If the meaning of 'INFO' literal object isn't clear, there really should be more of a description here...
- See Also:
INFO, Constant Field Values
-
WARNING_VALUE
public static final int WARNING_VALUE
The 'WARNING' literal value.If the meaning of 'WARNING' literal object isn't clear, there really should be more of a description here...
- See Also:
WARNING, Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
The 'ERROR' literal value.If the meaning of 'ERROR' literal object isn't clear, there really should be more of a description here...
- See Also:
ERROR, Constant Field Values
-
-
Method Detail
-
values
public static Severity[] 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 (Severity c : Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Severity valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public static Severity get(String literal)
Returns the 'Severity' literal with the specified literal value.
-
getByName
public static Severity getByName(String name)
Returns the 'Severity' literal with the specified name.
-
get
public static Severity get(int value)
Returns the 'Severity' literal with the specified integer value.
-
getValue
public int getValue()
- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
-