Class AllowedValueCollectingNodeItemVisitor

All Implemented Interfaces:
INodeItemVisitor<DynamicContext,Void>

public class AllowedValueCollectingNodeItemVisitor extends AbstractRecursionPreventingNodeItemVisitor<DynamicContext,Void>
A visitor that traverses a Metaschema module's node items and collects all allowed-values constraints, organized by the target node they apply to.

This visitor extends AbstractRecursionPreventingNodeItemVisitor to safely handle recursive assembly definitions without infinite looping.

Usage example:

 AllowedValueCollectingNodeItemVisitor visitor
     = new AllowedValueCollectingNodeItemVisitor();
 visitor.visit(module);
 Collection<NodeItemRecord> locations = visitor.getAllowedValueLocations();