Package com.blackbuild.klum.ast.runtime
Class KlumObjectSupport<T>
java.lang.Object
com.blackbuild.klum.ast.runtime.KlumObjectSupport<T>
- Type Parameters:
T- the completed DSL Object type
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStructural support rooted at a completed DSL Object.static final classStored validation support rooted at a completed DSL Object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the immutable Builder/factory invocation path through which this completed DSL Object was constructed.Returns the structural model path of this completed DSL Object.Returns the completed DSL Object supplied toof(Object).Returns composition structure support rooted at this completed DSL Object.Returns stored validation support rooted at this completed DSL Object.static <T> KlumObjectSupport<T>of(T object) Creates support for a completed DSL Object.
-
Method Details
-
of
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- ifobjectis not a completed DSL Object
-
getObject
Returns the completed DSL Object supplied toof(Object). -
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
Returns the structural model path of this completed DSL Object. -
getStructure
Returns composition structure support rooted at this completed DSL Object. -
getValidation
Returns stored validation support rooted at this completed DSL Object.
-