Interface Element

All Superinterfaces:
Serializable
All Known Subinterfaces:
ConsistsOf<S,T>, ConsistsOfType, Context, Encrypted, Entity, EntityElement, EntityType, ERElement, Event, Facet, FacetType, IdentifiableElement, IsParentOf, IsRelatedTo<S,T>, IsRelatedToType, LinkedEntity, Metadata, ModelElement, PropagationConstraint, Property, PropertyDefinition, PropertyElement, PropertyType, QueryTemplate, QueryTemplateReference, Relation<S,T>, RelationElement<S,T>, RelationType<S,T>, Resource, ResourceType, SchemaMixedElement, TemplateVariable, Type
All Known Implementing Classes:
ConsistsOfImpl, ConsistsOfTypeImpl, ContextImpl, DummyFacet, DummyIsRelatedTo, DummyResource, ElementImpl, EncryptedImpl, EntityElementImpl, EntityImpl, EntityTypeImpl, EventImpl, FacetImpl, FacetTypeImpl, IsParentOfImpl, IsRelatedToImpl, IsRelatedToTypeImpl, LinkedEntityImpl, MetadataImpl, PropagationConstraintImpl, PropertyDefinitionImpl, PropertyElementImpl, PropertyImpl, PropertyTypeImpl, QueryTemplateImpl, QueryTemplateReferenceImpl, RelationElementImpl, RelationImpl, RelationTypeImpl, ResourceImpl, ResourceTypeImpl, TemplateVariableImpl, TypeImpl

@TypeMetadata(name="Element", description="This is the base type for Element", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface Element extends Serializable
The base interface for all elements in the Information System model.

This interface provides a common foundation for various types of elements, ensuring they are serializable and can be identified by type during JSON processing. It defines constants for type identification and date-time formatting.

Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The standard date-time pattern used for serializing and deserializing dates across all elements.
    static final String
    The name of the element type.
    static final String
    The name of the property used to store the type of the element during JSON serialization.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the element's type.
  • Field Details

    • NAME

      static final String NAME
      The name of the element type.
      See Also:
    • TYPE_PROPERTY

      static final String TYPE_PROPERTY
      The name of the property used to store the type of the element during JSON serialization.
      See Also:
    • DATETIME_PATTERN

      static final String DATETIME_PATTERN
      The standard date-time pattern used for serializing and deserializing dates across all elements. The pattern is "yyyy-MM-dd HH:mm:ss.SSS Z".
      See Also:
  • Method Details

    • getTypeName

      String getTypeName()
      Returns the name of the element's type. This is typically used for type identification in serialized forms.
      Returns:
      The type name of the element.