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 SourceArchiveINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchiveTypegetArchiveType()Gets an indicator for the type of data type archive.java.lang.StringgetDomainFileID()Gets the ID used to uniquely identify the domain file for the data type archive.longgetLastSyncTime()Returns the last time that this source archive was synchronized to the containing DataTypeManager.java.lang.StringgetName()Returns the name of the source archivejava.lang.StringgetPathname()UniversalIDgetSourceArchiveID()Gets the ID that the program has associated with the data type archive.booleanisDirty()Returns true if at least one data type that originally came from this source archive has been changed.voidsetDirtyFlag(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.voidsetLastSyncTime(long time)Sets the last time that this source archive was synchronized to the containing DataTypeManager.voidsetName(java.lang.String name)Sets the name of the source archive associated with this SourceArchive object.voidsetPathname(java.lang.String name)
-
-
-
Field Detail
-
INSTANCE
public static final SourceArchive INSTANCE
-
-
Method Detail
-
getArchiveType
public ArchiveType getArchiveType()
Description copied from interface:SourceArchiveGets an indicator for the type of data type archive. (ArchiveType.BUILT_IN, ArchiveType.PROGRAM, ArchiveType.PROJECT, ArchiveType.FILE)- Specified by:
getArchiveTypein interfaceSourceArchive- Returns:
- the type
-
getDomainFileID
public java.lang.String getDomainFileID()
Description copied from interface:SourceArchiveGets the ID used to uniquely identify the domain file for the data type archive.- Specified by:
getDomainFileIDin interfaceSourceArchive- Returns:
- the domain file identifier
-
getLastSyncTime
public long getLastSyncTime()
Description copied from interface:SourceArchiveReturns the last time that this source archive was synchronized to the containing DataTypeManager.- Specified by:
getLastSyncTimein 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:SourceArchiveReturns the name of the source archive- Specified by:
getNamein interfaceSourceArchive- Returns:
- the name of the source archive.
-
getPathname
public java.lang.String getPathname()
-
getSourceArchiveID
public UniversalID getSourceArchiveID()
Description copied from interface:SourceArchiveGets the ID that the program has associated with the data type archive.- Specified by:
getSourceArchiveIDin interfaceSourceArchive- Returns:
- the data type archive ID
-
isDirty
public boolean isDirty()
Description copied from interface:SourceArchiveReturns true if at least one data type that originally came from this source archive has been changed.- Specified by:
isDirtyin 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:SourceArchiveSets 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:
setDirtyFlagin 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:SourceArchiveSets the last time that this source archive was synchronized to the containing DataTypeManager.- Specified by:
setLastSyncTimein 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:SourceArchiveSets the name of the source archive associated with this SourceArchive object.- Specified by:
setNamein interfaceSourceArchive- Parameters:
name- the name of the associated source archive.
-
setPathname
public void setPathname(java.lang.String name)
-
-