Class ElementImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
- All Implemented Interfaces:
Serializable,Element
- Direct Known Subclasses:
EntityElementImpl,PropertyElementImpl,RelationElementImpl
The default implementation of the
Element interface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the element's type.toString()Returns a JSON representation of the element.
-
Constructor Details
-
ElementImpl
public ElementImpl()
-
-
Method Details
-
getTypeName
Returns the name of the element's type. This is typically used for type identification in serialized forms.- Specified by:
getTypeNamein interfaceElement- Returns:
- The type name of the element.
-
toString
Returns a JSON representation of the element.
-