Package com.perforce.p4java.core
Enum Class IMapEntry.EntryType
- All Implemented Interfaces:
Serializable,Comparable<IMapEntry.EntryType>,Constable
- Enclosing interface:
- IMapEntry
Defines the specific type of a given view map entry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies this is an "ditto" mapping; this means that the map duplicates this path and its children.Specifies this is an "exclude" mapping; this means that the map excludes this path and its children.Specifies this is an "include" mapping; this means that the map includes this path and its children.Specifies this is an "overlay" mapping; this means that the map overlays this path and its children. -
Method Summary
Modifier and TypeMethodDescriptionstatic IMapEntry.EntryTypefromString(String str) Return a suitable EntryType as inferred from the passed-in string, which is assumed to be a Perforce view map path string.toString()Return a more useful string than "EXCLUDE" or "OVERLAY", i.e.static IMapEntry.EntryTypeReturns the enum constant of this class with the specified name.static IMapEntry.EntryType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCLUDE
Specifies this is an "include" mapping; this means that the map includes this path and its children. -
EXCLUDE
Specifies this is an "exclude" mapping; this means that the map excludes this path and its children. -
OVERLAY
Specifies this is an "overlay" mapping; this means that the map overlays this path and its children. -
DITTO
Specifies this is an "ditto" mapping; this means that the map duplicates this path and its children.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getSymbol
-
fromString
Return a suitable EntryType as inferred from the passed-in string, which is assumed to be a Perforce view map path string. If str is null, or no such EntryType can be inferred, returns null.- Parameters:
str- str- Returns:
- EntryType
-
toString
Return a more useful string than "EXCLUDE" or "OVERLAY", i.e. return "-" or "+" respectively. Returns the empty string (not null) if the type is neither EXCLUDE nor OVERLAY.- Overrides:
toStringin classEnum<IMapEntry.EntryType>
-