Class ElementImpl

java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
All Implemented Interfaces:
Serializable, Element
Direct Known Subclasses:
EntityElementImpl, PropertyElementImpl, RelationElementImpl

public class ElementImpl extends Object implements Element
The default implementation of the Element interface.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Constructor Details

    • ElementImpl

      public ElementImpl()
  • Method Details

    • getTypeName

      public String getTypeName()
      Returns the name of the element's type. This is typically used for type identification in serialized forms.
      Specified by:
      getTypeName in interface Element
      Returns:
      The type name of the element.
    • toString

      public String toString()
      Returns a JSON representation of the element.
      Overrides:
      toString in class Object
      Returns:
      The JSON string representation of the object.