org.netbeans.modules.xml.wsdl.model
Class WSDLModel

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractModel<T>
      extended by org.netbeans.modules.xml.xam.dom.AbstractDocumentModel<WSDLComponent>
          extended by org.netbeans.modules.xml.wsdl.model.WSDLModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.UndoableEditListener, DocumentModel<WSDLComponent>, Model<WSDLComponent>, Referenceable
Direct Known Subclasses:
WSDLModelImpl

public abstract class WSDLModel
extends AbstractDocumentModel<WSDLComponent>
implements Referenceable

Author:
rico This interface represents an instance of a wsdl model. A wsdl model is bound to a single file.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.modules.xml.xam.AbstractModel
AbstractModel.ModelUndoableEdit, AbstractModel.ModelUndoableEditSupport
 
Nested classes/interfaces inherited from interface org.netbeans.modules.xml.xam.Model
Model.State
 
Field Summary
 
Fields inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentModel
access
 
Fields inherited from class org.netbeans.modules.xml.xam.AbstractModel
ues
 
Fields inherited from interface org.netbeans.modules.xml.xam.Model
STATE_PROPERTY
 
Constructor Summary
protected WSDLModel(ModelSource source)
           
 
Method Summary
abstract
<T extends ReferenceableWSDLComponent>
T
findComponentByName(javax.xml.namespace.QName name, java.lang.Class<T> type)
          Find named WSDL component by QName and type.
abstract
<T extends ReferenceableWSDLComponent>
T
findComponentByName(java.lang.String name, java.lang.Class<T> type)
          Find named WSDL component by name and type within current model.
abstract  java.util.List<org.netbeans.modules.xml.schema.model.Schema> findSchemas(java.lang.String namespaceURI)
          Search for all schemas visible from imported/included/redefined in the schema extensibility elements.
abstract  java.util.List<WSDLModel> findWSDLModel(java.lang.String namespaceURI)
          Search from all imported WSDL models those with specified target namespace.
abstract  Definitions getDefinitions()
           
abstract  WSDLComponentFactory getFactory()
           
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentModel
addChildComponent, areSameNodes, createRootComponent, findComponent, findComponent, findComponent, findComponent, firePropertyChangedEvents, firePropertyChangedEvents, getAccess, getAccessProvider, getBaseDocument, getComponentUpdater, getDocument, getElementNames, getQNames, getQNameValuedAttributes, getXPathExpression, isDomainElement, needsSync, prepareChangeInfo, prepareSyncUnit, processSyncUnit, refresh, removeChildComponent, setIdentifyingAttributes, syncCompleted, syncStarted, toLocalName
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractModel
addComponentListener, addPropertyChangeListener, addUndoableEditListener, addUndoableRefactorListener, createModelUndoableEdit, endTransaction, endTransaction, finishTransaction, fireComponentChangedEvent, firePropertyChangeEvent, getModelSource, getState, inSync, inUndoRedo, isAutoSyncActive, isIntransaction, removeComponentListener, removePropertyChangeListener, removeUndoableEditListener, removeUndoableRefactorListener, rollbackTransaction, setAutoSyncActive, setInSync, setInUndoRedo, setState, startedFiringEvents, startTransaction, sync, transactionCompleted, transactionStarted, undoableEditHappened, validateWrite
 
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.xam.dom.DocumentModel
createComponent, getRootComponent
 
Methods inherited from interface org.netbeans.modules.xml.xam.Model
addComponentListener, addPropertyChangeListener, addUndoableEditListener, addUndoableRefactorListener, endTransaction, getModelSource, getState, inSync, isIntransaction, removeComponentListener, removePropertyChangeListener, removeUndoableEditListener, removeUndoableRefactorListener, startTransaction, sync
 

Constructor Detail

WSDLModel

protected WSDLModel(ModelSource source)
Method Detail

getDefinitions

public abstract Definitions getDefinitions()
Returns:
WSDL model root component 'definitions'

getFactory

public abstract WSDLComponentFactory getFactory()
Returns:
WSDL component factory.

findWSDLModel

public abstract java.util.List<WSDLModel> findWSDLModel(java.lang.String namespaceURI)
Search from all imported WSDL models those with specified target namespace.

Parameters:
namespaceURI - the target namespace to search for model
Returns:
list WSDL models or empty list if none found.

findSchemas

public abstract java.util.List<org.netbeans.modules.xml.schema.model.Schema> findSchemas(java.lang.String namespaceURI)
Search for all schemas visible from imported/included/redefined in the schema extensibility elements. Schema model imported through wsdl:import are also in the search.

Parameters:
namespaceURI - the target namespace to search for model
Returns:
list of schema match the give namespace.

findComponentByName

public abstract <T extends ReferenceableWSDLComponent> T findComponentByName(java.lang.String name,
                                                                             java.lang.Class<T> type)
Find named WSDL component by name and type within current model.

Parameters:
name - local name of target component
type - type of target component
Returns:
WSDL component of specified type and name; null if not found.

findComponentByName

public abstract <T extends ReferenceableWSDLComponent> T findComponentByName(javax.xml.namespace.QName name,
                                                                             java.lang.Class<T> type)
Find named WSDL component by QName and type.

Parameters:
name - QName of the target component.
type - type of target component
Returns:
WSDL component of specified type and name; null if not found.