eu.xtreemos.xati.API
Class XXMLExtractor
java.lang.Object
eu.xtreemos.xati.API.XXMLExtractor
public class XXMLExtractor
- extends java.lang.Object
- Author:
- gregor.pipan@xlab.si
Method Summary |
static java.util.Hashtable<java.lang.String,java.lang.Object> |
getXMLObject(java.lang.String __path,
java.lang.Integer __schemaType)
Transform an XML stored in a file into a hash table containing the
searchable elements of the source XML. |
static java.util.Hashtable<java.lang.String,java.lang.Object> |
getXMLObjectFromDocument(org.w3c.dom.Document __xmlDocument,
java.lang.Integer __schemaType)
Transform an XML stored in a DOM document into a hash table containing
the searchable elements of the source XML. |
static java.util.Hashtable<java.lang.String,java.lang.Object> |
getXMLObjectFromString(java.lang.String __xmlDocument,
java.lang.Integer __schemaType)
Transform an XML stored in a string into a hash table containing the
searchable elements of the source XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servicename
public static java.lang.String servicename
XXMLExtractor
public XXMLExtractor()
getXMLObject
public static java.util.Hashtable<java.lang.String,java.lang.Object> getXMLObject(java.lang.String __path,
java.lang.Integer __schemaType)
throws java.lang.Exception
- Transform an XML stored in a file into a hash table containing the
searchable elements of the source XML. The elements of the hashtable are
either strings for simple tags, instances of Hashtable for complex
structures, and instances of ArrayList for multiple entries having the
same key.
- Parameters:
path
- The path to the xml file on the file system of the service's
host.schemaType
- The type of schema. (TODO use some sort of an enum
type instead of int)
- Returns:
- A Hashtable containing the searchable elements of the source XML.
- Throws:
SAXException
IOException
java.lang.Exception
getXMLObjectFromDocument
public static java.util.Hashtable<java.lang.String,java.lang.Object> getXMLObjectFromDocument(org.w3c.dom.Document __xmlDocument,
java.lang.Integer __schemaType)
throws java.lang.Exception
- Transform an XML stored in a DOM document into a hash table containing
the searchable elements of the source XML. The elements of the hashtable
are either strings for simple tags, instances of Hashtable for complex
structures, and instances of ArrayList for multiple entries having the
same key.
- Parameters:
xmlDocument
- xml document objectschemaType
- The type of schema. (TODO use some sort of an enum
type instead of int)
- Returns:
- A Hashtable containing the searchable elements of the source XML.
- Throws:
java.lang.Exception
getXMLObjectFromString
public static java.util.Hashtable<java.lang.String,java.lang.Object> getXMLObjectFromString(java.lang.String __xmlDocument,
java.lang.Integer __schemaType)
throws java.lang.Exception
- Transform an XML stored in a string into a hash table containing the
searchable elements of the source XML. The elements of the hashtable are
either strings for simple tags, instances of Hashtable for complex
structures, and instances of ArrayList for multiple entries having the
same key.
- Parameters:
xmlDocument
- The contents of the XML contents.schemaType
- The type of schema. (TODO use some sort of an enum
type instead of int)
- Returns:
- A Hashtable containing the searchable elements of the source XML.
- Throws:
java.lang.Exception