@MappedSuperclass public abstract class BaseAttributeType<OwningType extends Customizable<?>> extends BaseChangeableOpenmrsMetadata implements AttributeType<OwningType>
AttributeType
. Actual implementations (e.g. VisitAttributeType,
ProviderAttributeType) should be able to extend this and provide very little of their own code.Constructor and Description |
---|
BaseAttributeType() |
Modifier and Type | Method and Description |
---|---|
String |
getDatatypeClassname()
Return the name of a class that implements
CustomDatatype . |
String |
getDatatypeConfig()
May be null.
|
String |
getHandlerConfig()
May be null.
|
Integer |
getMaxOccurs()
Implementation should never return a number <= 0.
|
Integer |
getMinOccurs()
Implementations should never return null.
|
String |
getPreferredHandlerClassname()
May be null.
|
void |
setDatatypeClassname(String datatypeClassname) |
void |
setDatatypeConfig(String datatypeConfig) |
void |
setHandlerConfig(String handlerConfig) |
void |
setMaxOccurs(Integer maxOccurs) |
void |
setMinOccurs(Integer minOccurs) |
void |
setPreferredHandlerClassname(String preferredHandlerClassname) |
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
getChangedBy, getDateChanged, getDescription, getName, setChangedBy, setDateChanged, setDescription, setName
getCreator, getDateCreated, setCreator, setDateCreated
getId, getUuid, setId, setUuid
getDateRetired, getRetired, getRetiredBy, getRetireReason, isRetired, setDateRetired, setRetired, setRetiredBy, setRetireReason
public Integer getMinOccurs()
RepeatingCustomValueDescriptor
getMinOccurs
in interface RepeatingCustomValueDescriptor
RepeatingCustomValueDescriptor.getMinOccurs()
public Integer getMaxOccurs()
RepeatingCustomValueDescriptor
getMaxOccurs
in interface RepeatingCustomValueDescriptor
RepeatingCustomValueDescriptor.getMaxOccurs()
public String getDatatypeClassname()
CustomValueDescriptor
CustomDatatype
.getDatatypeClassname
in interface CustomValueDescriptor
CustomValueDescriptor.getDatatypeClassname()
public String getDatatypeConfig()
CustomValueDescriptor
getDatatypeConfig
in interface CustomValueDescriptor
CustomValueDescriptor.getDatatypeConfig()
public String getPreferredHandlerClassname()
CustomValueDescriptor
getPreferredHandlerClassname
in interface CustomValueDescriptor
CustomDatatypeHandler
chosen by the
system administrator for this attribute type.CustomValueDescriptor.getPreferredHandlerClassname()
public String getHandlerConfig()
CustomValueDescriptor
getHandlerConfig
in interface CustomValueDescriptor
CustomValueDescriptor.getHandlerConfig()
public void setMinOccurs(Integer minOccurs)
minOccurs
- the minOccurs to setpublic void setMaxOccurs(Integer maxOccurs)
maxOccurs
- the maxOccurs to setpublic void setDatatypeClassname(String datatypeClassname)
datatypeClassname
- the datatypeClassname to setpublic void setDatatypeConfig(String datatypeConfig)
datatypeConfig
- the datatypeConfig to setpublic void setPreferredHandlerClassname(String preferredHandlerClassname)
preferredHandlerClassname
- the preferredHandlerClassname to setpublic void setHandlerConfig(String handlerConfig)
handlerConfig
- the handlerConfig to setCopyright © 2024 OpenMRS Inc.. All rights reserved.