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