DhPropertyBag Class

DhPropertyBag Class

This Package | All Packages

public class DhPropertyBag

Retrieves values in the <PARAM> attributes of the module's HTML tags. You never actually create this class; instead, an instance of this class is passed along to DhModule.LoadParameters.

Methods
Name Description
getInt(String name) Retrieves the NAME parameter of a PARAM tag given the VALUE parameter.
getString(String name) Retrieves the VALUE parameter of a PARAM tag given the NAME parameter.

Methods

DhPropertyBag.getInt

Syntax
public int getInt( String name );
Parameters
name
The NAME parameter of the PARAM tag.
Return Value

Returns the corresponding numeric VALUE part of the same PARAM tag.

Description

Retrieves the NAME parameter of a PARAM tag given the VALUE parameter. For example, for the construct <PARAM NAME=fee VALUE=33>, this method retrieves the 33 when getInt("fee") is called.

DhPropertyBag.getString

Syntax
public String getString( String name );
Parameters
name
The NAME parameter of the PARAM tag.
Return Value

Returns the corresponding VALUE part of the same PARAM tag.

Description

Retrieves the VALUE parameter of a PARAM tag given the NAME parameter. For example, for the construct <PARAM NAME=foo VALUE=bar>, this method retrieves the "bar" when getString("foo") is called.