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:
- "State" a read/write property
- "AnArray" a read/write indexed property
- "NbChanges" a read only property
-
Simple()
-
-
getAnArray()
- Getter for the "AnArray" property.The method
is compliant with the Bean design pattern.
-
getAnArray(int)
- Getter for the "AnArray" property.The method
is compliant with the Bean design pattern.
-
getNbChanges()
- Getter for the "NbChanges" property.The method
is compliant with the Bean design pattern.
-
getState()
- Getter for the "State" property.
-
setAnArray(int, String)
- Setter for the "AnArray" property.
-
setAnArray(String[])
- Setter for the "AnArray" property.
-
setState(String)
- Setter for the "State" property.
Simple
public Simple()
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.
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.
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.
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.
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.
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.
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