Class EntityAttribute

  • All Implemented Interfaces:
    Serializable

    public class EntityAttribute
    extends Object
    implements Serializable
    Represents an entity attribute with a data type, name, and value.

    This class defines an attribute that belongs to an entity, including its name, value, and data type. It is used to model various attributes dynamically.

    Author:
    tpapad
    See Also:
    Serialized Form
    • Constructor Detail

      • EntityAttribute

        public EntityAttribute()
        Default constructor required by Jackson for deserialization.
      • EntityAttribute

        public EntityAttribute​(AttributeDataType dataType,
                               String attributeName,
                               String attributeValue)
        Constructs an EntityAttribute with the specified data type, name, and value.
        Parameters:
        dataType - The data type of the attribute.
        attributeName - The name of the attribute.
        attributeValue - The value of the attribute as a string.
    • Method Detail

      • getAttributeName

        public String getAttributeName()
        Gets the name of the attribute.
        Returns:
        The attribute name.
      • getAttributeValue

        public String getAttributeValue()
        Gets the value of the attribute.
        Returns:
        The attribute value as a string.
      • getDataType

        public AttributeDataType getDataType()
        Gets the data type of the attribute.
        Returns:
        The data type of the attribute.
      • toString

        public String toString()
        Returns a string representation of the entity attribute.
        Overrides:
        toString in class Object
        Returns:
        A string containing the attribute name, value, and data type.