A
- the type of attribute held@MappedSuperclass public abstract class BaseCustomizableMetadata<A extends Attribute> extends BaseChangeableOpenmrsMetadata implements Customizable<A>
BaseOpenmrsMetadata
for classes that support customization via user-defined attributes.Constructor and Description |
---|
BaseCustomizableMetadata() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(A attribute)
Adds an attribute.
|
Collection<A> |
getActiveAttributes() |
List<A> |
getActiveAttributes(CustomValueDescriptor ofType) |
Set<A> |
getAttributes() |
void |
setAttribute(A attribute)
Convenience method that voids all existing attributes of the given type, and sets this new one.
|
void |
setAttributes(Set<A> attributes) |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getUuid, setId, setUuid
public Set<A> getAttributes()
getAttributes
in interface Customizable<A extends Attribute>
Customizable.getAttributes()
public void setAttributes(Set<A> attributes)
attributes
- the attributes to setpublic Collection<A> getActiveAttributes()
getActiveAttributes
in interface Customizable<A extends Attribute>
Customizable.getActiveAttributes()
public List<A> getActiveAttributes(CustomValueDescriptor ofType)
getActiveAttributes
in interface Customizable<A extends Attribute>
Customizable.getActiveAttributes(org.openmrs.customdatatype.CustomValueDescriptor)
public void addAttribute(A attribute)
Customizable
addAttribute
in interface Customizable<A extends Attribute>
Customizable.addAttribute(Attribute)
public void setAttribute(A attribute)
attribute
- Copyright © 2024 OpenMRS Inc.. All rights reserved.