Package org.openremote.model.attribute
Class AttributeRef
java.lang.Object
org.openremote.model.attribute.AttributeRef
- All Implemented Interfaces:
Serializable
A reference to an entity and an
Attribute
.
The id
and name
are required to identify an asset's attribute.
Two attribute references are equals(java.lang.Object)
if they reference the same asset
and attribute.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
@Pattern(regexp="^[0-9A-Za-z]{22}$", message="{Asset.id.Pattern}") protected @Pattern(regexp="^[0-9A-Za-z]{22}$",message="{Asset.id.Pattern}") String id -
name
@NotBlank(message="{Asset.valueHolder.name.NotBlank}") @Pattern(regexp="^\\w+$") protected @NotBlank(message="{Asset.valueHolder.name.NotBlank}") @Pattern(regexp="^\\w+$") String name
-
-
Constructor Details
-
AttributeRef
Constructs an attribute reference.- Parameters:
id
- the asset identifiername
- the attribute name
-
-
Method Details