|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ipdr.test.EnumMeaning
public class EnumMeaning
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 |
---|
protected final java.lang.String PARSER_STRING
protected SchemaContentHandler contentHandler_
Constructor Detail |
---|
public EnumMeaning(java.lang.String schemaURI) throws IPDRException, org.xml.sax.SAXException, java.io.IOException
schemaURI
- The Schema file URI
IPDRException
org.xml.sax.SAXException
java.io.IOException
Method Detail |
---|
protected void registerParser(java.lang.String uri) throws IPDRException, org.xml.sax.SAXException, java.io.IOException
uri
- URI of file to parse
IPDRException
org.xml.sax.SAXException
java.io.IOException
public java.lang.String getEnumMeaning(java.lang.String attributeName, int enumValue)
attributeName
- Attribute whose meaning is requiredenumValue
- Enum Value whose meaning is required
public static void main(java.lang.String[] args)
args
- String array that should contain 1. Schema URI,
2. Attrivute Name and 3. Enumneration Value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |