Class BuiltInSourceArchive
- java.lang.Object
-
- ghidra.app.plugin.core.datamgr.archive.BuiltInSourceArchive
-
- All Implemented Interfaces:
SourceArchive
public class BuiltInSourceArchive extends java.lang.Object implements SourceArchive
-
-
Field Summary
Fields Modifier and Type Field Description static SourceArchive
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchiveType
getArchiveType()
Gets an indicator for the type of data type archive.java.lang.String
getDomainFileID()
Gets the ID used to uniquely identify the domain file for the data type archive.long
getLastSyncTime()
Returns the last time that this source archive was synchronized to the containing DataTypeManager.java.lang.String
getName()
Returns the name of the source archivejava.lang.String
getPathname()
UniversalID
getSourceArchiveID()
Gets the ID that the program has associated with the data type archive.boolean
isDirty()
Returns true if at least one data type that originally came from this source archive has been changed.void
setDirtyFlag(boolean b)
Sets the dirty flag to indicate if at least one data type that originally came from the associated source archive has been changed since the last time the containing DataTypeManager was synchronized with it.void
setLastSyncTime(long time)
Sets the last time that this source archive was synchronized to the containing DataTypeManager.void
setName(java.lang.String name)
Sets the name of the source archive associated with this SourceArchive object.void
setPathname(java.lang.String name)
-
-
-
Field Detail
-
INSTANCE
public static final SourceArchive INSTANCE
-
-
Method Detail
-
getArchiveType
public ArchiveType getArchiveType()
Description copied from interface:SourceArchive
Gets an indicator for the type of data type archive. (ArchiveType.BUILT_IN, ArchiveType.PROGRAM, ArchiveType.PROJECT, ArchiveType.FILE)- Specified by:
getArchiveType
in interfaceSourceArchive
- Returns:
- the type
-
getDomainFileID
public java.lang.String getDomainFileID()
Description copied from interface:SourceArchive
Gets the ID used to uniquely identify the domain file for the data type archive.- Specified by:
getDomainFileID
in interfaceSourceArchive
- Returns:
- the domain file identifier
-
getLastSyncTime
public long getLastSyncTime()
Description copied from interface:SourceArchive
Returns the last time that this source archive was synchronized to the containing DataTypeManager.- Specified by:
getLastSyncTime
in interfaceSourceArchive
- Returns:
- the last time that this source archive was synchronized to the containing DataTypeManager.
-
getName
public java.lang.String getName()
Description copied from interface:SourceArchive
Returns the name of the source archive- Specified by:
getName
in interfaceSourceArchive
- Returns:
- the name of the source archive.
-
getPathname
public java.lang.String getPathname()
-
getSourceArchiveID
public UniversalID getSourceArchiveID()
Description copied from interface:SourceArchive
Gets the ID that the program has associated with the data type archive.- Specified by:
getSourceArchiveID
in interfaceSourceArchive
- Returns:
- the data type archive ID
-
isDirty
public boolean isDirty()
Description copied from interface:SourceArchive
Returns true if at least one data type that originally came from this source archive has been changed.- Specified by:
isDirty
in interfaceSourceArchive
- Returns:
- true if at least one data type that originally came from this source archive has been changed.
-
setDirtyFlag
public void setDirtyFlag(boolean b)
Description copied from interface:SourceArchive
Sets the dirty flag to indicate if at least one data type that originally came from the associated source archive has been changed since the last time the containing DataTypeManager was synchronized with it.- Specified by:
setDirtyFlag
in interfaceSourceArchive
- Parameters:
b
- true means at least one data type that originally came from this source archive has been changed.
-
setLastSyncTime
public void setLastSyncTime(long time)
Description copied from interface:SourceArchive
Sets the last time that this source archive was synchronized to the containing DataTypeManager.- Specified by:
setLastSyncTime
in interfaceSourceArchive
- Parameters:
time
- the last time that this source archive was synchronized to the containing DataTypeManager.
-
setName
public void setName(java.lang.String name)
Description copied from interface:SourceArchive
Sets the name of the source archive associated with this SourceArchive object.- Specified by:
setName
in interfaceSourceArchive
- Parameters:
name
- the name of the associated source archive.
-
setPathname
public void setPathname(java.lang.String name)
-
-