public abstract static class ExternalId.Key
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Key() |
Modifier and Type | Method and Description |
---|---|
static ExternalId.Key |
create(java.lang.String scheme,
java.lang.String id) |
java.lang.String |
get()
Exports this external ID key as string with the format "scheme:id", or "id" if scheme is
null.
|
abstract java.lang.String |
id() |
boolean |
isScheme(java.lang.String scheme) |
static ExternalId.Key |
parse(java.lang.String externalId)
Parses an external ID key from a string in the format "scheme:id" or "id".
|
abstract java.lang.String |
scheme() |
org.eclipse.jgit.lib.ObjectId |
sha1()
Returns the SHA1 of the external ID that is used as note ID in the refs/meta/external-ids
notes branch.
|
java.lang.String |
toString() |
public static ExternalId.Key create(java.lang.String scheme, java.lang.String id)
public static ExternalId.Key parse(java.lang.String externalId)
public abstract java.lang.String scheme()
public abstract java.lang.String id()
public boolean isScheme(java.lang.String scheme)
public org.eclipse.jgit.lib.ObjectId sha1()
public java.lang.String get()
This string representation is used as subsection name in the Git config file that stores the external ID.
public java.lang.String toString()
toString
in class java.lang.Object