|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.deployme.api.XmlLoader
public class XmlLoader
Load the xml topology
| Constructor Summary | |
|---|---|
XmlLoader(java.lang.String xml)
Constructor. |
|
XmlLoader(java.net.URL topologyUrl)
Constructor. |
|
| Method Summary | ||
|---|---|---|
Topology |
getTopology()
Return the loaded topology |
|
static
|
loadSchemaAndFile(java.lang.String xsdPath,
java.lang.String xmlns,
java.lang.String schemaLocation,
java.lang.String xmlRoot,
java.lang.Class<T> rootClass,
java.lang.String xml)
Verifies an XML file against an XSD and instantiates it using a given class. |
|
static
|
loadSchemaAndFile(java.lang.String xsdPath,
java.lang.String xmlns,
java.lang.String schemaLocation,
java.lang.String xmlRoot,
java.lang.Class<T> rootClass,
java.net.URL urlXML)
Verifies an XML file against an XSD and instantiates it using a given class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlLoader(java.net.URL topologyUrl)
throws org.xml.sax.SAXException,
javax.xml.bind.JAXBException,
java.io.IOException
topologyUrl - path to the xml topology file
org.xml.sax.SAXException
javax.xml.bind.JAXBException
java.io.IOException
public XmlLoader(java.lang.String xml)
throws org.xml.sax.SAXException,
javax.xml.bind.JAXBException,
java.io.IOException
xml - XML to load.
org.xml.sax.SAXException
javax.xml.bind.JAXBException
java.io.IOException| Method Detail |
|---|
public static <T> T loadSchemaAndFile(java.lang.String xsdPath,
java.lang.String xmlns,
java.lang.String schemaLocation,
java.lang.String xmlRoot,
java.lang.Class<T> rootClass,
java.net.URL urlXML)
throws org.xml.sax.SAXException,
javax.xml.bind.JAXBException,
java.io.IOException
xsdPath - XSD file path.xmlns - XML namespace, will be added if non found in the XMLschemaLocation - XML schema location, will be added if non found in
the XMLxmlRoot - Root element of the XML (for completing the XML if XSD
xmlns is missing)rootClass - Root class used for instantiating JAXB.urlXML - XML to load.
org.xml.sax.SAXException - If creating the schema fails.
java.io.IOException - If fetching the XML fails.
javax.xml.bind.JAXBException - If parsing the XML fails.
public static <T> T loadSchemaAndFile(java.lang.String xsdPath,
java.lang.String xmlns,
java.lang.String schemaLocation,
java.lang.String xmlRoot,
java.lang.Class<T> rootClass,
java.lang.String xml)
throws org.xml.sax.SAXException,
javax.xml.bind.JAXBException,
java.io.IOException
xsdPath - XSD file path.xmlns - XML namespace, will be added if non found in the XMLschemaLocation - XML schema location, will be added if non found in
the XMLxmlRoot - Root element of the XML (for completing the XML if XSD
xmlns is missing)rootClass - Root class used for instantiating JAXB.xml - XML to load.
org.xml.sax.SAXException - If creating the schema fails.
java.io.IOException - If fetching the XML fails.
javax.xml.bind.JAXBException - If parsing the XML fails.public Topology getTopology()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||