Package gda.data.metadata
Class StoredMetadataEntry
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.data.metadata.MetadataEntry
gda.data.metadata.StoredMetadataEntry
- All Implemented Interfaces:
IMetadataEntry,Configurable,Findable,gda.observable.IObservable,Serializable
- Direct Known Subclasses:
StoredScanMetadataEntry
Simple metadata entry that holds a string value.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a stored metadata entry.StoredMetadataEntry(String name) Creates a stored metadata entry with the specified name.StoredMetadataEntry(String name, String value) Creates a stored metadata entry with the specified name and value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the actual value of the metadata entry.voidSets the value stored by this metadata entry.Methods inherited from class gda.data.metadata.MetadataEntry
addIObserver, configure, deleteIObserver, deleteIObservers, getDefEntryName, getMetadataValue, notifyIObservers, setDefEntryName, 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
-
value
-
-
Constructor Details
-
StoredMetadataEntry
public StoredMetadataEntry()Creates a stored metadata entry. -
StoredMetadataEntry
Creates a stored metadata entry with the specified name.- Parameters:
name- the name
-
StoredMetadataEntry
Creates a stored metadata entry with the specified name and value.- Parameters:
name- the metadata entry namevalue- the value
-
-
Method Details
-
setValue
Sets the value stored by this metadata entry.- Specified by:
setValuein interfaceIMetadataEntry- Overrides:
setValuein classMetadataEntry- Parameters:
value- the value
-
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
-
canStoreValue
public boolean canStoreValue()- Specified by:
canStoreValuein interfaceIMetadataEntry- Overrides:
canStoreValuein classMetadataEntry- Returns:
- true - if this instance of IMetadataEntry can persist its value, so the storeValue method will try to do something
-