public interface ProjectionFactory
| Modifier and Type | Method and Description |
|---|---|
String |
asString(Object projection)
Convert a projection to XML string.
|
ProjectionIO |
io()
Access a projection IO factory.
|
<T> T |
projectDOMNode(Node documentOrElement,
Class<T> projectionInterface)
Creates a projection from XML Documents or Elements to Java.
|
<T> T |
projectEmptyDocument(Class<T> projectionInterface)
Create a new projection for an empty document.
|
<T> T |
projectEmptyElement(String name,
Class<T> projectionInterface)
Create a new projection for an empty element.
|
<T> T |
projectXMLString(String xmlContent,
Class<T> projectionInterface)
Creates a projection from XML content to Java.
|
<T> T projectEmptyDocument(Class<T> projectionInterface)
projectionInterface - <T> T projectEmptyElement(String name, Class<T> projectionInterface)
name - Element nameprojectionInterface - <T> T projectDOMNode(Node documentOrElement, Class<T> projectionInterface)
documentOrElement - XML DOM Node. May be a document or just an element.projectionInterface - A Java interface to project the data on.<T> T projectXMLString(String xmlContent, Class<T> projectionInterface)
xmlContent - a string with XML contentprojectionInterface - A Java interface to project the data on.String asString(Object projection)
projection - ProjectionIO io()
ProjectionIOCopyright © 2012-12-21-2017. All Rights Reserved.