Package | Description |
---|---|
org.xmlbeam |
This package contains the
XBProjector which is the starting point of using XMLBeam. |
org.xmlbeam.evaluation |
Package for classes and interfaces related to the direct evaluation API.
|
org.xmlbeam.io |
Classes used to read and write projections.
|
Modifier and Type | Method and Description |
---|---|
ProjectionIO |
XBProjector.io()
Access to the input/output features of this projector.
|
CanEvaluateOrProject |
XBProjector.onXMLString(String xmlContent) |
<T> T |
XBProjector.projectDOMNode(Node documentOrElement,
Class<T> projectionInterface)
Creates a projection from XML Documents or Elements to Java.
|
<T> T |
XBProjector.projectEmptyDocument(Class<T> projectionInterface)
Create a new projection for an empty document.
|
<T> T |
XBProjector.projectEmptyElement(String name,
Class<T> projectionInterface)
Create a new projection for an empty element.
|
<T> T |
XBProjector.projectXMLString(String xmlContent,
Class<T> projectionInterface)
Creates a projection from XML content to Java.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
XPathEvaluator.as(Class<T> returnType)
Evaluate the XPath as a value of the given type.
|
<T> CloseableValue<T> |
XPathBinder.as(Class<T> returnType)
Evaluate the XPath as a value of the given type.
|
<T> T[] |
XPathEvaluator.asArrayOf(Class<T> componentType)
Evaluate the XPath as an array of the given type.
|
boolean |
XPathEvaluator.asBoolean()
Evaluates the XPath as a boolean value.
|
CloseableValue<Boolean> |
XPathBinder.asBoolean()
Evaluates the XPath as a boolean value.
|
Date |
XPathEvaluator.asDate()
Evaluates the XPath as a Date value.
|
CloseableValue<Date> |
XPathBinder.asDate()
Evaluates the XPath as a Date value.
|
int |
XPathEvaluator.asInt()
Evaluates the XPath as a int value.
|
CloseableValue<Integer> |
XPathBinder.asInt()
Evaluates the XPath as a int value.
|
<T> List<T> |
XPathEvaluator.asListOf(Class<T> componentType)
Evaluate the XPath as a list of the given type.
|
<T> CloseableList<T> |
XPathBinder.asListOf(Class<T> componentType)
Evaluate the XPath as a list of the given type.
|
<T> XBAutoMap<T> |
XPathEvaluator.asMapOf(Class<T> componentType)
Evaluate the XPAth as a map of XPath strings to the given component type.
|
<T> CloseableMap<T> |
XPathBinder.asMapOf(Class<T> valueType)
Evaluate the XPath as a map with the given value type.
|
String |
XPathEvaluator.asString()
Evaluates the XPath as a String value.
|
CloseableValue<String> |
XPathBinder.asString()
Evaluates the XPath as a String value.
|
<T> XBAutoMap<T> |
CanEvaluateOrProject.createMapOf(Class<T> class1) |
<T> T |
CanEvaluateOrProject.createProjection(Class<T> type) |
XPathEvaluator |
CanEvaluate.evalXPath(String xpath) |
Modifier and Type | Method and Description |
---|---|
UrlIO |
UrlIO.addRequestProperties(Map<String,String> params)
Allows to add some request properties.
|
UrlIO |
UrlIO.addRequestProperty(String name,
String value)
Allows to add a single request property.
|
<T> CloseableMap<T> |
FileIO.bindAsMapOf(Class<T> valueType)
Bind complete document to a Map.
|
XPathBinder |
FileIO.bindXPath(String xpath)
Evaluate given XPath and bind result to a List or Map.
|
XPathEvaluator |
FileIO.evalXPath(String xpath) |
XPathEvaluator |
UrlIO.evalXPath(String xpath)
Evaluate XPath on the url document.
|
FileIO |
FileIO.failIfNotExists(boolean... create)
Set whether files should be created if they don't exist.
|
FileIO |
ProjectionIO.file(File file)
Get access to the file IO.
|
FileIO |
ProjectionIO.file(String fileName)
Get access to the file IO.
|
<T> T |
ProjectionIO.fromURLAnnotation(Class<T> projectionInterface,
Object... optionalParams)
Create a new projection using a
XBDocURL annotation on this interface. |
<T> T |
FileIO.read(Class<T> projectionInterface)
Read a XML document and return a projection to it.
|
<T> T |
StreamInput.read(Class<T> projectionInterface)
Create a new projection by parsing the data provided by the input stream.
|
<T> T |
UrlIO.read(Class<T> projectionInterface)
Create a new projection using a given URL parameter.
|
<T> XBAutoMap<T> |
FileIO.readAsMapOf(Class<T> valueType)
Read complete document to a Map.
|
<T> XBAutoMap<T> |
UrlIO.readAsMapOf(Class<T> valueType)
Read complete document to a Map.
|
FileIO |
FileIO.setAppend(boolean... append)
Set whether output should be append to existing file.
|
StreamInput |
StreamInput.setSystemID(String systemID)
As the system id usually cannot be determined by looking at the stream, this method allows it
to be set.
|
StreamInput |
ProjectionIO.stream(InputStream is)
Get access to the stream IO
|
StreamOutput |
ProjectionIO.stream(OutputStream os)
Get access to the stream IO
|
String |
ProjectionIO.toURLAnnotationViaPOST(Object projection,
Object... optionalParams)
Write projection document to url (file or http post) of
XBDocURL annotation. |
UrlIO |
ProjectionIO.url(String url)
Get access to the url IO.
|
void |
FileIO.write(Object projection) |
void |
StreamOutput.write(Object projection) |
String |
UrlIO.write(Object projection)
Post the projected document to a HTTP URL.
|
Copyright © 2012-12-21-2022. All Rights Reserved.