UML Modeling Layer

com.ibm.xtools.uml.msl.internal.index
Class UMLXMIIndexProvider

java.lang.Object
  extended by XMIIndexProvider
      extended by com.ibm.xtools.uml.msl.internal.index.UMLXMIIndexProvider

public class UMLXMIIndexProvider
extends XMIIndexProvider

A subclass of the XMIIndexProvider. This implementation uses a new editing domain for loading the resources and creating index entries so that the resource set in the index context is not modified. Added to this this class provides a custom sax parser

See Also:
UMLIndexSAXXMIHandler

Constructor Summary
UMLXMIIndexProvider()
           
 
Method Summary
protected  void createIndexEntriesByParsing(ResourceSet resourceSet, URI resourceURI, IIndexWriter indexWriter, IProgressMonitor monitor)
           
protected  IndexSAXXMIHandler createIndexSAXXMIHandler(XMIResource resource, ResourceSet resourceSet, IIndexWriter indexWriter, IProgressMonitor monitor)
           
 void disposeSessionCache()
           
protected  ResourceSet getResourceSetForLoading(ResourceSet defaultResourceSet)
           
protected  ResourceSet getResourceSetForParsing(ResourceSet defaultResourceSet)
           
 void initSessionCache(IndexContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLXMIIndexProvider

public UMLXMIIndexProvider()
Method Detail

getResourceSetForLoading

protected ResourceSet getResourceSetForLoading(ResourceSet defaultResourceSet)

createIndexSAXXMIHandler

protected IndexSAXXMIHandler createIndexSAXXMIHandler(XMIResource resource,
                                                      ResourceSet resourceSet,
                                                      IIndexWriter indexWriter,
                                                      IProgressMonitor monitor)

getResourceSetForParsing

protected ResourceSet getResourceSetForParsing(ResourceSet defaultResourceSet)

createIndexEntriesByParsing

protected void createIndexEntriesByParsing(ResourceSet resourceSet,
                                           URI resourceURI,
                                           IIndexWriter indexWriter,
                                           IProgressMonitor monitor)
                                    throws IndexException
Throws:
IndexException

disposeSessionCache

public void disposeSessionCache()
                         throws IndexException
Throws:
IndexException

initSessionCache

public void initSessionCache(IndexContext context)
                      throws IndexException
Throws:
IndexException

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.