Top Description Fields Constructors Methods
org.eclipse.jgit.submodule

public Class SubmoduleStatus

extends Object
Class Inheritance
Imports
org.eclipse.jgit.lib.ObjectId

Status class containing the type, path, and commit id of the submodule.

Field Summary

Modifier and TypeField and Description
private final ObjectId
private final ObjectId
private final String
private final SubmoduleStatusType

Constructor Summary

AccessConstructor and Description
public
SubmoduleStatus(final SubmoduleStatusType type, final String
submodule path
path
,
final ObjectId indexId)

Create submodule status

public
SubmoduleStatus(final SubmoduleStatusType type, final String
submodule path
path
,
final ObjectId
index id
indexId
,
final ObjectId
head id
headId
)

Create submodule status

Method Summary

Modifier and TypeMethod and Description
public ObjectId

Returns:

HEAD object id
getHeadId
()

Get HEAD object id

public ObjectId

Returns:

index object id
getIndexId
()

Get index object id

public String

Returns:

path submodule path
getPath
()

Get submodule path

public SubmoduleStatusType

Returns:

type
getType
()

Get type

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

headIdback to summary
private final ObjectId headId
indexIdback to summary
private final ObjectId indexId
pathback to summary
private final String path
typeback to summary
private final SubmoduleStatusType type

Constructor Detail

SubmoduleStatusback to summary
public SubmoduleStatus(final SubmoduleStatusType type, final String path, final ObjectId indexId)

Create submodule status

Parameters
type:SubmoduleStatusType

a org.eclipse.jgit.submodule.SubmoduleStatusType object.

path:String

submodule path

indexId:ObjectId

an org.eclipse.jgit.lib.ObjectId object.

SubmoduleStatusback to summary
public SubmoduleStatus(final SubmoduleStatusType type, final String path, final ObjectId indexId, final ObjectId headId)

Create submodule status

Parameters
type:SubmoduleStatusType

a org.eclipse.jgit.submodule.SubmoduleStatusType object.

path:String

submodule path

indexId:ObjectId

index id

headId:ObjectId

head id

Method Detail

getHeadIdback to summary
public ObjectId getHeadId()

Get HEAD object id

Returns:ObjectId

HEAD object id

getIndexIdback to summary
public ObjectId getIndexId()

Get index object id

Returns:ObjectId

index object id

getPathback to summary
public String getPath()

Get submodule path

Returns:String

path submodule path

getTypeback to summary
public SubmoduleStatusType getType()

Get type

Returns:SubmoduleStatusType

type