All Packages Class Hierarchy This Package Previous Next Index
Class examples.mo.Simple.Simple
java.lang.Object
|
+----examples.mo.Simple.Simple
- public class Simple
- extends Object
- implements Serializable
Very simple definition of a m-bean.
The m-bean shows how to:
- access properties via getter and setter methods.
- perform an action.
The object has two properties:
- "State" a read/write property
- "NbChanges" a read only property
-
Simple()
-
-
getNbChanges()
- Getter for the "NbChanges" property.
-
getState()
- Getter for the "State" property.
-
performReset()
- Resetter for the "NbChanges" 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.
performReset
public void performReset()
- Resetter for the "NbChanges" property.
All Packages Class Hierarchy This Package Previous Next Index