Package com.luciad.format.asterix
Class TLcdASTERIXModelListDescriptor
java.lang.Object
com.luciad.model.TLcdModelDescriptor
com.luciad.model.TLcdEditableModelListDescriptor
com.luciad.format.asterix.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 Summary
ConstructorDescriptionTLcdASTERIXModelListDescriptor
(TLcdASTERIXDataSource aDataSource, String aDisplayName) Create a TLcdASTERIXModelListDescriptor with the given source and display name.TLcdASTERIXModelListDescriptor
(String aSourceName, String aDisplayName) Create a TLcdASTERIXModelListDescriptor with the given source and display name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the data source containing the source names that were decoded.void
setDataSource
(TLcdASTERIXDataSource aDataSource) Updates the data source of this model descriptor.void
setSourceName
(String aName) Sets a new source name for this model descriptor.Methods inherited from class com.luciad.model.TLcdEditableModelListDescriptor
addModelDescriptor, getModelDescriptor, getModelDescriptorCount, insertModelDescriptorAt, removeAllModelDescriptors, removeModelDescriptor
Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Constructor Details
-
TLcdASTERIXModelListDescriptor
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
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
Returns the data source containing the source names that were decoded.- Specified by:
getDataSource
in interfaceILcdDataSourceModelDescriptor<TLcdASTERIXDataSource>
- Returns:
- An
TLcdASTERIXDataSource
object, ornull
if the source is unspecified. - See Also:
-
setDataSource
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 tonull
. - 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 benull
.
- if the data source is
-
setSourceName
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 classTLcdModelDescriptor
- Parameters:
aName
- the new source name. May benull
to indicate that the source is unknown.
-