Enum RootPropertiesParser.RootKeyType
- java.lang.Object
-
- java.lang.Enum<RootPropertiesParser.RootKeyType>
-
- org.eclipse.tycho.p2.impl.publisher.rootfiles.RootPropertiesParser.RootKeyType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RootPropertiesParser.RootKeyType>
- Enclosing class:
- RootPropertiesParser
static enum RootPropertiesParser.RootKeyType extends java.lang.Enum<RootPropertiesParser.RootKeyType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILE
FOLDER
LINKS
PERMISSION
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasParameter
(package private) java.lang.String
keySegment
private java.lang.String
message
-
Constructor Summary
Constructors Modifier Constructor Description private
RootKeyType(java.lang.String keySegment, boolean hasParameter, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getSyntaxErrorMessage(java.lang.String[] keySegments)
static RootPropertiesParser.RootKeyType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RootPropertiesParser.RootKeyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE
public static final RootPropertiesParser.RootKeyType FILE
-
FOLDER
public static final RootPropertiesParser.RootKeyType FOLDER
-
PERMISSION
public static final RootPropertiesParser.RootKeyType PERMISSION
-
LINKS
public static final RootPropertiesParser.RootKeyType LINKS
-
-
Method Detail
-
values
public static RootPropertiesParser.RootKeyType[] 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 (RootPropertiesParser.RootKeyType c : RootPropertiesParser.RootKeyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RootPropertiesParser.RootKeyType 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
-
getSyntaxErrorMessage
java.lang.String getSyntaxErrorMessage(java.lang.String[] keySegments)
-
-