org.netbeans.modules.xml.xam.dom
Class ReadOnlyAccess.Provider

java.lang.Object
  extended by org.netbeans.modules.xml.xam.dom.ReadOnlyAccess.Provider
All Implemented Interfaces:
DocumentModelAccessProvider, ModelAccessProvider
Direct Known Subclasses:
DomAccessProvider
Enclosing class:
ReadOnlyAccess

public static class ReadOnlyAccess.Provider
extends java.lang.Object
implements DocumentModelAccessProvider


Constructor Summary
protected ReadOnlyAccess.Provider()
           
 
Method Summary
 DocumentModelAccess createModelAccess(AbstractDocumentModel model)
          Returns the access to the given model source and model.
static ReadOnlyAccess.Provider getInstance()
           
 java.lang.Object getModelSourceKey(ModelSource source)
          Returns key for factory to cache model source.
 javax.swing.text.Document loadSwingDocument(java.io.InputStream in)
          Loads the swing document from the given input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyAccess.Provider

protected ReadOnlyAccess.Provider()
Method Detail

getInstance

public static ReadOnlyAccess.Provider getInstance()

createModelAccess

public DocumentModelAccess createModelAccess(AbstractDocumentModel model)
Description copied from interface: DocumentModelAccessProvider
Returns the access to the given model source and model.

Specified by:
createModelAccess in interface DocumentModelAccessProvider

loadSwingDocument

public javax.swing.text.Document loadSwingDocument(java.io.InputStream in)
                                            throws java.io.IOException,
                                                   javax.swing.text.BadLocationException
Description copied from interface: DocumentModelAccessProvider
Loads the swing document from the given input stream.

Specified by:
loadSwingDocument in interface DocumentModelAccessProvider
Throws:
java.io.IOException
javax.swing.text.BadLocationException

getModelSourceKey

public java.lang.Object getModelSourceKey(ModelSource source)
Description copied from interface: ModelAccessProvider
Returns key for factory to cache model source.

Specified by:
getModelSourceKey in interface ModelAccessProvider