org.ipdr.test
Class EnumMeaning

java.lang.Object
  extended by org.ipdr.test.EnumMeaning

public class EnumMeaning
extends java.lang.Object

This class can be used to obtain the Enumeration Meaning of an element.


Field Summary
protected  SchemaContentHandler contentHandler_
          Object of SchemaContentHandler class.
protected  java.lang.String PARSER_STRING
          String containing the SAX parser class name.
 
Constructor Summary
EnumMeaning(java.lang.String schemaURI)
          Constructor method.
 
Method Summary
 java.lang.String getEnumMeaning(java.lang.String attributeName, int enumValue)
          Method to obtain the enumeration meaning.
static void main(java.lang.String[] args)
          Main method providing an entry point to the tool.
protected  void registerParser(java.lang.String uri)
          This method is called by parseSchema() method to register SAX API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSER_STRING

protected final java.lang.String PARSER_STRING
String containing the SAX parser class name. Used while registering the parser.

See Also:
Constant Field Values

contentHandler_

protected SchemaContentHandler contentHandler_
Object of SchemaContentHandler class.

Constructor Detail

EnumMeaning

public EnumMeaning(java.lang.String schemaURI)
            throws IPDRException,
                   org.xml.sax.SAXException,
                   java.io.IOException
Constructor method. Takes a Schema URI as input. This Schema is parsed and stored for use.

Parameters:
schemaURI - The Schema file URI
Throws:
IPDRException
org.xml.sax.SAXException
java.io.IOException
Method Detail

registerParser

protected void registerParser(java.lang.String uri)
                       throws IPDRException,
                              org.xml.sax.SAXException,
                              java.io.IOException
This method is called by parseSchema() method to register SAX API.

Parameters:
uri - URI of file to parse
Throws:
IPDRException
org.xml.sax.SAXException
java.io.IOException

getEnumMeaning

public java.lang.String getEnumMeaning(java.lang.String attributeName,
                                       int enumValue)
Method to obtain the enumeration meaning.

Parameters:
attributeName - Attribute whose meaning is required
enumValue - Enum Value whose meaning is required
Returns:
The Enumeration Meaning

main

public static void main(java.lang.String[] args)
Main method providing an entry point to the tool.

Parameters:
args - String array that should contain 1. Schema URI, 2. Attrivute Name and 3. Enumneration Value