Package com.sas.lsaf.core
Class Attribute
java.lang.Object
com.sas.lsaf.core.Attribute
- All Implemented Interfaces:
Serializable
Representation of an attribute on an object. It contains an id and value. The id refers to the id to an
AttributeDefinition which is defined for an objectType.
See TypeService.getTypeById(String) to get the AttributeDefinitions for
an object type.- Since:
- 1.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionZero-arg constructor.Attribute(String id, Serializable value) Constructs an Attribute object which associates the given attribute id with the given value. -
Method Summary
-
Constructor Details
-
Attribute
public Attribute()Zero-arg constructor. -
Attribute
Constructs an Attribute object which associates the given attribute id with the given value.- Parameters:
id- the id of the attribute. Cannot benull.value- the value of this attribute. Can benull.
-
-
Method Details
-
setId
Set the id of this attribute.- Parameters:
id- A String containing the id to give to this attribute.
-
getId
Returns the id of this attribute. The id refers to the id to anAttributeDefinitionwhich is defined for an objectType. SeeTypeService.getTypeById(String)to get theAttributeDefinitions for an object type.- Returns:
- the id of the attribute.
-
setValue
Set the value of this attribute.- Parameters:
value- The serializable value to give to this attribute.
-
getValue
Returns the serializable value of this attribute.- Returns:
- the value of the attribute.
-
hashCode
public int hashCode() -
equals
-
toString
-