java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.TreeNodeData

public class TreeNodeData extends Object
Contains data for a tree node.
  • Constructor Details

    • TreeNodeData

      public TreeNodeData(String qualifier, String alias, IntegrationMapKeyDTO mapKeyDTO)
      Contains data for a tree node.
      Parameters:
      qualifier - Used for the label of the tree node if alias is null
      alias - Used for the label of the tree node if one is present
      mapKeyDTO - Used for the value of the tree node
  • Method Details

    • getQualifier

      public String getQualifier()
      Gets the qualifier of the attribute represented by the tree node.
      Returns:
      the qualifier of the attribute represented by the tree node.
    • getMapKeyDTO

      public IntegrationMapKeyDTO getMapKeyDTO()
      Gets the IntegrationMapKeyDTO of the attribute represented by the tree node.
      Returns:
      the IntegrationMapKeyDTO of the attribute represented by the tree node.
    • setMapKeyDTO

      public void setMapKeyDTO(IntegrationMapKeyDTO mapKeyDTO)
      Sets the IntegrationMapKeyDTO of the attribute represented by the tree node.
      Parameters:
      mapKeyDTO - the IntegrationMapKeyDTO of the attribute represented by the tree node.
    • getAlias

      public String getAlias()
      Gets the alias of the attribute represented by the tree node.
      Returns:
      the alias of the attribute represented by the tree node.
    • setAlias

      public void setAlias(String alias)
      Sets the alias of the attribute represented by the tree node.
      Parameters:
      alias - the alias of the attribute represented by the tree node.
    • createRootTreeNodeData

      public static TreeNodeData createRootTreeNodeData(IntegrationMapKeyDTO mapKeyDTO)
      Creates a TreeNodeData for the root item of the tree. This case is special as the root tree node does not have its label generated in the same way as other nodes.
      Parameters:
      mapKeyDTO - The value data of the tree node
      Returns:
      a TreeNodeData