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
ConstructorsConstructorDescriptionTLcdASTERIXModelListDescriptor(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.voidsetDataSource(TLcdASTERIXDataSource aDataSource) Updates the data source of this model descriptor.voidsetSourceName(String aName) Sets a new source name for this model descriptor.Methods inherited from class com.luciad.model.TLcdEditableModelListDescriptor
addModelDescriptor, getModelDescriptor, getModelDescriptorCount, insertModelDescriptorAt, removeAllModelDescriptors, removeModelDescriptorMethods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setTypeName, sourceNameToDisplayNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getDataSourcein interfaceILcdDataSourceModelDescriptor<TLcdASTERIXDataSource>- Returns:
- An
TLcdASTERIXDataSourceobject, ornullif 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:
setSourceNamein classTLcdModelDescriptor- Parameters:
aName- the new source name. May benullto indicate that the source is unknown.
-