|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.factory.utils.parsers.XSDParser
public class XSDParser
Parses the XSD document and generates the code that is used in the XMLSearchEngine.
The code consists of definition of constants and enums.
XMLSearchEngine
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
XSDParser()
Default constructor for XSDParser. |
Method Summary | |
---|---|
private boolean |
hashtableContainsKey(java.lang.String regexKey,
java.util.Hashtable<java.lang.String,java.lang.Object> hash)
The method checks whether there is any key in the Hashtable matching the regexKey regular expression. |
private java.util.ArrayList |
hashtableGetValue(java.lang.String regexKey,
java.util.Hashtable<java.lang.String,java.lang.Object> hash)
The method gets an ArrayList corresponding to the matches via regular expression. |
private void |
loadXSD(org.w3c.dom.Node element,
java.util.Hashtable<java.lang.String,java.lang.Object> inHash)
Parses the XSD document and puts the data into a mixed ArrayList and Hashtable structure. |
java.util.Hashtable<java.lang.String,java.lang.Object> |
loadXSDSchema(java.lang.String xsdSchemaFile)
Parses the XSD document and puts the data into a mixed ArrayList and Hashtable structure. |
static void |
main(java.lang.String[] args)
main method - used for testing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger logger
Constructor Detail |
---|
public XSDParser()
Method Detail |
---|
private boolean hashtableContainsKey(java.lang.String regexKey, java.util.Hashtable<java.lang.String,java.lang.Object> hash)
regexKey
- the regular expression with which the keys should be comparedhash
- the hashtable with keys to compare
expressions: http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html#sum
private java.util.ArrayList hashtableGetValue(java.lang.String regexKey, java.util.Hashtable<java.lang.String,java.lang.Object> hash)
regexKey
- the regular expression with which the keys should be comparedhash
- the hashtable with keys to compare
expressions: http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html#sum
private void loadXSD(org.w3c.dom.Node element, java.util.Hashtable<java.lang.String,java.lang.Object> inHash)
element
- the root element of the XSD treeinHash
- the Hashtable for this subtree#loadXSDSchema(String, String)
public java.util.Hashtable<java.lang.String,java.lang.Object> loadXSDSchema(java.lang.String xsdSchemaFile) throws java.io.IOException, org.xml.sax.SAXException
xsdSchemaFile
- The full path to the XSD document
java.io.IOException
org.xml.sax.SAXException
XMLSearchEngine
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |