Enum Class NodeType

java.lang.Object
java.lang.Enum<NodeType>
org.openforis.collect.designer.metamodel.NodeType
All Implemented Interfaces:
Serializable, Comparable<NodeType>, java.lang.constant.Constable

public enum NodeType extends Enum<NodeType>
Author:
S. Ricci
  • Enum Constant Details

    • ENTITY

      public static final NodeType ENTITY
    • ATTRIBUTE

      public static final NodeType ATTRIBUTE
  • Method Details

    • values

      public static NodeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NodeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLabel

      public String getLabel()
    • getHeaderLabel

      public static String getHeaderLabel(NodeDefinition nodeDefn, boolean rootEntity, boolean detached)
    • valueOf

      public static NodeType valueOf(NodeDefinition nodeDefn)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      nodeDefn - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createNodeDefinition

      public static <T extends NodeDefinition> T createNodeDefinition(Survey survey, NodeType nodeType, AttributeType attrType)
    • createNodeDefinition

      public static <T extends NodeDefinition> T createNodeDefinition(Survey survey, NodeType nodeType, AttributeType attrType, Integer id)