Class AbstractNodeProcessor

java.lang.Object
org.sentrysoftware.maven.metricshub.connector.parser.AbstractNodeProcessor
Direct Known Subclasses:
ConstantsProcessor, ExtendsProcessor

public abstract class AbstractNodeProcessor extends Object
Abstract base class for implementing a chain of responsibility pattern in processing JsonNodes. Each concrete subclass represents a specific processing step in the chain.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
    process(com.fasterxml.jackson.databind.JsonNode node)
    Process the provided JsonNode with the remaining chain of processors.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractNodeProcessor

      public AbstractNodeProcessor()
  • Method Details

    • process

      public com.fasterxml.jackson.databind.JsonNode process(com.fasterxml.jackson.databind.JsonNode node) throws IOException
      Process the provided JsonNode with the remaining chain of processors.
      Parameters:
      node - The JsonNode to be processed.
      Returns:
      An instance of JsonNode representing the result of the processing.
      Throws:
      IOException - If an I/O error occurs during the processing.