public class XmlBuilder extends Object
Constructor and Description |
---|
XmlBuilder(XmlTypesConverter converter) |
Modifier and Type | Method and Description |
---|---|
void |
createAndBuildElementBody(Document document,
Node parent,
Type contentType,
Object content,
String xmlNamespace,
String nodeName,
String xsdType)
Creates element for given object and creates its body,
depending on what kind of object it is.
|
void |
createAndBuildRecordHolderBody(Document document,
Node parent,
RecordHolder recordHolder)
Creates element for given record holder and creates its body
based on its content.
|
Document |
createDocument() |
Element |
createElement(Document doc,
String namespace,
String nodeName)
Creates an element with given namespace and nodeName and set the correct prefix for it
|
String |
transformDocument(Document document) |
public XmlBuilder(XmlTypesConverter converter)
converter
- public Document createDocument()
public String transformDocument(Document document)
document
- public void createAndBuildRecordHolderBody(Document document, Node parent, RecordHolder recordHolder) throws XmlProcessingException
document
- parent
- recordHolder
- XmlProcessingException
public void createAndBuildElementBody(Document document, Node parent, Type contentType, Object content, String xmlNamespace, String nodeName, String xsdType) throws XmlProcessingException
document
- parent
- contentType
- content
- xmlNamespace
- nodeName
- xsdType
- XmlProcessingException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.