public class Attribute extends Object implements Serializable
Attributes are placed on domain objects as a map of attribute names to attribute values:
Map<String, Attribute>
.
Constructor and Description |
---|
Attribute() |
Attribute(Serializable value,
Map<String,Object> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String name,
Object value)
Takes in any additional attributes passed in the request not matching any defined properties.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,Object> |
getAttribute()
Return any additional attributes passed in the request not matching any defined properties.
|
Map<String,Object> |
getAttributes()
Map holding any additional attributes passed in the request not matching any defined
properties.
|
Serializable |
getValue()
The value represented by this attribute.
|
int |
hashCode() |
void |
setAttributes(Map<String,Object> attributes)
Map holding any additional attributes passed in the request not matching any defined
properties.
|
void |
setValue(Serializable value)
The value represented by this attribute.
|
String |
toString() |
public Attribute()
public Attribute(Serializable value, Map<String,Object> attributes)
public void addAttribute(String name, Object value)
name
- Name of the additional attributevalue
- Value of the additional attributepublic Map<String,Object> getAttribute()
public Serializable getValue()
Map<String, Attribute>
.public Map<String,Object> getAttributes()
public void setValue(Serializable value)
Map<String, Attribute>
.value
- the value represented by this attributepublic void setAttributes(Map<String,Object> attributes)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.