Package org.openbravo.dal.xml
Class ModelXMLConverter
- java.lang.Object
-
- org.openbravo.dal.xml.ModelXMLConverter
-
- All Implemented Interfaces:
OBProvidable
,OBSingleton
public class ModelXMLConverter extends Object implements OBSingleton
Generates the XML Schema which represents the REST Webservice in and output. The XML Schema is generated on the basis of the in-memory model provided by theModelProvider
.
-
-
Constructor Summary
Constructors Constructor Description ModelXMLConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addErrorSchema(org.dom4j.Element rootSchema)
protected void
addPropertyElements(org.dom4j.Element sequence, Entity e)
org.dom4j.Document
getEntitiesAsXML()
Returns the list of Entities as XML representations.static ModelXMLConverter
getInstance()
org.dom4j.Document
getSchema()
Generates the XML Schema representation of the in-memory model.
-
-
-
Method Detail
-
getInstance
public static ModelXMLConverter getInstance()
-
getEntitiesAsXML
public org.dom4j.Document getEntitiesAsXML()
Returns the list of Entities as XML representations.- Returns:
- the Dom4j document containing the list of Entities
-
getSchema
public org.dom4j.Document getSchema()
Generates the XML Schema representation of the in-memory model. This XML Schema represents the in- and output of the REST web-services.- Returns:
- the Dom4j document containing the XML Schema.
-
addPropertyElements
protected void addPropertyElements(org.dom4j.Element sequence, Entity e)
-
addErrorSchema
protected void addErrorSchema(org.dom4j.Element rootSchema)
-
-