AT
- the AttributeType for this AttributeOT
- the type this attribute can belong topublic interface Attribute<AT extends AttributeType,OT extends Customizable<?>> extends OpenmrsData, SingleCustomValue<AT>
AttributeType
, which defines, among other things, whether it
is required, whether it may repeat, and how it is serialized and deserialized for storage.
These attribute types are intended for use cases that would involve adding custom columns to the base
table in a less generic system.
For example Visit has VisitAttributes (which implements Attribute<Visit>) that are defined by
VisitAttributeTypes.AttributeType
,
Customizable
Modifier and Type | Method and Description |
---|---|
AT |
getAttributeType() |
OT |
getOwner() |
void |
setOwner(OT owner)
Sets the owner of this attribute
|
getChangedBy, getDateChanged, setChangedBy, setDateChanged
getCreator, getDateCreated, setCreator, setDateCreated
getId, getUuid, setId, setUuid
getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setDateVoided, setVoided, setVoidedBy, setVoidReason
getDescriptor, getValue, getValueReference, isDirty, setValue, setValueReferenceInternal
Copyright © 2024 OpenMRS Inc.. All rights reserved.