Enum IMapEntry.EntryType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IMapEntry.EntryType>
    Enclosing interface:
    IMapEntry

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

      Enum Constants 
      Enum Constant Description
      DITTO
      Specifies this is an "ditto" mapping; this means that the map duplicates this path and its children.
      EXCLUDE
      Specifies this is an "exclude" mapping; this means that the map excludes this path and its children.
      INCLUDE
      Specifies this is an "include" mapping; this means that the map includes this path and its children.
      OVERLAY
      Specifies this is an "overlay" mapping; this means that the map overlays this path and its children.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static IMapEntry.EntryType fromString​(java.lang.String str)
      Return a suitable EntryType as inferred from the passed-in string, which is assumed to be a Perforce view map path string.
      java.lang.String getSymbol()  
      java.lang.String toString()
      Return a more useful string than "EXCLUDE" or "OVERLAY", i.e.
      static IMapEntry.EntryType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static IMapEntry.EntryType[] 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, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • values

        public static IMapEntry.EntryType[] 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 (IMapEntry.EntryType c : IMapEntry.EntryType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IMapEntry.EntryType 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 name
        java.lang.NullPointerException - if the argument is null
      • getSymbol

        public java.lang.String getSymbol()
      • fromString

        public static IMapEntry.EntryType fromString​(java.lang.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 java.lang.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 java.lang.Enum<IMapEntry.EntryType>