Package ghidra.framework.remote
Class RepositoryItem
- java.lang.Object
- 
- ghidra.framework.remote.RepositoryItem
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class RepositoryItem extends java.lang.Object implements java.io.SerializableRepositoryItemStatusprovides status information for a repository folder item.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringcontentTypestatic intDATABASEstatic intFILEprotected java.lang.StringfileIDprotected java.lang.StringfolderPathprotected java.lang.StringitemNameprotected intitemTypestatic longserialVersionUIDprotected intversionprotected longversionTime
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedRepositoryItem()Default constructor needed for de-serializationRepositoryItem(java.lang.String folderPath, java.lang.String itemName, java.lang.String fileID, int itemType, java.lang.String contentType, int version, long versionTime)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Returns content classjava.lang.StringgetFileID()intgetItemType()Returns type of item.java.lang.StringgetName()Returns the item name.java.lang.StringgetParentPath()Returns path of the parent folder containing this item.java.lang.StringgetPathName()Returns the folder item path within the repository.intgetVersion()Returns the current version of the item or -1 if versioning not supported.longgetVersionTime()Returns the time (UTC milliseconds) when the current version was created.
 
- 
- 
- 
Field Detail- 
serialVersionUIDpublic static final long serialVersionUID - See Also:
- Constant Field Values
 
 - 
FILEpublic static final int FILE - See Also:
- Constant Field Values
 
 - 
DATABASEpublic static final int DATABASE - See Also:
- Constant Field Values
 
 - 
folderPathprotected java.lang.String folderPath 
 - 
itemNameprotected java.lang.String itemName 
 - 
fileIDprotected java.lang.String fileID 
 - 
itemTypeprotected int itemType 
 - 
contentTypeprotected java.lang.String contentType 
 - 
versionprotected int version 
 - 
versionTimeprotected long versionTime 
 
- 
 - 
Constructor Detail- 
RepositoryItemprotected RepositoryItem() Default constructor needed for de-serialization
 - 
RepositoryItempublic RepositoryItem(java.lang.String folderPath, java.lang.String itemName, java.lang.String fileID, int itemType, java.lang.String contentType, int version, long versionTime)Constructor.- Parameters:
- folderPath- path of folder containing item.
- itemName- name of item
- itemType- type of item (FILE or DATABASE)
- contentType- content type associated with item
- version- repository item version or -1 if versioning not supported
- versionTime- version creation time
- checkoutList- list of checkouts for the associated repository item.
 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Returns the item name.
 - 
getPathNamepublic java.lang.String getPathName() Returns the folder item path within the repository.
 - 
getParentPathpublic java.lang.String getParentPath() Returns path of the parent folder containing this item.
 - 
getItemTypepublic int getItemType() Returns type of item.
 - 
getContentTypepublic java.lang.String getContentType() Returns content class
 - 
getFileIDpublic java.lang.String getFileID() 
 - 
getVersionpublic int getVersion() Returns the current version of the item or -1 if versioning not supported.
 - 
getVersionTimepublic long getVersionTime() Returns the time (UTC milliseconds) when the current version was created.
 
- 
 
-