Class AbstractFileLayerLoader
java.lang.Object
org.openjump.core.ui.io.file.AbstractFileLayerLoader
- All Implemented Interfaces:
FileLayerLoader
- Direct Known Subclasses:
DataSourceFileLayerLoader, ReferencedImageFactoryFileLayerLoader
A base implementation of
FileLayerLoader.- Author:
- Paul Austin
-
Field Summary
FieldsFields inherited from interface FileLayerLoader
KEY -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructor for xml persistenceAbstractFileLayerLoader(String description, List<String> extensions) Construct a new AbstractFileLayerLoader with a description and list of extensions. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFileExtensions(List<String> newexts) Add to the list of file extensions supported by the plug-in.voidAdd an option.voidAdd an option.Get the descriptive name of the file format (e.g.Get the list of file extensions supported by the plug-in.Get the list of Options supported by the plug-in.booleanremoveOption(String name, String type, boolean required) Remove an option.booleanremoveOption(String name, String type, Object defaultValue, boolean required) Remove an option.toString()Return a string representation of the loader.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FileLayerLoader
open
-
Field Details
-
PRIO_COMPARATOR
-
-
Constructor Details
-
AbstractFileLayerLoader
public AbstractFileLayerLoader()default constructor for xml persistence -
AbstractFileLayerLoader
-
-
Method Details
-
getDescription
Get the descriptive name of the file format (e.g. ESRI Shapefile).- Specified by:
getDescriptionin interfaceFileLayerLoader- Returns:
- The file format name.
-
getFileExtensions
Get the list of file extensions supported by the plug-in.- Specified by:
getFileExtensionsin interfaceFileLayerLoader- Returns:
- The list of file extensions.
-
addFileExtensions
-
addOption
-
addOption
-
removeOption
-
removeOption
-
getOptionMetadata
Get the list of Options supported by the plug-in.- Specified by:
getOptionMetadatain interfaceFileLayerLoader- Returns:
- The list of Options.
-
toString
-