Class MetapathEvaluationFeature<V>

java.lang.Object
dev.metaschema.core.configuration.AbstractConfigurationFeature<V>
dev.metaschema.core.metapath.MetapathEvaluationFeature<V>
Type Parameters:
V - the feature value Java type
All Implemented Interfaces:
IConfigurationFeature<V>

public final class MetapathEvaluationFeature<V> extends AbstractConfigurationFeature<V>
Provides a mechanism to configure Metapath evaluation settings.
  • Field Details

    • METAPATH_EVALUATE_PREDICATES

      @NonNull public static final MetapathEvaluationFeature<Boolean> METAPATH_EVALUATE_PREDICATES
      If enabled, evaluate predicates, otherwise skip evaluating them.
    • METAPATH_ATOMIZE_NO_DATA_AS_EMPTY

      @NonNull public static final MetapathEvaluationFeature<Boolean> METAPATH_ATOMIZE_NO_DATA_AS_EMPTY
      If enabled, atomization of a node item that has no associated typed value (for example, a flag or field node reached while walking a module definition rather than an instance document) yields a null atomic value instead of raising InvalidTypeFunctionException with code InvalidTypeFunctionException.NODE_HAS_NO_TYPED_VALUE.

      This is intended for visitors and tools that traverse an IModuleNodeItem graph and need downstream function calls (for example fn:resolve-uri or fn:doc) to degrade gracefully when they receive a no-data flag rather than an instance value.