public class Attribute extends Object implements Serializable
AttributeDefinition
which is defined for an objectType
.
See TypeService.getTypeById(String)
to get the AttributeDefinition
s for
an object type.Constructor and Description |
---|
Attribute()
Zero-arg constructor.
|
Attribute(String id,
Serializable value)
Constructs an Attribute object which associates the given attribute id with the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId()
Returns the id of this attribute.
|
Serializable |
getValue()
Returns the serializable value of this attribute.
|
int |
hashCode() |
void |
setId(String id)
Set the id of this attribute.
|
void |
setValue(Serializable value)
Set the value of this attribute.
|
String |
toString() |
public Attribute()
public Attribute(String id, Serializable value)
id
- the id of the attribute. Cannot be null
.value
- the value of this attribute. Can be null
.public void setId(String id)
id
- A String containing the id to give to this attribute.public String getId()
AttributeDefinition
which is defined for an
objectType
. See TypeService.getTypeById(String)
to
get the AttributeDefinition
s for an object type.public void setValue(Serializable value)
value
- The serializable value to give to this attribute.public Serializable getValue()
<i>Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA</i>