org.eclipse.jgit.lib
Class SymlinkTreeEntry

java.lang.Object
  extended by org.eclipse.jgit.lib.TreeEntry
      extended by org.eclipse.jgit.lib.SymlinkTreeEntry
All Implemented Interfaces:
java.lang.Comparable

public class SymlinkTreeEntry
extends TreeEntry

A tree entry representing a symbolic link. Note. Java cannot really handle these as file system objects.


Field Summary
 
Fields inherited from class org.eclipse.jgit.lib.TreeEntry
CONCURRENT_MODIFICATION, LOADED_ONLY, MODIFIED_ONLY
 
Constructor Summary
SymlinkTreeEntry(Tree parent, ObjectId id, byte[] nameUTF8)
          Construct a SymlinkTreeEntry with the specified name and SHA-1 in the specified parent
 
Method Summary
 void accept(TreeVisitor tv, int flags)
          Visit the members of this TreeEntry.
 FileMode getMode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.jgit.lib.TreeEntry
accept, compareTo, delete, detachParent, getFullName, getFullNameUTF8, getId, getName, getNameUTF8, getParent, getRepository, isModified, lastChar, lastChar, rename, rename, setId, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymlinkTreeEntry

public SymlinkTreeEntry(Tree parent,
                        ObjectId id,
                        byte[] nameUTF8)
Construct a SymlinkTreeEntry with the specified name and SHA-1 in the specified parent

Parameters:
parent -
id -
nameUTF8 -
Method Detail

getMode

public FileMode getMode()
Specified by:
getMode in class TreeEntry
Returns:
mode (type of object)

accept

public void accept(TreeVisitor tv,
                   int flags)
            throws java.io.IOException
Description copied from class: TreeEntry
Visit the members of this TreeEntry.

Specified by:
accept in class TreeEntry
Parameters:
tv - A visitor object doing the work
flags - Specification for what members to visit. See TreeEntry.MODIFIED_ONLY, TreeEntry.LOADED_ONLY, TreeEntry.CONCURRENT_MODIFICATION.
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object