com.sap.portal.obn.service

Interface IOBNParameterData


public interface IOBNParameterData

The interface that represents the data of a single OBN metadata parameter.

A parameter data instance is created using the OBNFactory. A parameter data instance can be initialized with a single value using createOBNParameterData(String) or with multiple values using createOBNParameterData(Set).

Example of adding a parameter with a single value to an OBN metadata object (myMetaData):

                        String paramName = "Year";
                        String paramValue = "2000"; 
                        IOBNParameterData myMetadataParam = myOBNFactory.createOBNParameterData(paramValue);
                        myMetaData.setParameter(paramName, myMetadataParam);
 


Method Summary
 Object clone()
          Creates and returns a copy of this parameter data object.
 String getValue()
          Returns the value of this parameter, or the first value if this is a multi-value parameter.
 Set getValues()
          Returns all values of this parameter.
 boolean isPost()
          Deprecated. This method is not supported.
 boolean isUseForResolving()
          Indicates whether this parameter is to be used for OBN navigation by attributes.
 void setPost(boolean isPost)
          Deprecated. This method is not supported.
 void setUseForResolving(boolean useForResolving)
          Sets this parameter to be used by OBN resolving for navigation by attributes.
 void setValue(String value)
          Sets a single value for this parameter data object.
 void setValues(Set values)
          Sets multiple values for this parameter data object.
 

Method Detail

setValue

void setValue(String value)
Sets a single value for this parameter data object.

A call to this method overwrites previously defined values of this parameter data object.

Parameters:
value - the parameter value

setValues

void setValues(Set values)
               throws OBNException
Sets multiple values for this parameter data object.

A call to this method overwrites previously defined values of this parameter data object.

Parameters:
values - a set of String objects to be set as the parameter values
Throws:
OBNException

getValue

String getValue()
Returns the value of this parameter, or the first value if this is a multi-value parameter.

To get all values of a multi-value parameter, use getValues.

Returns:
either the value of a single value parameter or the first value of a multi-value parameter

getValues

Set getValues()
Returns all values of this parameter.

Returns:
a set of String objects, where each String is a parameter value

setPost

void setPost(boolean isPost)
Deprecated. This method is not supported.

Sets the navigation method (either POST or GET) to use to send this parameter.

For internal use only.

Parameters:
isPost - if true, the parameter sent via the POST method; if false, the parameter is sent via the GET method

isPost

boolean isPost()
Deprecated. This method is not supported.

Indicates whether this parameter is sent using the POST method.

For internal use only.

Returns:
true if the parameter is sent using the POST method, false if the parameter is sent using the GET method

setUseForResolving

void setUseForResolving(boolean useForResolving)
Sets this parameter to be used by OBN resolving for navigation by attributes.

If this parameter is to be passed to the target and is irrelevant for OBN navigation by attributes, there is no need to invoke this method.

Parameters:
useForResolving - indicates whether this parameter is to be used for OBN navigation by attributes

isUseForResolving

boolean isUseForResolving()
Indicates whether this parameter is to be used for OBN navigation by attributes.

Returns:
true if the parameter is to be used for OBN navigation by attributes.

clone

Object clone()
Creates and returns a copy of this parameter data object.

Returns:
a duplicated instance of this parameter data
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice