Enum Class EntityType

java.lang.Object
java.lang.Enum<EntityType>
eu.dnetlib.dhp.schema.common.EntityType
All Implemented Interfaces:
Serializable, Comparable<EntityType>, java.lang.constant.Constable

public enum EntityType extends Enum<EntityType>
Actual entity types in the Graph
  • Enum Constant Details

    • publication

      public static final EntityType publication
    • dataset

      public static final EntityType dataset
    • otherresearchproduct

      public static final EntityType otherresearchproduct
    • software

      public static final EntityType software
    • datasource

      public static final EntityType datasource
    • organization

      public static final EntityType organization
    • project

      public static final EntityType project
    • person

      public static final EntityType person
  • Method Details

    • values

      public static EntityType[] 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 EntityType 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
    • fromClass

      public static <T> EntityType fromClass(Class<T> clazz)
      Resolves the EntityType, given the relative class name
      Type Parameters:
      T - actual OafEntity subclass
      Parameters:
      clazz - the given class name
      Returns:
      the EntityType associated to the given class