Package gda.data.metadata
Class NexusMetadataReader
java.lang.Object
gda.factory.FindableBase
gda.data.metadata.NexusMetadataReader
- All Implemented Interfaces:
Findable
NexusMetadataReader class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a metadata entry.getNamedNexusMetadata(String name) Gets the metadata item with a given name.getNexusMetadata(String location) Gets the metadata item at a given location.Gets a list of NexusMetadataEntry.voidsetFilename(String filename) Set the filename.voidsetNexusMetadataEntries(List<NexusMetadataEntry> entries) Sets the entries within this metadata.Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Constructor Details
-
NexusMetadataReader
public NexusMetadataReader()Constructor. -
NexusMetadataReader
Constructor.- Parameters:
filename-
-
-
Method Details
-
getNamedNexusMetadata
Gets the metadata item with a given name.- Parameters:
name-- Returns:
- metadata
- Throws:
NexusException
-
getNexusMetadata
Gets the metadata item at a given location.- Parameters:
location-- Returns:
- metadata
- Throws:
NexusException
-
addNexusMetadataEntry
Adds a metadata entry.- Parameters:
entry-
-
setNexusMetadataEntries
Sets the entries within this metadata.- Parameters:
entries- the metadata entries
-
getNexusMetadataEntries
Gets a list of NexusMetadataEntry.- Returns:
- ArrayList of nexus metadata entries.
-
setFilename
Set the filename.- Parameters:
filename-
-