ddiff
Version 1.0.0

com.ehsbe.ddiff
Enum DirEntry.Type

java.lang.Object
  extended by java.lang.Enum<DirEntry.Type>
      extended by com.ehsbe.ddiff.DirEntry.Type
All Implemented Interfaces:
Serializable, Comparable<DirEntry.Type>
Enclosing class:
DirEntry

public static enum DirEntry.Type
extends Enum<DirEntry.Type>

types of file, we distignuish.

Version:
$Revision: 395 $
Author:
Jens Elkner

Enum Constant Summary
Enum Constant and Description
DIR
          entry reperesents a directory
DIRLINK
          entry reperesents a symlink to a directory
FILE
          entry reperesents a regular file
FILELINK
          entry reperesents a symlink to a regular file
INVALID
          entry represents a symlink, which points to an entity, which can not be stated
LINKLINK
          entry is a symlink, which points to another symlink
OTHER
          entry represents neither regular file nor a directory nor a symlink
OTHERLINK
          entry represents a symlink to an entry, which is neither regular file nor a directory
UNKNOWN
          the type of the entry could not be determined because entry attributes could not be obtained
 
Method Summary
Modifier and Type Method and Description
 String toString()
          
static DirEntry.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DirEntry.Type[] 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

FILE

public static final DirEntry.Type FILE
entry reperesents a regular file


FILELINK

public static final DirEntry.Type FILELINK
entry reperesents a symlink to a regular file


DIR

public static final DirEntry.Type DIR
entry reperesents a directory


DIRLINK

public static final DirEntry.Type DIRLINK
entry reperesents a symlink to a directory


OTHER

public static final DirEntry.Type OTHER
entry represents neither regular file nor a directory nor a symlink


OTHERLINK

public static final DirEntry.Type OTHERLINK
entry represents a symlink to an entry, which is neither regular file nor a directory


LINKLINK

public static final DirEntry.Type LINKLINK
entry is a symlink, which points to another symlink


INVALID

public static final DirEntry.Type INVALID
entry represents a symlink, which points to an entity, which can not be stated


UNKNOWN

public static final DirEntry.Type UNKNOWN
the type of the entry could not be determined because entry attributes could not be obtained

Method Detail

values

public static DirEntry.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 (DirEntry.Type c : DirEntry.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 DirEntry.Type 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

toString

public String toString()

Overrides:
toString in class Enum<DirEntry.Type>

ddiff
Version 1.0.0

Created by Jens Elkner