nl.itc.RIMapper
Class ParseXML

java.lang.Object
  extended by nl.itc.RIMapper.ParseXML

public class ParseXML
extends Object

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/

Version:
1.1 [April 2004]
Author:
Barend Köbben - kobben@itc.nl

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

MAX_ACTIONS_PER_LAYER

public static final int MAX_ACTIONS_PER_LAYER
See Also:
Constant Field Values

DEFAULT_PARSER_NAME

public static final String DEFAULT_PARSER_NAME
See Also:
Constant Field Values

VALIDATION_URL

public static final String VALIDATION_URL
See Also:
Constant Field Values

XMLtree

public Document XMLtree

RIM_Type

public String RIM_Type

RIM_SFSserver

public String RIM_SFSserver

RIM_DB

public String RIM_DB

RIM_UN

public String RIM_UN

RIM_PW

public String RIM_PW

title

public String title

author

public String author

nrLayers

public int nrLayers

layerNames

public String[] layerNames

layerAttribs

public String[] layerAttribs

nrLayerActions

public int[] nrLayerActions

layerActions

public String[][] layerActions

layerActionScopes

public String[][] layerActionScopes

layerStyles

public String[] layerStyles

layerStyleTypes

public String[] layerStyleTypes

nrStyles

public int nrStyles

styleNames

public String[] styleNames

styles

public String[] styles

nrFragments

public int nrFragments

fragmentNames

public String[] fragmentNames

fragmentTypes

public String[] fragmentTypes

fragments

public String[] fragments

SVGRootFragmentName

public String SVGRootFragmentName

SVGRootFragment

public String SVGRootFragment
Constructor Detail

ParseXML

public ParseXML()
Method Detail

getRIM

public void getRIM(Document XMLtree)
            throws RIMapperException
Get the attributes of XML RIM node.
void,sets instance field title

Parameters:
XMLtree - the Document Tree in memory as parsed by getXMLtree
Throws:
RIMapperException

getTitle

public void getTitle(Document XMLtree)
              throws RIMapperException
Get the names of XML TITLE node (concatenates if more nodes).
void,sets instance field title

Parameters:
XMLtree - the Document Tree in memory as parsed by getXMLtree
Throws:
RIMapperException

getAuthor

public void getAuthor(Document XMLtree)
               throws RIMapperException
Get the names of XML AUTHOR node (concatenates if more nodes).
returns nothing,sets instance field title

Parameters:
XMLtree - the Document Tree in memory as parsed by getXMLtree
Throws:
RIMapperException

getStyles

public void getStyles(Document XMLtree)
               throws RIMapperException
Get the names and style strings (if in XML) of XML STYLEs node.
returns nothing,sets instance fields nrStyles, styleNames,styles

Parameters:
XMLtree - the Document Tree in memory as parsed by getXMLtree
Throws:
RIMapperException

getFragments

public void getFragments(Document XMLtree)
                  throws RIMapperException
Get the names and Fragment strings (if in XML) of XML FRAGMENT nodes.
returns nothing,sets instance fields nrFragments, fragmentNames, fragments

Parameters:
XMLtree - the Document Tree in memory as parsed by getXMLtree
Throws:
RIMapperException

getActions

public void getActions(int currentLayer,
                       NodeList currentLayerChildren)
                throws RIMapperException

returns nothing,sets instance fields layerActionScopes, layerActions

Parameters:
currentLayer -
currentLayerChildren -
Throws:
RIMapperException

getLayers

public void getLayers(Document XMLtree)
               throws RIMapperException
Get the names of XML LAYERs node.

Parameters:
XMLtree - the Document Tree in memory as parsed by getXMLtree returns nothing (sets instance fields nrLayers, layerNames, layerActionScopes, layerActions layerStyles, layerStyleTypes)
Throws:
RIMapperException

getXMLtree

public void getXMLtree(String XMLfile,
                       boolean validate)
                throws RIMapperException
Parses XML file and returns the document tree.

Parameters:
XMLfile - the URL or file path
validate - sets DTD validation on/off returns the document tree
Throws:
RIMapperException