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 Summary
Fields 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 Summary
Constructors 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 Summary
All 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
- 
serialVersionUID
public static final long serialVersionUID
- See Also:
 - Constant Field Values
 
 
- 
FILE
public static final int FILE
- See Also:
 - Constant Field Values
 
 
- 
DATABASE
public static final int DATABASE
- See Also:
 - Constant Field Values
 
 
- 
folderPath
protected java.lang.String folderPath
 
- 
itemName
protected java.lang.String itemName
 
- 
fileID
protected java.lang.String fileID
 
- 
itemType
protected int itemType
 
- 
contentType
protected java.lang.String contentType
 
- 
version
protected int version
 
- 
versionTime
protected long versionTime
 
 - 
 
- 
Constructor Detail
- 
RepositoryItem
protected RepositoryItem()
Default constructor needed for de-serialization 
- 
RepositoryItem
public 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 itemitemType- type of item (FILE or DATABASE)contentType- content type associated with itemversion- repository item version or -1 if versioning not supportedversionTime- version creation time
 
 - 
 
- 
Method Detail
- 
getName
public java.lang.String getName()
Returns the item name. 
- 
getPathName
public java.lang.String getPathName()
Returns the folder item path within the repository. 
- 
getParentPath
public java.lang.String getParentPath()
Returns path of the parent folder containing this item. 
- 
getItemType
public int getItemType()
Returns type of item. 
- 
getContentType
public java.lang.String getContentType()
Returns content class 
- 
getFileID
public java.lang.String 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. 
 - 
 
 -