com.perforce.p4java.core
Enum IStreamViewMapping.PathType

java.lang.Object
  extended by java.lang.Enum<IStreamViewMapping.PathType>
      extended by com.perforce.p4java.core.IStreamViewMapping.PathType
All Implemented Interfaces:
Serializable, Comparable<IStreamViewMapping.PathType>
Enclosing interface:
IStreamViewMapping

public static enum IStreamViewMapping.PathType
extends Enum<IStreamViewMapping.PathType>

Defines the possible path types.

share: will be included in client views and in branch views. Files in this path are accessible to workspaces, can be submitted to the stream, and can be integrated with the parent stream.

isolate: will be included in client views but not in branch views. Files in this path are accessible to workspaces, can be submitted to the stream, but are not integratable with the parent stream.

import: will be included in client views but not in branch views. Files in this path are mapped as in the parent stream's view (the default) or to (optional); they are accessible to workspaces, but can not be submitted or integrated to the stream.

exclude: will be excluded from client views and branch views. Files in this path are not accessible to workspaces, and can't be submitted or integrated to the stream.


Enum Constant Summary
EXCLUDE
           
IMPORT
           
ISOLATE
           
SHARE
           
UNKNOWN
           
 
Method Summary
static IStreamViewMapping.PathType fromString(String str)
          Return a suitable Path type as inferred from the passed-in string, which is assumed to be the string form of a Path type.
static IStreamViewMapping.PathType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IStreamViewMapping.PathType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SHARE

public static final IStreamViewMapping.PathType SHARE

ISOLATE

public static final IStreamViewMapping.PathType ISOLATE

IMPORT

public static final IStreamViewMapping.PathType IMPORT

EXCLUDE

public static final IStreamViewMapping.PathType EXCLUDE

UNKNOWN

public static final IStreamViewMapping.PathType UNKNOWN
Method Detail

values

public static IStreamViewMapping.PathType[] 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 (IStreamViewMapping.PathType c : IStreamViewMapping.PathType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IStreamViewMapping.PathType 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 name
NullPointerException - if the argument is null

fromString

public static IStreamViewMapping.PathType fromString(String str)
Return a suitable Path type as inferred from the passed-in string, which is assumed to be the string form of a Path type. Otherwise return the UNKNOWN type



Copyright © 2015 Perforce Software. All Rights Reserved.