|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.lib.TreeEntry
TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree)
.
To lookup information about multiple paths at once, use a
TreeWalk
and obtain the current entry's
information from its getter methods.
@Deprecated public abstract class TreeEntry
This class represents an entry in a tree, like a blob or another tree.
Constructor Summary | |
---|---|
protected |
TreeEntry(Tree myParent,
ObjectId myId,
byte[] myNameUTF8)
Deprecated. Construct a named tree entry. |
Method Summary | |
---|---|
int |
compareTo(Object o)
Deprecated. |
void |
delete()
Deprecated. Delete this entry. |
void |
detachParent()
Deprecated. Detach this entry from it's parent. |
String |
getFullName()
Deprecated. |
byte[] |
getFullNameUTF8()
Deprecated. |
ObjectId |
getId()
Deprecated. |
abstract FileMode |
getMode()
Deprecated. |
String |
getName()
Deprecated. |
byte[] |
getNameUTF8()
Deprecated. |
Tree |
getParent()
Deprecated. |
Repository |
getRepository()
Deprecated. |
boolean |
isModified()
Deprecated. |
static int |
lastChar(TreeEntry treeEntry)
Deprecated. Helper for accessing tree/blob methods. |
void |
rename(byte[] n)
Deprecated. Rename this entry. |
void |
rename(String n)
Deprecated. Rename this entry. |
void |
setId(ObjectId n)
Deprecated. Set (update) the SHA-1 of this entry. |
void |
setModified()
Deprecated. Mark this entry as modified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TreeEntry(Tree myParent, ObjectId myId, byte[] myNameUTF8)
myParent
- myId
- myNameUTF8
- Method Detail |
---|
public Tree getParent()
public void delete()
public void detachParent()
public Repository getRepository()
public byte[] getNameUTF8()
public String getName()
public void rename(String n) throws IOException
n
- The new name
IOException
public void rename(byte[] n) throws IOException
n
- The new name
IOException
public boolean isModified()
public void setModified()
public ObjectId getId()
public void setId(ObjectId n)
n
- SHA-1 for this entry.public String getFullName()
public byte[] getFullNameUTF8()
public int compareTo(Object o)
compareTo
in interface Comparable
public static final int lastChar(TreeEntry treeEntry)
treeEntry
-
public abstract FileMode getMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |