public static class MO {
String name;
int state = 0;
PropertyChangeSupport support = new PropertyChangeSupport(this);
public MO() {
}
public MO(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
String oldName = this.name;
this.name = name;
support.firePropertyChange("name",oldName,name);
}
public int getState() {
return state;
}
public void setState(int state) {
int oldState = this.state;
this.state = state;
support.firePropertyChange("state",oldState,state);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
support.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(PropertyChangeListener
listener) {
support.removePropertyChangeListener(listener);
}
}
To retrieve the corresponding
IlpClass, execute the following (assuming
that you have a class manager):
IlpClass moAsIlpClass =
classManager.get(MO.getClass().getName());