|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.dataAccess.dted.DTEDDirectoryHandler
public class DTEDDirectoryHandler
DTEDDirectoryHandler is a wrapper for a DTEDNameTranslator used for a DTED directory. The DTEDNameTranslator has the intelligence to know how file names and paths are represented for different lat/lon/level combinations for DTED files within a directory.
Field Summary | |
---|---|
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. |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
DTEDDirectoryHandler()
|
|
DTEDDirectoryHandler(java.lang.String dtedDirectory)
Create a DTEDDirectoryHandler with a StandardDTEDNameTranslator, looking at the provided dted directory. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PathProperty
public static final java.lang.String TranslatorClassProperty
protected java.lang.String prefix
protected DTEDNameTranslator translator
Constructor Detail |
---|
public DTEDDirectoryHandler()
public DTEDDirectoryHandler(java.lang.String dtedDirectory)
dtedDirectory
- Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |