SienaXML (v.2.0.0) API documentation

siena.xml
Class XSchemaProcessor

java.lang.Object
  extended by siena.xml.XSchemaProcessor

public class XSchemaProcessor
extends java.lang.Object

This class is used to process an XSchema and produce a mapping of XML tags to SIENA attribute names.


Nested Class Summary
static class XSchemaProcessor.TEST
          White Box test class for the XSchemaProcessor
 
Constructor Summary
XSchemaProcessor()
          Creates new XSchemaProcessor
 
Method Summary
 java.util.HashMap getXMLRules()
          Get the rules that are to be applied to the XML.
 void setXSchema(java.lang.String filename)
          Specify the XSchema to be processed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSchemaProcessor

public XSchemaProcessor()
Creates new XSchemaProcessor

Method Detail

setXSchema

public void setXSchema(java.lang.String filename)
                throws java.io.IOException,
                       org.xml.sax.SAXException
Specify the XSchema to be processed

Parameters:
filename - Name of the file that contains the XSchema
Throws:
java.io.IOException - This is thrown if the file can not be opened.
org.xml.sax.SAXException - If there is a problem apply the default rules to the XSchema this exception is thrown.

getXMLRules

public java.util.HashMap getXMLRules()
Get the rules that are to be applied to the XML.

Returns:
HashMap containing a map between an XML tag and the rule action.

SienaXML (v.2.0.0) API documentation

Copyright © 2000-2002 University of Colorado.
This documentation is maintained by Antonio Carzaniga