A - the type of attribute heldpublic abstract class BaseCustomizableMetadata<A extends Attribute> extends BaseOpenmrsMetadata 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.
|
java.util.Collection<A> |
getActiveAttributes() |
java.util.List<A> |
getActiveAttributes(CustomValueDescriptor ofType) |
java.util.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(java.util.Set<A> attributes) |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReasonequals, getUuid, hashCode, setUuid, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getUuid, setId, setUuidpublic java.util.Set<A> getAttributes()
getAttributes in interface Customizable<A extends Attribute>Customizable.getAttributes()public void setAttributes(java.util.Set<A> attributes)
attributes - the attributes to setpublic java.util.Collection<A> getActiveAttributes()
getActiveAttributes in interface Customizable<A extends Attribute>Customizable.getActiveAttributes()public java.util.List<A> getActiveAttributes(CustomValueDescriptor ofType)
getActiveAttributes in interface Customizable<A extends Attribute>Customizable.getActiveAttributes(org.openmrs.customdatatype.CustomValueDescriptor)public void addAttribute(A attribute)
CustomizableaddAttribute in interface Customizable<A extends Attribute>org.openmrs.customdatatype.Customizable#addAttribute(org.openmrs.customdatatype.SingleCustomValue)public void setAttribute(A attribute)
attribute - Copyright © 2018 OpenMRS Inc.. All Rights Reserved.