com.sap.netweaver.coll.shared.api.extension

Interface IExtensionContext

All Known Subinterfaces:
IExtensionResult

public interface IExtensionContext

Interface describing a context that transports parameters when an extension point is processed. The extension result is also a context.


Method Summary
 void addContext(IExtensionContext value)
          Add all parameters of a context to this context.
 Object getOptionalValue(String id)
          Retrieve the value of a parameter with id id.
 Hashtable getParameters()
          Get all parameters the context contaoins.
 String getType(String id)
          Return the parameter type.
 Object getValue(String id)
          Retrieve the value of a parameter with id id.
 boolean isReference(String id)
          Deprecated.  
 void putValue(String id, Object value)
          Add a parameter to the context.
 void putValue(String id, Object value, boolean isReference)
          Deprecated.  
 void putValue(String id, String type, Object value)
          Add a reference to a parameter to the context.
 void setReference(String id, boolean isReference)
          Deprecated.  
 void setType(String id, String type)
          Define if the type of the parameter with id id.
 int size()
          Return the amount of parameters the context contaoins.
 

Method Detail

getValue

public Object getValue(String id)
Retrieve the value of a parameter with id id. Throws an exeption if the value is not available.

Parameters:
id - Id of the parameter
Returns:
The value

getOptionalValue

public Object getOptionalValue(String id)
Retrieve the value of a parameter with id id. Does not throw an exeption if the value is not available.

Parameters:
id - Id of the parameter
Returns:
The value

getType

public String getType(String id)
Return the parameter type.

Returns:
The type

isReference

public boolean isReference(String id)
Deprecated.  


putValue

public void putValue(String id,
                     Object value)
Add a parameter to the context.

Parameters:
id - Id of the parameter
value - Value of the parameter

putValue

public void putValue(String id,
                     String type,
                     Object value)
Add a reference to a parameter to the context.

Parameters:
id - Id of the parameter
type - The type, taken from IParameterValue.type
value - Name of the referenced parameter

putValue

public void putValue(String id,
                     Object value,
                     boolean isReference)
Deprecated.  


setType

public void setType(String id,
                    String type)
Define if the type of the parameter with id id.

Parameters:
id - Id of the parameter
type - The type, taken from IParameterValue.type

setReference

public void setReference(String id,
                         boolean isReference)
Deprecated.  


size

public int size()
Return the amount of parameters the context contaoins.

Returns:
Amount of parameters

getParameters

public Hashtable getParameters()
Get all parameters the context contaoins.

Returns:
Hashtable containing all parameters

addContext

public void addContext(IExtensionContext value)
Add all parameters of a context to this context.

Parameters:
value - The other context


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.