gov.nasa.worldwind.util
Class InstalledDataConfiguration
java.lang.Object
gov.nasa.worldwind.util.InstalledDataConfiguration
public class InstalledDataConfiguration - extends Object
An utility class for transforming an installed data "data descriptor" configuration document to a standard Layer or
ElevationModel configuration document.
|
Method Summary |
static DataConfiguration |
createDataConfig(Element domElement)
Creates a standard layer or elevation model configuration backed by a specified "data descriptor" document. |
protected static LatLon |
getDataDescriptorLatLon(Element context,
String path,
XPath xpath)
|
protected static Sector |
getDataDescriptorSector(Element context,
String path,
XPath xpath)
|
static boolean |
isInstalledDataDocument(Element domElement)
Returns true if a specified DOM document should be accepted as a"data descriptor" configuration document, and
false otherwise. |
protected static void |
transformCommonElements(Element context,
Element outElem,
XPath xpath)
|
protected static void |
transformDataSet(Element context,
Document outDoc,
XPath xpath)
|
protected static void |
transformElevationModelElements(Element context,
Element outElem,
XPath xpath)
|
static Document |
transformInstalledDataDocument(Element domElement)
Transforms a "data descriptor" document to a standard layer or elevation model configuration document, depending
on the contents of the Element. |
protected static void |
transformLayerElements(Element context,
Element outElem,
XPath xpath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstalledDataConfiguration
public InstalledDataConfiguration()
createDataConfig
public static DataConfiguration createDataConfig(Element domElement)
- Creates a standard layer or elevation model configuration backed by a specified "data descriptor" document.
- Parameters:
domElement - backing DOM document.
- Returns:
- Layer or ElevationModel document, or null if the "data descriptor" document cannot be transformed to a
standard document.
- Throws:
IllegalArgumentException - if the document is null.
getDataDescriptorLatLon
protected static LatLon getDataDescriptorLatLon(Element context,
String path,
XPath xpath)
getDataDescriptorSector
protected static Sector getDataDescriptorSector(Element context,
String path,
XPath xpath)
isInstalledDataDocument
public static boolean isInstalledDataDocument(Element domElement)
- Returns true if a specified DOM document should be accepted as a"data descriptor" configuration document, and
false otherwise.
- Parameters:
domElement - the DOM document in question.
- Returns:
- true if the document is a "data descriptor" configuration document; false otherwise.
- Throws:
IllegalArgumentException - if document is null.
transformCommonElements
protected static void transformCommonElements(Element context,
Element outElem,
XPath xpath)
transformDataSet
protected static void transformDataSet(Element context,
Document outDoc,
XPath xpath)
transformElevationModelElements
protected static void transformElevationModelElements(Element context,
Element outElem,
XPath xpath)
transformInstalledDataDocument
public static Document transformInstalledDataDocument(Element domElement)
- Transforms a "data descriptor" document to a standard layer or elevation model configuration document, depending
on the contents of the
Element.
- Parameters:
domElement - DataDescriptor document to transform.
- Returns:
- standard Layer or ElevationModel dsocument, or null if the DataDescriptor cannot be transformed to a
standard document.
- Throws:
IllegalArgumentException - if the document is null.
transformLayerElements
protected static void transformLayerElements(Element context,
Element outElem,
XPath xpath)
|
|