Class NormalizeMetadataProcessor

All Implemented Interfaces:
NodeProcessor, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class NormalizeMetadataProcessor extends AbstractNodeProcessor
Metadata normalization processor.

This processor reads the configured list of operations for each source property and applies them in order, allowing each operation to consume the output from the previous one.

Supported operations

  • trim: remove leading and trailing blanks from string values.
  • collapse-whitespace: replace any run of whitespace with a single space.
  • case: apply a case mode with value=start|lower|upper.
  • regex: replace text with pattern and optional replace.
  • copy-to: copy the current value to another property named in value.
  • delete: set the source property to null.
  • parse-date-to: parse a textual date and assign the resulting Date value to the target property named in value.

Date parsing details

Date parsing first attempts Instant.parse(CharSequence) (ISO-8601), then falls back to yyyy-MM-dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss.SS, and yyyy-MM-dd HH:mm:ss.S interpreted in the JVM system default timezone.
  • Constructor Details

    • NormalizeMetadataProcessor

      public NormalizeMetadataProcessor()
  • Method Details

    • processNode

      public void processNode(String nodeId, ProcessorConfig config)
      Loads a node, applies normalization operations in configuration order, and updates the node with the transformed properties.
      Parameters:
      nodeId - target node identifier.
      config - processor configuration containing normalization operations per property.