org.netbeans.modules.xml.xam.spi
Interface DocumentModelAccessProvider

All Superinterfaces:
ModelAccessProvider
All Known Implementing Classes:
DomAccessProvider, ReadOnlyAccess.Provider

public interface DocumentModelAccessProvider
extends ModelAccessProvider

Provide document model access service.

Author:
Nam Nguyen

Method Summary
 DocumentModelAccess createModelAccess(AbstractDocumentModel model)
          Returns the access to the given model source and model.
 javax.swing.text.Document loadSwingDocument(java.io.InputStream in)
          Loads the swing document from the given input stream.
 
Methods inherited from interface org.netbeans.modules.xml.xam.spi.ModelAccessProvider
getModelSourceKey
 

Method Detail

createModelAccess

DocumentModelAccess createModelAccess(AbstractDocumentModel model)
Returns the access to the given model source and model.


loadSwingDocument

javax.swing.text.Document loadSwingDocument(java.io.InputStream in)
                                            throws java.io.IOException,
                                                   javax.swing.text.BadLocationException
Loads the swing document from the given input stream.

Throws:
java.io.IOException
javax.swing.text.BadLocationException