public abstract class AbstractFileLayerLoader extends java.lang.Object implements FileLayerLoader
FileLayerLoader
.Modifier and Type | Field and Description |
---|---|
static java.util.Comparator |
PRIO_COMPARATOR |
KEY
Constructor and Description |
---|
AbstractFileLayerLoader()
default constructor for xmlpersitence
|
AbstractFileLayerLoader(java.lang.String description,
java.util.List<java.lang.String> extensions)
Construct a new AbstractFileLayerLoader with a description and list of
extensions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFileExtensions(java.util.List<java.lang.String> newexts)
Add to the list of file extensions supported by the plug-in.
|
void |
addOption(java.lang.String name,
java.lang.String type,
boolean required)
Add an option.
|
void |
addOption(java.lang.String name,
java.lang.String type,
java.lang.Object defaultValue,
boolean required)
Add an option.
|
java.lang.String |
getDescription()
Get the descriptive name of the file format (e.g.
|
java.util.Collection<java.lang.String> |
getFileExtensions()
Get the list of file extensions supported by the plug-in.
|
java.util.List<Option> |
getOptionMetadata()
Get the list of Options supported by the plug-in.
|
boolean |
removeOption(java.lang.String name,
java.lang.String type,
boolean required)
Remove an option.
|
boolean |
removeOption(java.lang.String name,
java.lang.String type,
java.lang.Object defaultValue,
boolean required)
Remove an option.
|
java.lang.String |
toString()
Return a string representation of the loader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
open
public AbstractFileLayerLoader()
public AbstractFileLayerLoader(java.lang.String description, java.util.List<java.lang.String> extensions)
description
- The format description.extensions
- The supported file extension.public java.lang.String getDescription()
getDescription
in interface FileLayerLoader
public java.util.Collection<java.lang.String> getFileExtensions()
getFileExtensions
in interface FileLayerLoader
public boolean addFileExtensions(java.util.List<java.lang.String> newexts)
newexts
- list of extensionspublic void addOption(java.lang.String name, java.lang.String type, boolean required)
name
- The name of the option.type
- The type of the option.required
- True if a value for the option is required.Option
public void addOption(java.lang.String name, java.lang.String type, java.lang.Object defaultValue, boolean required)
name
- The name of the option.type
- The type of the option.defaultValue
- The defaultValue of the option.required
- True if a value for the option is required.Option
public boolean removeOption(java.lang.String name, java.lang.String type, boolean required)
name
- The name of the option.type
- The type of the option.required
- True if a value for the option is required.Option
public boolean removeOption(java.lang.String name, java.lang.String type, java.lang.Object defaultValue, boolean required)
name
- The name of the option.type
- The type of the option.defaultValue
- The defaultValue of the option.required
- True if a value for the option is required.Option
public java.util.List<Option> getOptionMetadata()
getOptionMetadata
in interface FileLayerLoader
public java.lang.String toString()
toString
in class java.lang.Object