org.netbeans.modules.xml.wsdl.model.impl
Class DefinitionsImpl

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractComponent<C>
      extended by org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent<WSDLComponent>
          extended by org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase
              extended by org.netbeans.modules.xml.wsdl.model.impl.NamedImpl
                  extended by org.netbeans.modules.xml.wsdl.model.impl.DefinitionsImpl
All Implemented Interfaces:
Definitions, WSDLComponent, Component<WSDLComponent>, DocumentComponent<WSDLComponent>, DocumentModelAccess.NodeUpdater, Nameable<WSDLComponent>, Named<WSDLComponent>

public class DefinitionsImpl
extends NamedImpl
implements Definitions

Author:
rico

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
AbstractDocumentComponent.PrefixAttribute
 
Field Summary
static java.lang.String TNS
           
 
Fields inherited from interface org.netbeans.modules.xml.wsdl.model.Definitions
BINDING_PROPERTY, IMPORT_PROPERTY, MESSAGE_PROPERTY, PORT_TYPE_PROPERTY, SERVICE_PROPERTY, TARGET_NAMESPACE_PROPERTY, TYPES_PROPERTY
 
Fields inherited from interface org.netbeans.modules.xml.xam.Named
NAME_PROPERTY
 
Fields inherited from interface org.netbeans.modules.xml.wsdl.model.WSDLComponent
DOCUMENTATION_PROPERTY, EXTENSIBILITY_ELEMENT_PROPERTY
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Constructor Summary
DefinitionsImpl(WSDLModel model)
           
DefinitionsImpl(WSDLModel model, org.w3c.dom.Element e)
          Creates a new instance of DefinitionsImpl
 
Method Summary
 void accept(org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor visitor)
           
 void addBinding(Binding binding)
           
 void addImport(Import importDefinition)
           
 void addMessage(Message message)
           
 void addPortType(PortType portType)
           
 void addService(Service service)
           
 java.util.Collection<Binding> getBindings()
           
 java.util.Collection<Import> getImports()
           
 java.util.Collection<Message> getMessages()
           
 java.util.Collection<PortType> getPortTypes()
           
 java.util.Collection<Service> getServices()
           
 java.lang.String getTargetNamespace()
           
 Types getTypes()
           
 void removeBinding(Binding binding)
           
 void removeImport(Import importDefinition)
           
 void removeMessage(Message message)
           
 void removePortType(PortType portType)
           
 void removeService(Service service)
           
 void setTargetNamespace(java.lang.String uri)
           
 void setTypes(Types types)
           
 
Methods inherited from class org.netbeans.modules.xml.wsdl.model.impl.NamedImpl
getName, setName
 
Methods inherited from class org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase
addExtensibilityElement, canPaste, createNewElement, createPrefixedElement, createReferenceTo, createSchemaReference, getAttributeValueOf, getDocumentation, getExtensibilityElements, getExtensibilityElements, getModel, getWSDLModel, populateChildren, removeExtensibilityElement, resolveGlobalReference, resolveSchemaReference, setDocumentation, toString
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
addPrefix, appendChildQuietly, copy, createPrefixAttribute, ensureUnique, ensureValueNamespaceDeclared, findAttributePosition, findChildComponent, findChildComponentByIdentity, findDomainIndex, findPosition, fireChildAdded, fireChildRemoved, firePropertyChange, fireValueChanged, getAccess, getAnyAttribute, getAttribute, getAttributeMap, getChildElement, getChildElementText, getEffectiveParent, getLeadingText, getNamespaceURI, getNodeIndexOf, getPeer, getPrefixedName, getPrefixedName, getPrefixedName, getPrefixes, getQName, getQName, getText, getText, getText, getTrailingText, getXmlFragment, getXmlFragmentInclusive, insertAtIndexQuietly, isInDocumentModel, lookupNamespaceURI, lookupNamespaceURI, lookupPrefix, referencesSameNode, removeAttributeQuietly, removeChildQuietly, removePrefix, resolveModel, setAnyAttribute, setAttribute, setAttributeQuietly, setChildElementText, setLeadingText, setQNameAttribute, setText, setText, setTrailingText, setXmlFragment, updatePeer, updateReference, updateReference, updateReference, verifyWrite
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractComponent
addAfter, addBefore, addPropertyChangeListener, appendChild, checkNullOrDuplicateChild, getChild, getChildren, getChildren, getChildren, getParent, insertAtIndex, insertAtIndex, isChildrenInitialized, removeChild, removeComponentListener, removePropertyChangeListener, setChild, setChild, setChildAfter, setChildBefore, setModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.netbeans.modules.xml.wsdl.model.Definitions
getAnyAttribute, setAnyAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Nameable
setName
 
Methods inherited from interface org.netbeans.modules.xml.xam.Named
getName
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getParent
 
Methods inherited from interface org.netbeans.modules.xml.wsdl.model.WSDLComponent
addExtensibilityElement, createReferenceTo, createSchemaReference, getAttributeMap, getDocumentation, getExtensibilityElements, getExtensibilityElements, getModel, removeExtensibilityElement, setDocumentation
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getParent
 

Field Detail

TNS

public static final java.lang.String TNS
See Also:
Constant Field Values
Constructor Detail

DefinitionsImpl

public DefinitionsImpl(WSDLModel model,
                       org.w3c.dom.Element e)
Creates a new instance of DefinitionsImpl


DefinitionsImpl

public DefinitionsImpl(WSDLModel model)
Method Detail

addBinding

public void addBinding(Binding binding)
Specified by:
addBinding in interface Definitions

removeBinding

public void removeBinding(Binding binding)
Specified by:
removeBinding in interface Definitions

addService

public void addService(Service service)
Specified by:
addService in interface Definitions

removeService

public void removeService(Service service)
Specified by:
removeService in interface Definitions

addImport

public void addImport(Import importDefinition)
Specified by:
addImport in interface Definitions

removeImport

public void removeImport(Import importDefinition)
Specified by:
removeImport in interface Definitions

addPortType

public void addPortType(PortType portType)
Specified by:
addPortType in interface Definitions

removePortType

public void removePortType(PortType portType)
Specified by:
removePortType in interface Definitions

setTargetNamespace

public void setTargetNamespace(java.lang.String uri)
Specified by:
setTargetNamespace in interface Definitions

setTypes

public void setTypes(Types types)
Specified by:
setTypes in interface Definitions

addMessage

public void addMessage(Message message)
Specified by:
addMessage in interface Definitions

removeMessage

public void removeMessage(Message message)
Specified by:
removeMessage in interface Definitions

getServices

public java.util.Collection<Service> getServices()
Specified by:
getServices in interface Definitions

getPortTypes

public java.util.Collection<PortType> getPortTypes()
Specified by:
getPortTypes in interface Definitions

getMessages

public java.util.Collection<Message> getMessages()
Specified by:
getMessages in interface Definitions

getImports

public java.util.Collection<Import> getImports()
Specified by:
getImports in interface Definitions

getBindings

public java.util.Collection<Binding> getBindings()
Specified by:
getBindings in interface Definitions

getTargetNamespace

public java.lang.String getTargetNamespace()
Specified by:
getTargetNamespace in interface Definitions

getTypes

public Types getTypes()
Specified by:
getTypes in interface Definitions

accept

public void accept(org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor visitor)
Specified by:
accept in interface WSDLComponent