All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.IndexSimple.Simple

java.lang.Object
   |
   +----examples.mo.IndexSimple.Simple

public class Simple
extends Object
implements Serializable
A simple definition of an m-bean.
The m-bean shows how to: The object has three properties:


Constructor Index

 o Simple()

Method Index

 o getAnArray()
Getter for the "AnArray" property.The method is compliant with the Bean design pattern.
 o getAnArray(int)
Getter for the "AnArray" property.The method is compliant with the Bean design pattern.
 o getNbChanges()
Getter for the "NbChanges" property.The method is compliant with the Bean design pattern.
 o getState()
Getter for the "State" property.
 o setAnArray(int, String)
Setter for the "AnArray" property.
 o setAnArray(String[])
Setter for the "AnArray" property.
 o setState(String)
Setter for the "State" property.

Constructors

 o Simple
 public Simple()

Methods

 o getState
 public String getState()
Getter for the "State" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "State" property.
 o setState
 public void setState(String s)
Setter for the "State" property. The method is compliant with the Bean design pattern.

Parameters:
s - the new value of the property.
 o getNbChanges
 public Integer getNbChanges()
Getter for the "NbChanges" property.The method is compliant with the Bean design pattern.

Returns:
the current value of the "NbChanges" property.
 o getAnArray
 public String[] getAnArray()
Getter for the "AnArray" property.The method is compliant with the Bean design pattern. This method retrieves the whole array.

Returns:
the current value of the "AnArray" property.
 o getAnArray
 public String getAnArray(int pos)
Getter for the "AnArray" property.The method is compliant with the Bean design pattern. This method retrieves a specific element in the array.

Parameters:
pos - index of the element to retrieve.
Returns:
element pos of the "AnArray" property.
 o setAnArray
 public void setAnArray(int pos,
                        String elmt)
Setter for the "AnArray" property. The method is compliant with the Bean design pattern. This method sets a specific element in the array.

Parameters:
pos - index of the element to set.
s - the new value of the property.
 o setAnArray
 public void setAnArray(String array[])
Setter for the "AnArray" property. The method is compliant with the Bean design pattern. This method sets the whole array.

Parameters:
array - the new value of the property.

All Packages  Class Hierarchy  This Package  Previous  Next  Index