Package com.perforce.p4java.core
Enum IStreamComponentMapping.Type
- java.lang.Object
-
- java.lang.Enum<IStreamComponentMapping.Type>
-
- com.perforce.p4java.core.IStreamComponentMapping.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IStreamComponentMapping.Type>
- Enclosing interface:
- IStreamComponentMapping
public static enum IStreamComponentMapping.Type extends java.lang.Enum<IStreamComponentMapping.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description READONLY
WRITE_ALL
WRITE_IMPORT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IStreamComponentMapping.Type
fromString(java.lang.String typeString)
java.lang.String
getText()
static IStreamComponentMapping.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IStreamComponentMapping.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READONLY
public static final IStreamComponentMapping.Type READONLY
-
WRITE_IMPORT
public static final IStreamComponentMapping.Type WRITE_IMPORT
-
WRITE_ALL
public static final IStreamComponentMapping.Type WRITE_ALL
-
-
Method Detail
-
values
public static IStreamComponentMapping.Type[] 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 (IStreamComponentMapping.Type c : IStreamComponentMapping.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IStreamComponentMapping.Type 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
-
getText
public java.lang.String getText()
-
fromString
public static IStreamComponentMapping.Type fromString(java.lang.String typeString)
-
-