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

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.ImportImpl
All Implemented Interfaces:
Import, WSDLComponent, Component<WSDLComponent>, DocumentComponent<WSDLComponent>, DocumentModelAccess.NodeUpdater

public class ImportImpl
extends org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase
implements Import

Author:
Nam Nguyen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
AbstractDocumentComponent.PrefixAttribute
 
Field Summary
 
Fields inherited from interface org.netbeans.modules.xml.wsdl.model.Import
LOCATION_PROPERTY, NAMESPACE_URI_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
ImportImpl(WSDLModel model)
           
ImportImpl(WSDLModel model, org.w3c.dom.Element e)
          Creates a new instance of ImportImpl
 
Method Summary
 void accept(org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor visitor)
           
 WSDLModel getImportedWSDLModel()
          Returns the imported WSDL model.
 java.lang.String getLocation()
           
 java.lang.String getNamespace()
           
 DocumentModel resolveImportedModel()
           
 org.netbeans.modules.xml.schema.model.SchemaModel resolveToSchemaModel()
           
 WSDLModel resolveToWSDLModel()
           
 void setLocation(java.lang.String locationURI)
           
 void setNamespace(java.lang.String namespaceURI)
           
 
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.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
 

Constructor Detail

ImportImpl

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


ImportImpl

public ImportImpl(WSDLModel model)
Method Detail

accept

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

setNamespace

public void setNamespace(java.lang.String namespaceURI)
Specified by:
setNamespace in interface Import

setLocation

public void setLocation(java.lang.String locationURI)
Specified by:
setLocation in interface Import

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface Import

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface Import

getImportedWSDLModel

public WSDLModel getImportedWSDLModel()
                               throws CatalogModelException
Description copied from interface: Import
Returns the imported WSDL model.

Specified by:
getImportedWSDLModel in interface Import
Returns:
a WSDL model object if the import location or namespace resolves into a model source and the model source is well-formed;
Throws:
CatalogModelException

resolveToWSDLModel

public WSDLModel resolveToWSDLModel()
                             throws CatalogModelException
Throws:
CatalogModelException

resolveToSchemaModel

public org.netbeans.modules.xml.schema.model.SchemaModel resolveToSchemaModel()
                                                                       throws CatalogModelException
Throws:
CatalogModelException

resolveImportedModel

public DocumentModel resolveImportedModel()
                                   throws CatalogModelException
Throws:
CatalogModelException