Package gda.data.metadata
Class IcatMetadataEntry
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.data.metadata.MetadataEntry
gda.data.metadata.IcatMetadataEntry
- All Implemented Interfaces:
IMetadataEntry,Configurable,Findable,gda.observable.IObservable,Serializable
MetadataEntry that executes an ICAT query.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an ICAT metadata entry.IcatMetadataEntry(String name, String query) Creates an ICAT metadata entry with the specified name and query. -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual value of the metadata entry.voidSets the query that will be executed.Methods inherited from class gda.data.metadata.MetadataEntry
addIObserver, canStoreValue, configure, deleteIObserver, deleteIObservers, getDefEntryName, getMetadataValue, notifyIObservers, setDefEntryName, setValue, toStringMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.data.metadata.IMetadataEntry
getName, setName
-
Field Details
-
query
-
-
Constructor Details
-
IcatMetadataEntry
public IcatMetadataEntry()Creates an ICAT metadata entry. -
IcatMetadataEntry
Creates an ICAT metadata entry with the specified name and query.- Parameters:
name- the metadata entry namequery- the value
-
-
Method Details
-
setQuery
Sets the query that will be executed.- Parameters:
query- the query
-
readActualValue
Description copied from class:MetadataEntryReturns the actual value of the metadata entry. Any exception can be thrown by this method, which will causeMetadataEntry.getMetadataValue()to look for a default value (if one is specified).- Specified by:
readActualValuein classMetadataEntry- Returns:
- the entry's actual value
- Throws:
Exception- if the value cannot be retrieved
-