public class TagBuilder extends Object
RevWalk
 and obtain a RevTag instance by calling
 RevWalk.parseTag(AnyObjectId).| Constructor and Description | 
|---|
TagBuilder()  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
build()
Format this builder's state as an annotated tag object. 
 | 
String | 
getMessage()
Get the complete commit message. 
 | 
ObjectId | 
getObjectId()
Get the object this tag refers to. 
 | 
int | 
getObjectType()
Get the type of object this tag refers to. 
 | 
String | 
getTag()
Get short name of the tag (no  
refs/tags/ prefix). | 
PersonIdent | 
getTagger()
Get creator of this tag. 
 | 
void | 
setMessage(String newMessage)
Set the tag's message. 
 | 
void | 
setObjectId(AnyObjectId obj,
           int objType)
Set the object this tag refers to, and its type. 
 | 
void | 
setObjectId(RevObject obj)
Set the object this tag refers to, and infer its type. 
 | 
void | 
setTag(String shortName)
Set the name of this tag. 
 | 
void | 
setTagger(PersonIdent taggerIdent)
Set the creator of this tag. 
 | 
byte[] | 
toByteArray()
Format this builder's state as an annotated tag object. 
 | 
String | 
toString() | 
public int getObjectType()
public ObjectId getObjectId()
public void setObjectId(AnyObjectId obj, int objType)
obj - the object.objType - the type of obj. Must be a valid type code.public void setObjectId(RevObject obj)
obj - the object the tag will refer to.public String getTag()
refs/tags/ prefix).refs/tags/ prefix).public void setTag(String shortName)
shortName - new short name of the tag. This short name should not start
            with refs/ as typically a tag is stored under the
            reference derived from "refs/tags/" + getTag().public PersonIdent getTagger()
public void setTagger(PersonIdent taggerIdent)
taggerIdent - the creator. May be null.public String getMessage()
public void setMessage(String newMessage)
newMessage - the tag's message.public byte[] build()
public byte[] toByteArray()
Copyright © 2020 Eclipse JGit Project. All rights reserved.