@MappedSuperclass public abstract class BaseAttributeType<OwningType extends Customizable<?>> extends BaseOpenmrsMetadata 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 |
---|---|
java.lang.String |
getDatatypeClassname()
Return the name of a class that implements
CustomDatatype . |
java.lang.String |
getDatatypeConfig()
May be null.
|
java.lang.String |
getHandlerConfig()
May be null.
|
java.lang.Integer |
getMaxOccurs()
Implementation should never return a number <= 0.
|
java.lang.Integer |
getMinOccurs()
Implementations should never return null.
|
java.lang.String |
getPreferredHandlerClassname()
May be null.
|
void |
setDatatypeClassname(java.lang.String datatypeClassname) |
void |
setDatatypeConfig(java.lang.String datatypeConfig) |
void |
setHandlerConfig(java.lang.String handlerConfig) |
void |
setMaxOccurs(java.lang.Integer maxOccurs) |
void |
setMinOccurs(java.lang.Integer minOccurs) |
void |
setPreferredHandlerClassname(java.lang.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
getDescription, getName, setDescription, setName
getChangedBy, getCreator, getDateChanged, getDateCreated, setChangedBy, setCreator, setDateChanged, setDateCreated
getDateRetired, getRetiredBy, getRetireReason, isRetired, setDateRetired, setRetired, setRetiredBy, setRetireReason
getId, getUuid, setId, setUuid
public java.lang.Integer getMinOccurs()
RepeatingCustomValueDescriptor
getMinOccurs
in interface RepeatingCustomValueDescriptor
RepeatingCustomValueDescriptor.getMinOccurs()
public java.lang.Integer getMaxOccurs()
RepeatingCustomValueDescriptor
getMaxOccurs
in interface RepeatingCustomValueDescriptor
RepeatingCustomValueDescriptor.getMaxOccurs()
public java.lang.String getDatatypeClassname()
CustomValueDescriptor
CustomDatatype
.getDatatypeClassname
in interface CustomValueDescriptor
CustomValueDescriptor.getDatatypeClassname()
public java.lang.String getDatatypeConfig()
CustomValueDescriptor
getDatatypeConfig
in interface CustomValueDescriptor
CustomValueDescriptor.getDatatypeConfig()
public java.lang.String getPreferredHandlerClassname()
CustomValueDescriptor
getPreferredHandlerClassname
in interface CustomValueDescriptor
CustomDatatypeHandler
chosen by the
system administrator for this attribute type.CustomValueDescriptor.getPreferredHandlerClassname()
public java.lang.String getHandlerConfig()
CustomValueDescriptor
getHandlerConfig
in interface CustomValueDescriptor
CustomValueDescriptor.getHandlerConfig()
public void setMinOccurs(java.lang.Integer minOccurs)
minOccurs
- the minOccurs to setpublic void setMaxOccurs(java.lang.Integer maxOccurs)
maxOccurs
- the maxOccurs to setpublic void setDatatypeClassname(java.lang.String datatypeClassname)
datatypeClassname
- the datatypeClassname to setpublic void setDatatypeConfig(java.lang.String datatypeConfig)
datatypeConfig
- the datatypeConfig to setpublic void setPreferredHandlerClassname(java.lang.String preferredHandlerClassname)
preferredHandlerClassname
- the preferredHandlerClassname to setpublic void setHandlerConfig(java.lang.String handlerConfig)
handlerConfig
- the handlerConfig to setCopyright © 2018 OpenMRS Inc.. All Rights Reserved.