Package com.luciad.lucy.model
Class ALcyFileTypeDescriptor
java.lang.Object
com.luciad.lucy.model.ALcyFileTypeDescriptor
- Direct Known Subclasses:
TLcyCompositeFileTypeDescriptor
,TLcyFileTypeDescriptor
,TLcyFilterFileTypeDescriptor
Descriptor that provides more information about the file types
a certain ILcdModelEncoder/ILcdModelDecoder/ALcyDataSourceHandler can handle.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a newALcyFileTypeDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
The default extension of this descriptor.abstract String
Returns the display name of this file type descriptor.abstract boolean
Returns true if the given filename is included in this file type descriptor.toString()
Returns the display name of this file type descriptor.
-
Constructor Details
-
ALcyFileTypeDescriptor
protected ALcyFileTypeDescriptor()Creates a newALcyFileTypeDescriptor
.
-
-
Method Details
-
getDisplayName
Returns the display name of this file type descriptor. This message will be displayed to a user, f.i. in a file type combo box of a file chooser.- Returns:
- The display name.
-
includes
Returns true if the given filename is included in this file type descriptor. Most likely, implementations will check if the given filename ends with a known extension (f.i. if it ends with '.txt' or so)- Parameters:
aFileName
- The filename to test for validity.- Returns:
- True if the filename is accepted, false otherwise.
-
getDefaultExtension
The default extension of this descriptor. This extension can be added to a filename without extension to create a valid file name.- Returns:
- The default extension, without the dot.
-
toString
Returns the display name of this file type descriptor.
-