|
|||||||||
| 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 | |
|---|---|
String |
author
|
static String |
DEFAULT_PARSER_NAME
|
String[] |
fragmentNames
|
String[] |
fragments
|
String[] |
fragmentTypes
|
String[][] |
layerActions
|
String[][] |
layerActionScopes
|
String[] |
layerAttribs
|
String[] |
layerNames
|
String[] |
layerStyles
|
String[] |
layerStyleTypes
|
static int |
MAX_ACTIONS_PER_LAYER
|
int |
nrFragments
|
int[] |
nrLayerActions
|
int |
nrLayers
|
int |
nrStyles
|
String |
RIM_DB
|
String |
RIM_PW
|
String |
RIM_SFSserver
|
String |
RIM_Type
|
String |
RIM_UN
|
String[] |
styleNames
|
String[] |
styles
|
String |
SVGRootFragment
|
String |
SVGRootFragmentName
|
String |
title
|
static String |
VALIDATION_URL
|
Document |
XMLtree
|
| Constructor Summary | |
|---|---|
ParseXML()
|
|
| Method Summary | |
|---|---|
void |
getActions(int currentLayer,
NodeList currentLayerChildren)
returns nothing,sets instance fields layerActionScopes,
layerActions |
void |
getAuthor(Document XMLtree)
Get the names of XML AUTHOR node (concatenates if more nodes). |
void |
getFragments(Document XMLtree)
Get the names and Fragment strings (if in XML) of XML FRAGMENT nodes. |
void |
getLayers(Document XMLtree)
Get the names of XML LAYERs node. |
void |
getRIM(Document XMLtree)
Get the attributes of XML RIM node. |
void |
getStyles(Document XMLtree)
Get the names and style strings (if in XML) of XML STYLEs node. |
void |
getTitle(Document XMLtree)
Get the names of XML TITLE node (concatenates if more nodes). |
void |
getXMLtree(String XMLfile,
boolean validate)
Parses XML file and returns the document tree. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_ACTIONS_PER_LAYER
public static final String DEFAULT_PARSER_NAME
public static final String VALIDATION_URL
public Document XMLtree
public String RIM_Type
public String RIM_SFSserver
public String RIM_DB
public String RIM_UN
public String RIM_PW
public String title
public String author
public int nrLayers
public String[] layerNames
public String[] layerAttribs
public int[] nrLayerActions
public String[][] layerActions
public String[][] layerActionScopes
public String[] layerStyles
public String[] layerStyleTypes
public int nrStyles
public String[] styleNames
public String[] styles
public int nrFragments
public String[] fragmentNames
public String[] fragmentTypes
public String[] fragments
public String SVGRootFragmentName
public String SVGRootFragment
| Constructor Detail |
|---|
public ParseXML()
| Method Detail |
|---|
public void getRIM(Document XMLtree)
throws RIMapperException
title
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getTitle(Document XMLtree)
throws RIMapperException
title
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getAuthor(Document XMLtree)
throws RIMapperException
title
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getStyles(Document XMLtree)
throws RIMapperException
nrStyles,
styleNames,styles
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getFragments(Document XMLtree)
throws RIMapperException
nrFragments,
fragmentNames, fragments
XMLtree - the Document Tree in memory as parsed by
getXMLtree
RIMapperException
public void getActions(int currentLayer,
NodeList currentLayerChildren)
throws RIMapperException
layerActionScopes,
layerActions
currentLayer - currentLayerChildren -
RIMapperException
public void getLayers(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(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 | ||||||||