Class EntityAttribute
- java.lang.Object
-
- com.inteliqua.rest.common.attribute.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 Summary
Constructors Constructor Description EntityAttribute()Default constructor required by Jackson for deserialization.EntityAttribute(AttributeDataType dataType, String attributeName, String attributeValue)Constructs an EntityAttribute with the specified data type, name, and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName()Gets the name of the attribute.StringgetAttributeValue()Gets the value of the attribute.AttributeDataTypegetDataType()Gets the data type of the attribute.StringtoString()Returns a string representation of the entity attribute.
-
-
-
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.
-
-