Package ghidra.framework.remote
Class RepositoryItem
java.lang.Object
ghidra.framework.remote.RepositoryItem
- All Implemented Interfaces:
Serializable
RepositoryItemStatus provides status information for a
repository folder item.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final longstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns content classintReturns type of item.getName()Returns the item name.Returns path of the parent folder containing this item.Returns the folder item path within the repository.Get related text dataintReturns the current version of the item or -1 if versioning not supported.longReturns the time (UTC milliseconds) when the current version was created.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
FILE
public static final int FILE- See Also:
-
DATABASE
public static final int DATABASE- See Also:
-
TEXT_DATA_FILE
public static final int TEXT_DATA_FILE- See Also:
-
-
Constructor Details
-
RepositoryItem
protected RepositoryItem()Default constructor needed for de-serialization -
RepositoryItem
public RepositoryItem(String folderPath, String itemName, String fileID, int itemType, String contentType, int version, long versionTime, String textData) Constructor.- Parameters:
folderPath- path of folder containing item.itemName- name of itemfileID- unique file IDitemType- type of item (FILE or DATABASE)contentType- content type associated with itemversion- repository item version or -1 if versioning not supportedversionTime- version creation timetextData- related text data (may be null)
-
-
Method Details
-
getName
Returns the item name. -
getPathName
Returns the folder item path within the repository. -
getParentPath
Returns path of the parent folder containing this item. -
getItemType
public int getItemType()Returns type of item. -
getContentType
Returns content class -
getFileID
-
getVersion
public int getVersion()Returns the current version of the item or -1 if versioning not supported. -
getVersionTime
public long getVersionTime()Returns the time (UTC milliseconds) when the current version was created. -
getTextData
Get related text data- Returns:
- text data or null
-