public class ContextStack extends Object implements IContextStack
Created 20. Januar 2003
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList |
contexts |
protected int |
contextsIndex |
| Constructor and Description |
|---|
ContextStack() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getTypeUnsafeContext()
Get actual context from stack of contexts.
|
Object |
getTypeUnsafeContextOrNullIfUnavailable()
Get actual context from stack of contexts.
|
boolean |
isAvailable()
Checks if there is at least one actual context stacked.
|
Object |
popTypeUnsafeContext()
Get and remove actual context from the stack of contexts.
|
void |
pushTypeUnsafeContext(Object context)
Add new context to the top of the stack of contexts.
|
void |
setTypeUnsafeContext(Object context)
Replace actual context with new one in stack of contexts.
|
int |
size()
Get the number of context entries in the stack of contexts.
|
protected ArrayList contexts
protected int contextsIndex
public boolean isAvailable()
isAvailable in interface IContextStackpublic int size()
size in interface IContextStackpublic Object getTypeUnsafeContext() throws ContextUnavailableException
getTypeUnsafeContext in interface IContextStackContextUnavailableException - when no (more) context is available
on the context stackpublic Object getTypeUnsafeContextOrNullIfUnavailable()
getTypeUnsafeContextOrNullIfUnavailable in interface IContextStackpublic void setTypeUnsafeContext(Object context)
setTypeUnsafeContext in interface IContextStackcontext - new actual context replacing the old one on the stackpublic Object popTypeUnsafeContext() throws ContextUnavailableException
popTypeUnsafeContext in interface IContextStackContextUnavailableException - when no (more) context is available
on the context stackpublic void pushTypeUnsafeContext(Object context)
pushTypeUnsafeContext in interface IContextStackcontext - new actual context| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice