Class KlumObjectSupport<T>

java.lang.Object
com.blackbuild.klum.ast.runtime.KlumObjectSupport<T>
Type Parameters:
T - the completed DSL Object type

public final class KlumObjectSupport<T> extends Object
Java-first support for a completed DSL Object or one of its completed subtrees.

This facade exposes the completed object's construction path, structural model path, composition structure, and stored validation without exposing its internal companion or generic extension metadata. A construction path identifies the Builder/factory invocation that created the object. It is distinct from a structural model path, contextual traversal paths, managed import sources, and validation locations; it does not represent provenance or lineage.

  • Method Details

    • of

      public static <T> KlumObjectSupport<T> of(T object)
      Creates support for a completed DSL Object.
      Type Parameters:
      T - the completed DSL Object type
      Parameters:
      object - a completed DSL Object or subtree
      Returns:
      support for object
      Throws:
      KlumException - if object is not a completed DSL Object
    • getObject

      public T getObject()
      Returns the completed DSL Object supplied to of(Object).
    • getConstructionPath

      public String getConstructionPath()
      Returns the immutable Builder/factory invocation path through which this completed DSL Object was constructed.

      This construction path is distinct from getModelPath(), contextual traversal paths, managed import sources, and validation locations. It does not retain provenance or lineage.

    • getModelPath

      public String getModelPath()
      Returns the structural model path of this completed DSL Object.
    • getStructure

      public KlumObjectSupport.Structure<T> getStructure()
      Returns composition structure support rooted at this completed DSL Object.
    • getValidation

      public KlumObjectSupport.Validation<T> getValidation()
      Returns stored validation support rooted at this completed DSL Object.