Class IcatMetadataEntry

All Implemented Interfaces:
IMetadataEntry, Configurable, Findable, gda.observable.IObservable, Serializable

public class IcatMetadataEntry extends MetadataEntry
MetadataEntry that executes an ICAT query.
See Also:
  • Field Details

    • query

      protected String query
  • Constructor Details

    • IcatMetadataEntry

      public IcatMetadataEntry()
      Creates an ICAT metadata entry.
    • IcatMetadataEntry

      public IcatMetadataEntry(String name, String query)
      Creates an ICAT metadata entry with the specified name and query.
      Parameters:
      name - the metadata entry name
      query - the value
  • Method Details

    • setQuery

      public void setQuery(String query)
      Sets the query that will be executed.
      Parameters:
      query - the query
    • readActualValue

      public String readActualValue() throws Exception
      Description copied from class: MetadataEntry
      Returns the actual value of the metadata entry. Any exception can be thrown by this method, which will cause MetadataEntry.getMetadataValue() to look for a default value (if one is specified).
      Specified by:
      readActualValue in class MetadataEntry
      Returns:
      the entry's actual value
      Throws:
      Exception - if the value cannot be retrieved