|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.Tag
public class Tag
Represents a named reference to another Git object of any type.
| Constructor Summary | |
|---|---|
Tag(Repository db)
Construct a new, yet unnamed Tag. |
|
Tag(Repository db,
ObjectId id,
java.lang.String refName,
byte[] raw)
Construct a Tag representing an existing with a known name referencing an known object. |
|
| Method Summary | |
|---|---|
PersonIdent |
getAuthor()
|
java.lang.String |
getMessage()
|
ObjectId |
getObjId()
|
java.lang.String |
getTag()
|
PersonIdent |
getTagger()
|
ObjectId |
getTagId()
|
java.lang.String |
getType()
|
void |
setAuthor(PersonIdent a)
Set author of an annotated tag. |
void |
setMessage(java.lang.String m)
Set the message of an annotated tag |
void |
setObjId(ObjectId objId)
Set the id of the object this tag refers to. |
void |
setTag(java.lang.String tag)
Set the name of this tag. |
void |
setTagger(PersonIdent tagger)
Set the creator of this tag |
void |
setTagId(ObjectId tagId)
Set SHA-1 of this tag. |
void |
setType(java.lang.String type)
Set tag target type |
void |
tag()
Store a tag. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tag(Repository db)
db -
public Tag(Repository db,
ObjectId id,
java.lang.String refName,
byte[] raw)
db - Repositoryid - target id.refName - tag name or nullraw - data of an annotated tag.| Method Detail |
|---|
public PersonIdent getAuthor()
public void setAuthor(PersonIdent a)
a - author identifier as a PersonIdentpublic java.lang.String getMessage()
public void setMessage(java.lang.String m)
m -
public void tag()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic ObjectId getTagId()
public void setTagId(ObjectId tagId)
tagId - public PersonIdent getTagger()
public void setTagger(PersonIdent tagger)
tagger - public java.lang.String getType()
public void setType(java.lang.String type)
type - public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag - public ObjectId getObjId()
public void setObjId(ObjectId objId)
objId -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||