org.netbeans.modules.xml.xam
Interface ComponentUpdater<C extends Component>

All Known Implementing Classes:
BPELComponentUpdater, ChildComponentUpdateVisitor, SyncUpdateVisitor

public interface ComponentUpdater<C extends Component>

Updater for children list of a component.

Author:
nn136682

Nested Class Summary
static class ComponentUpdater.Operation
           
static interface ComponentUpdater.Query<C extends Component>
          Provide capability to query for updatability.
 
Method Summary
 void update(C target, C child, ComponentUpdater.Operation operation)
          Updates children list.
 void update(C target, C child, int index, ComponentUpdater.Operation operation)
          Updates children list.
 

Method Detail

update

void update(C target,
            C child,
            ComponentUpdater.Operation operation)
Updates children list.

Parameters:
target - component to be updated
child - component to be added or removed.
operation - add or remove; if null, no update should happen, only query for possibility the update.

update

void update(C target,
            C child,
            int index,
            ComponentUpdater.Operation operation)
Updates children list.

Parameters:
target - component to be updated
child - component to be added or removed.
index - of child component to be added or removed.
operation - add or remove; if null, no update should happen, only query for possibility the update.