|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.BasicDataConfiguration
public class BasicDataConfiguration
An implementation of the DataConfiguration
interface, which uses an Element
as its
backing store. Parameter names in query methods are interpreted as XPath
queries against the backing
Element.
Field Summary | |
---|---|
protected Element |
dom
|
protected XPath |
xpath
|
Constructor Summary | |
---|---|
BasicDataConfiguration(Element domElement)
Creates a BasicDataConfiguration backed by a specified Element. |
Method Summary | |
---|---|
protected DataConfiguration |
createChildConfigInfo(Element domElement)
|
Boolean |
getBoolean(String paramName)
Returns the Boolean value identified by a specified parameter name. |
DataConfiguration |
getChild(String paramName)
Returns the child configuration with a specified name. |
DataConfiguration[] |
getChildren(String paramName)
Returns an array of child configurations with a specified name. |
Double |
getDouble(String paramName)
Returns the Double value identified by a specified parameter name. |
Integer |
getInteger(String paramName)
Returns the Integer value identified by a specified parameter name. |
LatLon |
getLatLon(String paramName)
Returns the LatLon value identified by a specified parameter name. |
Long |
getLong(String paramName)
Returns the Long value identified by a specified parameter name. |
String |
getName()
A no-op implemenation of the DataConfiguration.getName() method provided so that this class can be
instantiated. |
Sector |
getSector(String paramName)
Returns the Sector value identified by a specified parameter name. |
LevelSet.SectorResolution |
getSectorResolutionLimit(String paramName)
Returns the LevelSet.SectorResolution value identified by a specified parameter
name. |
Object |
getSource()
Returns this data configuration's backing DOM Element. |
String |
getString(String paramName)
Returns the String value identified by a specified parameter name. |
String[] |
getStringArray(String paramName)
Returns all String values identified by a specified parameter name. |
Long |
getTimeInMillis(String paramName)
Returns the time value in milliseconds identified by a specified parameter name. |
String |
getType()
A no-op implemenation of the DataConfiguration.getType() method provided so that this class can be
instantiated. |
String[] |
getUniqueStrings(String paramName)
Returns all unique String values identified by a specified parameter name. |
String |
getVersion()
A no-op implemenation of the DataConfiguration.getVersion() method provided so that this class can be
instantiated. |
protected XPath |
getXPath()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Element dom
protected XPath xpath
Constructor Detail |
---|
public BasicDataConfiguration(Element domElement)
domElement
- backing DOM element.
IllegalArgumentException
- if the element is null.Method Detail |
---|
protected DataConfiguration createChildConfigInfo(Element domElement)
public Boolean getBoolean(String paramName)
DataConfiguration
Boolean
value identified by a specified parameter name.
getBoolean
in interface DataConfiguration
paramName
- the parameter name.
public DataConfiguration getChild(String paramName)
DataConfiguration
getChild
in interface DataConfiguration
paramName
- name of the child configuration.
public DataConfiguration[] getChildren(String paramName)
DataConfiguration
getChildren
in interface DataConfiguration
paramName
- name of the child configurations.
public Double getDouble(String paramName)
DataConfiguration
Double
value identified by a specified parameter name.
getDouble
in interface DataConfiguration
paramName
- the parameter name.
public Integer getInteger(String paramName)
DataConfiguration
Integer
value identified by a specified parameter name.
getInteger
in interface DataConfiguration
paramName
- the parameter name.
public LatLon getLatLon(String paramName)
DataConfiguration
LatLon
value identified by a specified parameter name.
getLatLon
in interface DataConfiguration
paramName
- the parameter name.
public Long getLong(String paramName)
DataConfiguration
Long
value identified by a specified parameter name.
getLong
in interface DataConfiguration
paramName
- the parameter name.
public String getName()
DataConfiguration.getName()
method provided so that this class can be
instantiated. Not all configuration info supports a getName
method; this class is therefore
useful as is in these cases.
getName
in interface DataConfiguration
public Sector getSector(String paramName)
DataConfiguration
Sector
value identified by a specified parameter name.
getSector
in interface DataConfiguration
paramName
- the parameter name.
public LevelSet.SectorResolution getSectorResolutionLimit(String paramName)
DataConfiguration
LevelSet.SectorResolution
value identified by a specified parameter
name.
getSectorResolutionLimit
in interface DataConfiguration
paramName
- the parameter name.
public Object getSource()
getSource
in interface DataConfiguration
public String getString(String paramName)
DataConfiguration
String
value identified by a specified parameter name.
getString
in interface DataConfiguration
paramName
- the parameter name.
public String[] getStringArray(String paramName)
DataConfiguration
getStringArray
in interface DataConfiguration
paramName
- the parameter name.
public Long getTimeInMillis(String paramName)
DataConfiguration
getTimeInMillis
in interface DataConfiguration
paramName
- the parameter name.
public String getType()
DataConfiguration.getType()
method provided so that this class can be
instantiated. Not all configuration info supports a getType
method; this class is therefore
useful as is in these cases.
getType
in interface DataConfiguration
public String[] getUniqueStrings(String paramName)
DataConfiguration
getUniqueStrings
in interface DataConfiguration
paramName
- the parameter name.
public String getVersion()
DataConfiguration.getVersion()
method provided so that this class can be
instantiated. Not all configuration info supports a getVersion
method; this class is therefore
useful as is in these cases.
getVersion
in interface DataConfiguration
protected XPath getXPath()
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |