org.netbeans.modules.xml.wsdl.model.impl
Class ChildComponentUpdateVisitor<T extends WSDLComponent>

java.lang.Object
  extended by org.netbeans.modules.xml.wsdl.model.impl.ChildComponentUpdateVisitor<T>
All Implemented Interfaces:
org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor, ComponentUpdater<T>

public class ChildComponentUpdateVisitor<T extends WSDLComponent>
extends java.lang.Object
implements org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor, ComponentUpdater<T>

Visitor to add or remove a child of a WSDL component.

Author:
Nam Nguyen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.netbeans.modules.xml.xam.ComponentUpdater
ComponentUpdater.Operation, ComponentUpdater.Query<C extends Component>
 
Constructor Summary
ChildComponentUpdateVisitor()
          Creates a new instance of ChildComponentUpdateVisitor
 
Method Summary
 boolean canAdd(WSDLComponent target, Component child)
           
 void update(WSDLComponent target, WSDLComponent child, ComponentUpdater.Operation operation)
          Updates children list.
 void update(WSDLComponent target, WSDLComponent child, int index, ComponentUpdater.Operation operation)
          Updates children list.
 void visit(Binding child)
           
 void visit(BindingFault child)
           
 void visit(BindingInput child)
           
 void visit(BindingOperation child)
           
 void visit(BindingOutput child)
           
 void visit(Definitions child)
           
 void visit(Documentation doc)
           
 void visit(ExtensibilityElement child)
           
 void visit(Fault child)
           
 void visit(Import child)
           
 void visit(Input child)
           
 void visit(Message child)
           
 void visit(NotificationOperation child)
           
 void visit(OneWayOperation child)
           
 void visit(Output child)
           
 void visit(Part child)
           
 void visit(Port child)
           
 void visit(PortType child)
           
 void visit(RequestResponseOperation child)
           
 void visit(Service child)
           
 void visit(SolicitResponseOperation child)
           
 void visit(Types child)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildComponentUpdateVisitor

public ChildComponentUpdateVisitor()
Creates a new instance of ChildComponentUpdateVisitor

Method Detail

canAdd

public boolean canAdd(WSDLComponent target,
                      Component child)

update

public void update(WSDLComponent target,
                   WSDLComponent child,
                   ComponentUpdater.Operation operation)
Description copied from interface: ComponentUpdater
Updates children list.

Specified by:
update in interface ComponentUpdater<T extends WSDLComponent>
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

public void update(WSDLComponent target,
                   WSDLComponent child,
                   int index,
                   ComponentUpdater.Operation operation)
Description copied from interface: ComponentUpdater
Updates children list.

Specified by:
update in interface ComponentUpdater<T extends WSDLComponent>
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.

visit

public void visit(Definitions child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Types child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Binding child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Message child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Service child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(PortType child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Import child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Port child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(BindingOperation child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(BindingInput child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(BindingOutput child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(BindingFault child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Part child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Documentation doc)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Output child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Input child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(Fault child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(NotificationOperation child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(SolicitResponseOperation child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(RequestResponseOperation child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(OneWayOperation child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor

visit

public void visit(ExtensibilityElement child)
Specified by:
visit in interface org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor