Class ModelTreeNode

java.lang.Object
ch.tocco.nice2.netui.actions.impl.modeltree.ModelTreeNode
Direct Known Subclasses:
FormModelTreeNode

public class ModelTreeNode extends Object
  • Field Details

    • idGenerator

      protected static final AtomicLong idGenerator
    • name

      protected String name
      required
    • type

      protected NodeType type
      required
    • parentEntity

      protected String parentEntity
      required
    • icon

      protected String icon
    • iconHtmlTag

      protected String iconHtmlTag
    • id

      protected long id
    • level

      protected int level
    • leaf

      protected boolean leaf
    • parent

      protected Long parent
    • labels

      protected Map<String,String> labels
    • dataType

      protected String dataType
    • required

      protected Boolean required
    • localized

      protected Boolean localized
    • key

      protected Boolean key
    • documentation

      protected Optional<LinkedHashMap<String,String>> documentation
  • Constructor Details

    • ModelTreeNode

      public ModelTreeNode()
    • ModelTreeNode

      public ModelTreeNode(long id, String name, String type, String parentEntity, Map<String,String> labels, int level, Long parent, boolean leaf)
  • Method Details

    • generateId

      public void generateId()
    • getParent

      public Long getParent()
    • setParent

      public void setParent(Long parent)
    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int level)
    • isLeaf

      public boolean isLeaf()
    • setLeaf

      public void setLeaf(boolean leaf)
    • getIcon

      public String getIcon()
    • setIconNameAndHtmlTag

      public void setIconNameAndHtmlTag(String name, String description)
    • getIconHtmlTag

      public String getIconHtmlTag()
    • setName

      public void setName(String name)
    • setType

      public void setType(NodeType type)
    • setParentEntity

      public void setParentEntity(String parentEntity)
    • setIcon

      public void setIcon(String icon)
    • getParentEntity

      public String getParentEntity()
    • getName

      public String getName()
    • getType

      public NodeType getType()
    • getLabels

      public Map<String,String> getLabels()
    • setLabels

      public void setLabels(Map<String,String> labels)
    • getDataType

      public String getDataType()
    • setDataType

      public void setDataType(String dataType)
    • getDocumentation

      @Nullable public @Nullable String getDocumentation()
      Returns the documentation for the ModelElement as HTML string. The documentation gets separated by each AppModule that contributes documentation to the ModelElement sorted by the order in which the AppModules were loaded. Each contributed documentation element gets processed by the HtmlRenderer to allow the usage of Markdown in the documentation, which at this point is parsed to HTML code.
      Returns:
      the formatted html code of documentation for this ModelElement
    • setDocumentation

      public void setDocumentation(@Nullable @Nullable LinkedHashMap<String,String> documentation)
    • getRequired

      public Boolean getRequired()
    • setRequired

      public void setRequired(Boolean required)
    • getLocalized

      public Boolean getLocalized()
    • setLocalized

      public void setLocalized(Boolean localized)
    • getKey

      public Boolean getKey()
    • setKey

      public void setKey(Boolean key)
    • getDefiningModule

      public String getDefiningModule()
    • setDefiningModule

      public void setDefiningModule(String definingModule)
    • toString

      public String toString()
      Overrides:
      toString in class Object