|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Access to the context data of a controller.
All data managed by a controller is contained in its context. Contexts are structured as a tree of nodes which in turn contain attributes.
The context interface provides access to the root node,
to the meta data of the root node and to the
type info for a context attribute.
For contexts created with Web Dynpro design time tools, sub interfaces will be generated that provide typed access to the subnodes of the context rood node.
| Method Summary | |
IWDController |
getController()
Returns the API of the controller this context belongs to. |
ISimpleTypeModifiable |
getModifiableTypeOf(java.lang.String path)
Returns a modifiable data type of the context attribute identified by the given dot delimited path. |
java.lang.String |
getName()
Returns the name of this context. |
IWDNode |
getRootNode()
Returns the root node of this context. |
IWDNodeInfo |
getRootNodeInfo()
Returns the node info of the root node of this context. |
ISimpleType |
getTypeOf(java.lang.String path)
Returns the data type of the context attribute identified by the given dot delimited path. |
void |
reset()
Arbitrarily resets the context to its initial state. |
void |
reset(boolean clear)
Conditionally resets the context to its initial state. |
void |
resetChangedByClient()
Global reset of all changedByClient flags in all context node elements. |
| Method Detail |
public java.lang.String getName()
public IWDNode getRootNode()
public IWDNodeInfo getRootNodeInfo()
public ISimpleType getTypeOf(java.lang.String path)
path - the path, which identifies the context attributeContextException - if the path does not identify an attribute or
if the attribute's type is not an ISimpleTypepublic ISimpleTypeModifiable getModifiableTypeOf(java.lang.String path)
path - the path, which identifies the context attributeContextException - if the path does not identify an attribute or
if the attribute's type is not an ISimpleTypepublic void reset()
Warning: It is the responsibility of the application developer to ensure that all node and attribute mapping or binding dependencies are deactivated before this method is called.
Calling reset() when mapping or binding dependencies are still
active will have unpredictable results and possibly lead to a fatal error
in the Web Dynpro Framework for your application.
IWDNode.invalidate()public void reset(boolean clear)
clear parameter to false, data in node
collections created at design time will be preserved. All dynamically
added nodes and attributes are destroyed from the metadata.Calling reset(true) is functionally equivalent to calling reset().
The same warning given for method reset() about mapped or bound
nodes and attributes also applies to reset(boolean clear).
clear - Whether the data shall be cleared before cleaning the
metadata.reset()public void resetChangedByClient()
public IWDController getController()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||