Class NodeDefinition.NodeDefinitionMap

java.lang.Object
ch.kk7.confij.tree.NodeDefinition
ch.kk7.confij.tree.NodeDefinition.NodeDefinitionMap
Enclosing class:
NodeDefinition

public static class NodeDefinition.NodeDefinitionMap
extends NodeDefinition
  • Constructor Details

  • Method Details

    • fixedKeysMap

      public static NodeDefinition.NodeDefinitionMap fixedKeysMap​(NodeBindingContext nodeBindingContext, java.util.Map<java.lang.String,​NodeDefinition> children)
      a map-like definition for a node where all keys are known and no optional ones are allowed.
      Parameters:
      nodeBindingContext - this nodes context
      children - the map of mandatory child definitions
      Returns:
      self
    • anyKeyMap

      public static NodeDefinition.NodeDefinitionMap anyKeyMap​(NodeBindingContext nodeBindingContext, NodeDefinition anyChild)
    • definitionForChild

      @NonNull public @NonNull NodeDefinition definitionForChild​(java.lang.String configKey)
      Specified by:
      definitionForChild in class NodeDefinition
      Parameters:
      configKey - the name/key of the child for which we want the definition
      Returns:
      an instance of self for a given named child node.
    • getMandatoryKeys

      @NonNull public @NonNull java.util.Set<java.lang.String> getMandatoryKeys()
      Overrides:
      getMandatoryKeys in class NodeDefinition
      Returns:
      a set of required names/keys for child nodes