Package gda.data.metadata
Class PersistantMetadataEntry
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.data.metadata.MetadataEntry
gda.data.metadata.PersistantMetadataEntry
- All Implemented Interfaces:
IMetadataEntry,Configurable,Findable,gda.observable.IObservable,Serializable
- Direct Known Subclasses:
SubdirectoryMetadataEntry
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidConfigure Method.Returns the actual value of the metadata entry.voidreload()voidsetDefaultValue(String defaultValue) voidWhere appropriate, sets the value of the metadata.Methods inherited from class gda.data.metadata.MetadataEntry
addIObserver, 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
-
Constructor Details
-
PersistantMetadataEntry
public PersistantMetadataEntry() -
PersistantMetadataEntry
-
-
Method Details
-
configure
Description copied from class:MetadataEntryConfigure Method.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classMetadataEntry- Throws:
FactoryException
-
reload
public void reload() -
readActualValue
public String readActualValue() throws org.apache.commons.configuration.ConfigurationException, IOExceptionDescription 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:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
setValue
Description copied from interface:IMetadataEntryWhere appropriate, sets the value of the metadata.- Specified by:
setValuein interfaceIMetadataEntry- Overrides:
setValuein classMetadataEntry- Parameters:
value-- Throws:
Exception
-
getDefaultValue
-
setDefaultValue
-
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
-