Class NamespaceTreeNode

java.lang.Object
com._1c.g5.v8.dt.supply.internal.integration.NamespaceTreeNode

public class NamespaceTreeNode extends Object
Node of the namespace tree. Used as a part of the namespace representation during the build of the IntegrationModel
  • Constructor Details

    • NamespaceTreeNode

      public NamespaceTreeNode()
      Constructs the node
  • Method Details

    • addChild

      public void addChild(String fragment, NamespaceTreeNode childNode)
      Adds a child node to the current node.
      Parameters:
      fragment - The namespace fragment related to the child node. Cannot be null
      childNode - The child node to add. Cannot be null
    • getChild

      public NamespaceTreeNode getChild(String fragment)
      Gets the child node for the correspoding namespace fragment. Gets only direct child
      Parameters:
      fragment - The target fragment. Cannot be null
      Returns:
      The child node if available. Can be null
    • getChildren

      public Map<String,NamespaceTreeNode> getChildren()
      Gets the direct children of the node mapped to their namespace segments
      Returns:
      Children of the node. Cannot be null
    • isExcluded

      public boolean isExcluded()
      Checks if the namespace node is excluded from the integration
      Returns:
      True if the node is excluded; false otherwise
    • isUndetermined

      public boolean isUndetermined()
      Checks if the node is in undetermnined state. This state is used during the processing of the namespace tree
      Returns:
      True if the node is in undetermined state. False otherwise
    • setExcluded

      public void setExcluded(boolean excluded)
      Sets/re-sets the exclusion on the namespace node
      Parameters:
      excluded - True if the node should be excluded. False otherwise