JXPath Object Formatter

Wrapper for apache commons-jxpath to generate string representations of JAXB-serializable objects

License

License

Categories

Categories

Net ORM Data
GroupId

GroupId

net.codesup.util
ArtifactId

ArtifactId

jxpath-object-formatter
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

JXPath Object Formatter
Wrapper for apache commons-jxpath to generate string representations of JAXB-serializable objects
Project URL

Project URL

https://github.com/mklemm/jxpath-object-formatter
Source Code Management

Source Code Management

https://github.com/mklemm/jxpath-object-formatter.git

Download jxpath-object-formatter

How to add to project

<!-- https://jarcasting.com/artifacts/net.codesup.util/jxpath-object-formatter/ -->
<dependency>
    <groupId>net.codesup.util</groupId>
    <artifactId>jxpath-object-formatter</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.codesup.util/jxpath-object-formatter/
implementation 'net.codesup.util:jxpath-object-formatter:1.2.0'
// https://jarcasting.com/artifacts/net.codesup.util/jxpath-object-formatter/
implementation ("net.codesup.util:jxpath-object-formatter:1.2.0")
'net.codesup.util:jxpath-object-formatter:jar:1.2.0'
<dependency org="net.codesup.util" name="jxpath-object-formatter" rev="1.2.0">
  <artifact name="jxpath-object-formatter" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.codesup.util', module='jxpath-object-formatter', version='1.2.0')
)
libraryDependencies += "net.codesup.util" % "jxpath-object-formatter" % "1.2.0"
[net.codesup.util/jxpath-object-formatter "1.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
net.codesup.util : jxpath jar 1.3.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

jxpath-object-formatter

Thin wrapper for apache commons-jxpath to provide a simple interface for creating string representations of objects using XPath expressions.

This uses a patched version of apache commons-jxpath to allow for XPath expressions that use the XML names of JAXB-serializable objects instead of pure java bean property names, so this module ist best used with the JAXB XJC plugin jaxb-format-plugin.

This module also registers a number of extension functions (see javadoc or source for class JXPathFormatExtension) that can be used in XPath expressions and may be useful for some special cases.

Specify the class com.kscs.util.jaxb.format.ObjectFormatter as an argument to the "-formatter" command line option of the jaxb-format-plugin, then annotate your XSD complexTypes with the "expression" binding customization, setting the "select" attribute to an XPath expression that evaluates to a string value.

Versions

Version
1.2.0
1.1.0