|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnl.itc.RIMapper.ParseXML
public class ParseXML
Parses RIMapper XML files and returns handles to further process them
into SVG output.
NOTE: this is the older way of configuring RIMapper instances (pre-WMS).
©2004-6 International Institute for Geo-information Science and Earth
Observation (ITC)
Licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 2.5 License. see
http://creativecommons.org/licenses/by-nc-sa/2.5/
| Field Summary | |
|---|---|
java.lang.String |
author
|
static java.lang.String |
DEFAULT_PARSER_NAME
|
(package private) double |
FalseOriginX
|
(package private) double |
FalseOriginY
|
java.lang.String[] |
fragmentNames
|
java.lang.String[] |
fragments
|
java.lang.String[] |
fragmentTypes
|
java.lang.String[][] |
layerActions
|
java.lang.String[][] |
layerActionScopes
|
java.lang.String[] |
layerAttribs
|
java.lang.String[] |
layerNames
|
java.lang.String[] |
layerStyles
|
java.lang.String[] |
layerStyleTypes
|
(package private) boolean |
mapExtentDefault
|
static int |
MAX_ACTIONS_PER_LAYER
|
int |
nrFragments
|
int[] |
nrLayerActions
|
int |
nrLayers
|
int |
nrStyles
|
(package private) long |
Precision
|
java.lang.String |
RIM_DB
|
java.lang.String |
RIM_PW
|
java.lang.String |
RIM_SFSserver
|
java.lang.String |
RIM_Type
|
java.lang.String |
RIM_UN
|
java.lang.String[] |
styleNames
|
java.lang.String[] |
styles
|
java.lang.String |
SVGRootFragment
|
java.lang.String |
SVGRootFragmentName
|
java.lang.String |
title
|
static java.lang.String |
VALIDATION_URL
|
(package private) double |
Xmax
|
(package private) double |
Xmin
|
org.w3c.dom.Document |
XMLtree
|
(package private) double |
Ymax
|
(package private) double |
Ymin
|
| Constructor Summary | |
|---|---|
ParseXML()
|
|
| Method Summary | |
|---|---|
void |
getActions(int currentLayer,
org.w3c.dom.NodeList currentLayerChildren)
returns nothing,sets instance fields layerActionScopes,
layerActions |
void |
getAuthor(org.w3c.dom.Document XMLtree)
Get the names of XML AUTHOR node (concatenates if more nodes). |
void |
getFragments(org.w3c.dom.Document XMLtree)
Get the names and Fragment strings (if in XML) of XML FRAGMENT nodes. |
void |
getLayers(org.w3c.dom.Document XMLtree)
Get the names of XML LAYERs node. |
private java.util.Properties |
getNodeAttributes(org.w3c.dom.Node node)
Get the attributes of an XML node and returns them as a Properties list. |
void |
getRIM(org.w3c.dom.Document XMLtree)
Get the attributes of XML RIM node. |
void |
getStyles(org.w3c.dom.Document XMLtree)
Get the names and style strings (if in XML) of XML STYLEs node. |
void |
getTitle(org.w3c.dom.Document XMLtree)
Get the names of XML TITLE node (concatenates if more nodes). |
void |
getXMLtree(java.lang.String XMLfile,
boolean validate)
Parses XML file and returns the document tree. |
private static java.lang.String |
readString(org.w3c.dom.Node node)
Gets the content (TEXT or CDATA readable text) out of an XML node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_ACTIONS_PER_LAYER
public static final java.lang.String DEFAULT_PARSER_NAME
public static final java.lang.String VALIDATION_URL
public org.w3c.dom.Document XMLtree
public java.lang.String RIM_Type
public java.lang.String RIM_SFSserver
public java.lang.String RIM_DB
public java.lang.String RIM_UN
public java.lang.String RIM_PW
double Xmin
double Ymin
double Xmax
double Ymax
double FalseOriginX
double FalseOriginY
long Precision
boolean mapExtentDefault
public java.lang.String title
public java.lang.String author
public int nrLayers
public java.lang.String[] layerNames
public java.lang.String[] layerAttribs
public int[] nrLayerActions
public java.lang.String[][] layerActions
public java.lang.String[][] layerActionScopes
public java.lang.String[] layerStyles
public java.lang.String[] layerStyleTypes
public int nrStyles
public java.lang.String[] styleNames
public java.lang.String[] styles
public int nrFragments
public java.lang.String[] fragmentNames
public java.lang.String[] fragmentTypes
public java.lang.String[] fragments
public java.lang.String SVGRootFragmentName
public java.lang.String SVGRootFragment
| Constructor Detail |
|---|
public ParseXML()
| Method Detail |
|---|
private static java.lang.String readString(org.w3c.dom.Node node)
node - the XML node
private java.util.Properties getNodeAttributes(org.w3c.dom.Node node)
node - the XML node
public void getRIM(org.w3c.dom.Document XMLtree)
throws RIMapperException
title
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getTitle(org.w3c.dom.Document XMLtree)
throws RIMapperException
title
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getAuthor(org.w3c.dom.Document XMLtree)
throws RIMapperException
title
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getStyles(org.w3c.dom.Document XMLtree)
throws RIMapperException
nrStyles,
styleNames,styles
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getFragments(org.w3c.dom.Document XMLtree)
throws RIMapperException
nrFragments,
fragmentNames, fragments
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getActions(int currentLayer,
org.w3c.dom.NodeList currentLayerChildren)
throws RIMapperException
layerActionScopes,
layerActions
currentLayer - currentLayerChildren -
RIMapperException
public void getLayers(org.w3c.dom.Document XMLtree)
throws RIMapperException
XMLtree - the Document Tree in memory as parsed by
getXMLtree returns nothing (sets instance
fields nrLayers, layerNames,
layerActionScopes,
layerActions
layerStyles,
layerStyleTypes)
RIMapperException
public void getXMLtree(java.lang.String XMLfile,
boolean validate)
throws RIMapperException
XMLfile - the URL or file pathvalidate - sets DTD validation on/off returns the document tree
RIMapperException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||