Enum Class IMapEntry.EntryType

java.lang.Object
java.lang.Enum<IMapEntry.EntryType>
com.perforce.p4java.core.IMapEntry.EntryType
All Implemented Interfaces:
Serializable, Comparable<IMapEntry.EntryType>, Constable
Enclosing interface:
IMapEntry

public static enum IMapEntry.EntryType extends Enum<IMapEntry.EntryType>
Defines the specific type of a given view map entry.
  • Enum Constant Details

    • INCLUDE

      public static final IMapEntry.EntryType INCLUDE
      Specifies this is an "include" mapping; this means that the map includes this path and its children.
    • EXCLUDE

      public static final IMapEntry.EntryType EXCLUDE
      Specifies this is an "exclude" mapping; this means that the map excludes this path and its children.
    • OVERLAY

      public static final IMapEntry.EntryType OVERLAY
      Specifies this is an "overlay" mapping; this means that the map overlays this path and its children.
    • DITTO

      public static final IMapEntry.EntryType DITTO
      Specifies this is an "ditto" mapping; this means that the map duplicates this path and its children.
  • Method Details

    • values

      public static IMapEntry.EntryType[] 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

      public static IMapEntry.EntryType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSymbol

      public String getSymbol()
    • fromString

      public static IMapEntry.EntryType fromString(String str)
      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

      public String 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:
      toString in class Enum<IMapEntry.EntryType>