Class DefaultContext
- java.lang.Object
-
- com.hybris.cockpitng.dataaccess.context.impl.DefaultContext
-
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
NetworkChartContext
public class DefaultContext extends java.lang.Object implements Context
DefaultContextimplementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultContext.Builder
-
Constructor Summary
Constructors Constructor Description DefaultContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(java.lang.String name, java.lang.Object value)Add attribute identified bynamewithvalue.voidclearAttributes()Clear all attributes in prepared context;java.lang.ObjectgetAttribute(java.lang.String name)Get value of attribute named bynamejava.util.Set<java.lang.String>getAttributeNames()Get list of set attribute names.java.lang.ObjectremoveAttribute(java.lang.String name)Remove attribute named byname
-
-
-
Method Detail
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
Description copied from interface:ContextGet value of attribute named byname- Specified by:
getAttributein interfaceContext- Returns:
-
addAttribute
public void addAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:ContextAdd attribute identified bynamewithvalue.- Specified by:
addAttributein interfaceContext- Parameters:
name- - attribute namevalue- - attribute value
-
getAttributeNames
public java.util.Set<java.lang.String> getAttributeNames()
Description copied from interface:ContextGet list of set attribute names.- Specified by:
getAttributeNamesin interfaceContext- Returns:
- list of set attributes
-
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
Description copied from interface:ContextRemove attribute named byname- Specified by:
removeAttributein interfaceContext- Parameters:
name- - attribute name
-
clearAttributes
public void clearAttributes()
Description copied from interface:ContextClear all attributes in prepared context;- Specified by:
clearAttributesin interfaceContext
-
-