Tag Documentation

[tag libraries] [tags]

The following document contains a summary of all theJellytag libraries.

Tag Libraries

[tag libraries] [tags]

LibraryDescription
jelly:betwixt

A tag library for turning XML into beans or beans into XML using the Betwixt library

jelly:betwixt

A tag library for turning XML into beans or beans into XML using the Betwixt library

Tag NameDescription
introspectorCreates a Betwixt XMLIntrospector instance that can be used by the other Betwixt tags.
parseParses some XML specified via the given URI (which can be relative or an absolute URL) and outputs theparsed object. Typically this tag is customized by setting the introspector attribute or nesting a childintrospector tag inside it.

Tags

[tag libraries] [tags]

betwixt:introspector

Creates a Betwixt XMLIntrospector instance that can be used by the other Betwixt tags.

Attribute NameTypeDescription
attributeNameMapperorg.apache.commons.betwixt.strategy.NameMapperSets the name mapper used for attribute names.You can also use the Strings 'lowercase', 'uppercase' or 'hyphenated'as aliases to the common name mapping strategies or specify a class name String.
attributesForPrimitivesbooleanSets whether attributes or elements should be used for primitive types.The default is false.
elementNameMapperorg.apache.commons.betwixt.strategy.NameMapperSets the name mapper used for element names.You can also use the Strings 'lowercase', 'uppercase' or 'hyphenated'as aliases to the common name mapping strategies or specify a class name String.
escapeTextboolean
trimboolean
varjava.lang.StringSets the variable name to output the new XMLIntrospector to.If this attribute is not specified then this tag must be nestedinside an <parse>or <output>tag

betwixt:parse

Parses some XML specified via the given URI (which can be relative or an absolute URL) and outputs theparsed object. Typically this tag is customized by setting the introspector attribute or nesting a childintrospector tag inside it.

Attribute NameTypeDescription
classLoaderjava.lang.ClassLoaderSets the ClassLoader to be used to load bean classes from.If this is not specified then either the ClassLoader used to load this tag libraryis used or, if the 'useContextClassLoader' property is true, then thecurrent threads context class loader is used instead.
escapeTextboolean
introspectororg.apache.commons.betwixt.XMLIntrospectorSets the Betwixt XMLIntrospector instance used to define the metadata for how abean should appear as XML.
pathjava.lang.StringSets the path that the root class should be bound to.This is optional and often unnecessary though can be used to ignore some wrappingelements, such as the <rss>element in the RSS unit test.
rootClassjava.lang.StringSets the name of the root class to use for parsing the XML
trimboolean
urijava.lang.StringSets the URI from which XML is parsed. This can be relative to this Jelly script, usean absolute URI or a full URL
useContextClassLoaderbooleanSets whether or not the current threads's context class loadershould be used to load the bean classes or not.This can be useful if running inside a web application or inside someapplication server.
varjava.lang.StringSets the variable name to output with the result of the XML parse.