Class RecordXmlTransformer

java.lang.Object
org.frankframework.batch.AbstractRecordHandler
org.frankframework.batch.RecordXmlTransformer
All Implemented Interfaces:
IRecordHandler, FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, IWithParameters, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
RecordXml2Sender

public class RecordXmlTransformer extends AbstractRecordHandler
Deprecated.
Warning: non-maintained functionality.
Encapsulates a record in XML, optionally translates it using XSLT or XPath.
Author:
John Dekker / Gerrit van Brakel
  • Constructor Details

    • RecordXmlTransformer

      public RecordXmlTransformer()
      Deprecated.
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Deprecated.
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class AbstractRecordHandler
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • handleRecord

      public String handleRecord(PipeLineSession session, List<String> parsedRecord) throws Exception
      Deprecated.
      Description copied from interface: IRecordHandler
      Perform an action on the array of fields.
      Returns:
      transformed result
      Throws:
      Exception
    • getXml

      protected XmlBuilder getXml(List<String> parsedRecord)
      Deprecated.
    • setOutputFields

      public void setOutputFields(String fieldLengths)
      Deprecated.
      comma separated string with tagnames for the individual input fields (related using there positions). if you leave a tagname empty, the field is not xml-ized
    • setRootTag

      public void setRootTag(String string)
      Deprecated.
      Root tag for the generated xml document that will be send to the Sender
      Default value
      record
    • setStyleSheetName

      public void setStyleSheetName(String string)
      Deprecated.
      Name of stylesheet to transform an individual record
    • setXpathExpression

      public void setXpathExpression(String string)
      Deprecated.
      Alternatively: xpath-expression to create stylesheet from
    • setNamespaceDefs

      public void setNamespaceDefs(String namespaceDefs)
      Deprecated.
      Namespace defintions for xpathExpression. Must be in the form of a comma or space separated list of prefix=namespaceuri-definitions. One entry can be without a prefix, that will define the default namespace.
    • setOutputType

      public void setOutputType(TransformerPool.OutputType outputType)
      Deprecated.
      Only valid for xpathExpression
      Default value
      text
    • setOmitXmlDeclaration

      public void setOmitXmlDeclaration(boolean b)
      Deprecated.
      Force the transformer generated from the xpath-expression to omit the xml declaration
      Default value
      true
    • setEndOfRecord

      public void setEndOfRecord(String string)
      Deprecated.
      String which ends the record and must be ignored