public class OrderContext extends Object
| Constructor and Description |
|---|
OrderContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all the context attributes
|
Object |
getAttribute(String attributeName)
Gets the value of for the specified attribute name
|
CareSetting |
getCareSetting() |
Map<String,Object> |
getContextAttributes() |
OrderType |
getOrderType() |
void |
removeAttribute(String attributeName)
Removes the attribute with the specified name
|
void |
setAttribute(String attributeName,
Object attributeValue)
Adds the specified context attribute
|
void |
setCareSetting(CareSetting careSetting) |
void |
setContextAttributes(Map<String,Object> contextAttributes) |
void |
setOrderType(OrderType orderType) |
public OrderType getOrderType()
public void setOrderType(OrderType orderType)
orderType - the OrderType to setpublic CareSetting getCareSetting()
public void setCareSetting(CareSetting careSetting)
careSetting - the CareSetting to setpublic Map<String,Object> getContextAttributes()
public void setContextAttributes(Map<String,Object> contextAttributes)
contextAttributes - the context attributes to setpublic Object getAttribute(String attributeName)
attributeName - the attribute namepublic void setAttribute(String attributeName, Object attributeValue)
attributeName - the attribute nameattributeValue - the attribute valuepublic void removeAttribute(String attributeName)
attributeName - the attribute namepublic void clear()
Copyright © 2024 OpenMRS Inc.. All rights reserved.