Class TLcdASTERIXModelListDescriptor

All Implemented Interfaces:
ILcdDataSourceModelDescriptor<TLcdASTERIXDataSource>, ILcdModelDescriptor, Serializable

public class TLcdASTERIXModelListDescriptor extends TLcdEditableModelListDescriptor implements ILcdDataSourceModelDescriptor<TLcdASTERIXDataSource>
A model descriptor for ASTERIX model lists. Offers functionality to update the source and display name.
Since:
2013.0
See Also:
  • Constructor Details

    • TLcdASTERIXModelListDescriptor

      public TLcdASTERIXModelListDescriptor(String aSourceName, String aDisplayName)
      Create a TLcdASTERIXModelListDescriptor with the given source and display name.
      Parameters:
      aSourceName - an indication of the source of the model(s).
      aDisplayName - a display name for the data in the model(s).
    • TLcdASTERIXModelListDescriptor

      public TLcdASTERIXModelListDescriptor(TLcdASTERIXDataSource aDataSource, String aDisplayName)
      Create a TLcdASTERIXModelListDescriptor with the given source and display name.
      Parameters:
      aDataSource - The data source containing the source names that were decoded.
      aDisplayName - a display name for the data in the model(s).
  • Method Details

    • getDataSource

      public TLcdASTERIXDataSource getDataSource()
      Returns the data source containing the source names that were decoded.
      Specified by:
      getDataSource in interface ILcdDataSourceModelDescriptor<TLcdASTERIXDataSource>
      Returns:
      An TLcdASTERIXDataSource object, or null if the source is unspecified.
      See Also:
    • setDataSource

      public void setDataSource(TLcdASTERIXDataSource aDataSource)
      Updates the data source of this model descriptor. Changing the data source will also change the source name of this descriptor:
      • if the data source is null, the source name will also be set to null.
      • if the data source contains a single source name, that source name will also be returned when calling getSourceName
      • if the data source contains multiple source names, the source name of this model descriptor will be set to null.
      Parameters:
      aDataSource - The new data source for this descriptor. This may be null.
    • setSourceName

      public void setSourceName(String aName)
      Sets a new source name for this model descriptor. The data source of this model descriptor will also be updated to reflect the source name.
      Overrides:
      setSourceName in class TLcdModelDescriptor
      Parameters:
      aName - the new source name. May be null to indicate that the source is unknown.