public class DTEDDirectoryHandler extends java.lang.Object implements PropertyConsumer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PathProperty
The property for the path to the DTED directory.
|
protected java.lang.String |
prefix
Property prefix for properties, used as a scoping mechanism.
|
protected DTEDNameTranslator |
translator
The DTEDNameTranslator for this handler, which knows how to match up
lat/lons with a DTED file name.
|
static java.lang.String |
TranslatorClassProperty
The class name for the DTEDNameTranslator to be used for this path.
|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
DTEDDirectoryHandler() |
DTEDDirectoryHandler(java.lang.String dtedDirectory)
Create a DTEDDirectoryHandler with a StandardDTEDNameTranslator, looking
at the provided dted directory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDirectoryPath()
Gets the directory path from the translator.
|
java.util.Properties |
getProperties(java.util.Properties props)
Method to fill in a Properties object, reflecting the current
values of the PropertyConsumer.
|
java.util.Properties |
getPropertyInfo(java.util.Properties props)
Method to fill in a Properties object with values reflecting
the properties able to be set on this PropertyConsumer.
|
java.lang.String |
getPropertyPrefix()
Get the property key prefix that is being used to prepend to
the property keys for Properties lookups.
|
DTEDNameTranslator |
getTranslator()
Get the translator for this DTEDDirectoryHandler.
|
void |
setDirectoryPath(java.lang.String path)
Sets the DTED directory path on the translator if it isn't null.
|
void |
setProperties(java.util.Properties props)
Method to set the properties in the PropertyConsumer.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Method to set the properties in the PropertyConsumer.
|
void |
setPropertyPrefix(java.lang.String propertyPrefix)
Set the property key prefix that should be used by the
PropertyConsumer.
|
void |
setTranslator(DTEDNameTranslator dnt)
Set the DTEDNameTranslator for this DTEDDirectoryHandler.
|
public static final java.lang.String PathProperty
public static final java.lang.String TranslatorClassProperty
protected java.lang.String prefix
protected DTEDNameTranslator translator
public DTEDDirectoryHandler()
public DTEDDirectoryHandler(java.lang.String dtedDirectory)
dtedDirectory
- public void setTranslator(DTEDNameTranslator dnt)
public DTEDNameTranslator getTranslator()
public void setDirectoryPath(java.lang.String path)
public java.lang.String getDirectoryPath()
public void setProperties(java.lang.String prefix, java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
prefix
- a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.props
- a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public void setProperties(java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
props
- a properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public java.util.Properties getProperties(java.util.Properties props)
PropertyConsumer
getProperties
in interface PropertyConsumer
props
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public java.util.Properties getPropertyInfo(java.util.Properties props)
PropertyConsumer
getPropertyInfo
in interface PropertyConsumer
props
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public void setPropertyPrefix(java.lang.String propertyPrefix)
PropertyConsumer
setPropertyPrefix
in interface PropertyConsumer
propertyPrefix
- the prefix String.public java.lang.String getPropertyPrefix()
PropertyConsumer
getPropertyPrefix
in interface PropertyConsumer
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details