defaultState.setNextState(defaultState);
// The current state is initially the default state.
currentState = defaultState;
final ODOMChangeListener hierarchyChangeListener =
new ODOMChangeListener() {
public void changed(ODOMObservable node,
ODOMChangeEvent event) {
if (event.getSource() instanceof Element) {
ODOMElement source = (ODOMElement) event.getSource();
if (source != getElement()) {
processEvent(node, event);
}
}
}
};
final ODOMChangeListener attributeChangeListener =
new ODOMChangeListener() {
public void changed(ODOMObservable node,
ODOMChangeEvent event) {
if (event.getSource() instanceof Attribute) {
processEvent(node, event);
}