Interface OperationTransformerRegistry.PlaceholderResolver

Enclosing class:
OperationTransformerRegistry

public static interface OperationTransformerRegistry.PlaceholderResolver
An extra resolver to be used for OperationTransformerRegistry entries where placeholder==true. These placeholder entries transformers should create a new TransformationTarget containing the PlaceholderResolver and resolve the children themselves. Note that if a place holder resolver is used at a given resource address, this takes precedence over the normal transformer registry, so all children must use the placeholders.
  • Method Details

    • resolveOperationTransformer

      OperationTransformerRegistry.OperationTransformerEntry resolveOperationTransformer(Iterator<PathElement> iterator, String operationName)
      Resolves a resource transformer from the relative address of the current OperationTransformerRegistry entry
      Parameters:
      iterator - an iterator of the path elements of the resource we want to transform. On the initial call, this will be at the address of the placeholder entry
      operationName - the name of the operation transformer to resolve
      Returns:
      the operation transformer, or null if not found
    • resolvePathTransformers

      void resolvePathTransformers(Iterator<PathElement> iterator, List<PathAddressTransformer> list)
      Adds path address transformers to the list for the relative address and below of the current OperationTransformerRegistry entry
      Parameters:
      iterator - an iterator of the path elements of the resource we want to transform. On the initial call, this will be at the address of the placeholder entry
      list - the list of path address transformers to add the results to
    • resolveTransformerEntry

      TransformerEntry resolveTransformerEntry(Iterator<PathElement> iterator)
      Resolves a TransformerEntry from the relative address of the current OperationTransformerRegistry entry
      Parameters:
      iterator - an iterator of the path elements of the resource we want to transform. On the initial call, this will be at the address of the placeholder entry
      Returns:
      the transformer entry, or null if not found