UML Modeling Layer

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

java.lang.Object
  extended by IndexSAXXMIHandler
      extended by com.ibm.xtools.uml.msl.internal.index.UMLIndexSAXXMIHandler

public class UMLIndexSAXXMIHandler
extends IndexSAXXMIHandler

A subclass of the IndexSAXXMIHandler. This implementation throws a AbortParsingException when parsing artifacts that dont have any processing instructions. This is to support the migration of the older version artifacts to the newer version by loading the resource and going through the backward compatability infrastructure


Constructor Summary
UMLIndexSAXXMIHandler(IndexContext context, XMLResource xmiResource, ResourceSet resourceSet, IIndexWriter indexWriter, IProgressMonitor monitor)
          Constructor
 
Method Summary
protected  void handleFeature(String prefix, String name)
           
 void processingInstruction(String target, String data)
           
protected  void setEReferenceValueFromHREF(EObjectEntry peekObject, EReference reference, String uriLiteral)
           
protected  void setEReferenceValueFromURI(EObjectEntry object, EReference reference, URI uri)
           
 void startElement(String uri, String localName, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLIndexSAXXMIHandler

public UMLIndexSAXXMIHandler(IndexContext context,
                             XMLResource xmiResource,
                             ResourceSet resourceSet,
                             IIndexWriter indexWriter,
                             IProgressMonitor monitor)
Constructor

Parameters:
xmiResource - the resource
resourceSet - the resource set
monitor - the progress monitor
Method Detail

processingInstruction

public void processingInstruction(String target,
                                  String data)

startElement

public void startElement(String uri,
                         String localName,
                         String name)

setEReferenceValueFromHREF

protected void setEReferenceValueFromHREF(EObjectEntry peekObject,
                                          EReference reference,
                                          String uriLiteral)

setEReferenceValueFromURI

protected void setEReferenceValueFromURI(EObjectEntry object,
                                         EReference reference,
                                         URI uri)

handleFeature

protected void handleFeature(String prefix,
                             String name)

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.