|
||||||||||
| 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(String xml,
DeploymeVersion deploymeVersion)
Constructor. |
|
XmlLoader(URL topologyUrl,
DeploymeVersion deploymeVersion)
Constructor. |
|
| Method Summary | ||
|---|---|---|
Object |
getTopology()
Return the loaded topology |
|
|
loadSchemaAndFile(String xsdPath,
String xmlns,
String schemaLocation,
String xmlRoot,
Class<T> rootClass,
String xml)
Verifies an XML file against an XSD and instantiates it using a given class. |
|
|
loadSchemaAndFile(String xsdPath,
String xmlns,
String schemaLocation,
String xmlRoot,
Class<T> rootClass,
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(URL topologyUrl,
DeploymeVersion deploymeVersion)
throws SAXException,
javax.xml.bind.JAXBException,
IOException
topologyUrl - path to the xml topology filedeploymeVersion - DeploymeVersion
SAXException
javax.xml.bind.JAXBException
IOException
public XmlLoader(String xml,
DeploymeVersion deploymeVersion)
throws SAXException,
javax.xml.bind.JAXBException,
IOException
xml - XML to load.deploymeVersion - DeploymeVersion
SAXException
javax.xml.bind.JAXBException
IOException| Method Detail |
|---|
public <T> T loadSchemaAndFile(String xsdPath,
String xmlns,
String schemaLocation,
String xmlRoot,
Class<T> rootClass,
URL urlXML)
throws SAXException,
javax.xml.bind.JAXBException,
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.
SAXException - If creating the schema fails.
IOException - If fetching the XML fails.
javax.xml.bind.JAXBException - If parsing the XML fails.
public <T> T loadSchemaAndFile(String xsdPath,
String xmlns,
String schemaLocation,
String xmlRoot,
Class<T> rootClass,
String xml)
throws SAXException,
javax.xml.bind.JAXBException,
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.
SAXException - If creating the schema fails.
IOException - If fetching the XML fails.
javax.xml.bind.JAXBException - If parsing the XML fails.public Object getTopology()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||