Package com.adaptris.core.json.jslt
Class JsltObjectVariables
java.lang.Object
com.adaptris.core.json.jslt.JsltObjectVariables
- All Implemented Interfaces:
JsltVariableBuilder
Builds a map of variables for JSLT from object metadata.
This allows you to use object metadata that is already of the type JsonNode; possibly via
a previous execution of JsltMetadataService with a JsltQueryToObjectMetadata. If
the key exists, but is not a JsonNode then an exception is likely.
In the adapter configuration file this class is aliased as jslt-object-variable which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(AdaptrisMessage msg) The filter you wish to apply to for object metadatavoidsetObjectMetadataKeyRegexp(String objectMetadataKeyRegexp) The filter you wish to apply to for object metadatawithObjectMetadataKeyRegexp(String regexp)
-
Constructor Details
-
JsltObjectVariables
public JsltObjectVariables()
-
-
Method Details
-
build
- Specified by:
buildin interfaceJsltVariableBuilder
-
withObjectMetadataKeyRegexp
-
getObjectMetadataKeyRegexp
The filter you wish to apply to for object metadataThe regular expression should only match object metadata that is of the type
JsonNode. If not specified then no object metadata is included. -
setObjectMetadataKeyRegexp
The filter you wish to apply to for object metadataThe regular expression should only match object metadata that is of the type
JsonNode. If not specified then no object metadata is included.
-