Class DescribedObjectROImpl

java.lang.Object
pl.edu.icm.unity.types.DescribedObjectROImpl
All Implemented Interfaces:
DescribedObject, NamedObject
Direct Known Subclasses:
BaseForm, CredentialType, DescribedObjectImpl

public class DescribedObjectROImpl extends Object implements DescribedObject
Read only implementation of DescribedObject interface. Useful for extending
Author:
K. Benedyczak
  • Field Details

    • name

      protected String name
    • description

      protected String description
  • Constructor Details

    • DescribedObjectROImpl

      protected DescribedObjectROImpl()
    • DescribedObjectROImpl

      public DescribedObjectROImpl(String name, String description)
    • DescribedObjectROImpl

      public DescribedObjectROImpl(com.fasterxml.jackson.databind.node.ObjectNode root)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface NamedObject
      Returns:
      human readable name of the object. Must be unique for the object class.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface DescribedObject
      Returns:
      human readable description of the object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJsonDescObj

      protected final void fromJsonDescObj(com.fasterxml.jackson.databind.node.ObjectNode root)
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object