public class IndexSAXXMIHandler2
extends org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler
org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl
class with ids.| Modifier and Type | Class and Description |
|---|---|
protected static class |
IndexSAXXMIHandler2.EClassFeatureNamePair
This class is cache for mapping the feature to its xml name
|
protected static class |
IndexSAXXMIHandler2.MyEObjectEntryStack
A stack implementation for the light weight eObject entries
|
org.eclipse.emf.ecore.xmi.impl.XMLHandler.ManyReference, org.eclipse.emf.ecore.xmi.impl.XMLHandler.MyEObjectStack, org.eclipse.emf.ecore.xmi.impl.XMLHandler.MyStack<E>, org.eclipse.emf.ecore.xmi.impl.XMLHandler.SingleReference| Modifier and Type | Field and Description |
|---|---|
protected IndexContext |
context
Attribute for the current index context
|
protected static java.lang.String |
CROSS_RES_OBJECT_TYPE
Attribute for the representing the cross resource object
|
protected IndexSAXXMIHandler2.EClassFeatureNamePair |
eClassFeatureNamePair |
protected java.util.Map<IndexSAXXMIHandler2.EClassFeatureNamePair,org.eclipse.emf.ecore.EStructuralFeature> |
eClassFeatureNamePairToEStructuralFeatureMap |
protected IIndexWriter |
indexWriter
Attribute for the index writer
|
protected org.eclipse.core.runtime.IProgressMonitor |
monitor
Attribute for the list of EObject entries
|
protected IndexSAXXMIHandler2.MyEObjectEntryStack |
objects
Attribute for the eObject entries
|
protected IResourceEntry |
resourceEntry
Attribute for the resource entry
|
ID_ATTRIB, UUID_ATTRIB, VERSION_ATTRIB, XMI_ELEMENT_NAME, XMI_ELEMENT_TYPE, XMI_EXTENSION, XMI_TYPE_ATTRIB, XMI_UUIDanySimpleType, anyType, ARRAY_SIZE, attribs, capacity, contextFeature, DEBUG_DEMANDED_PACKAGES, deferIDREFResolution, deferredExtent, disableNotify, DOCUMENT_ROOT_TYPE, documentRoot, ecoreBuilder, elements, eObjectToExtensionMap, ERROR_TYPE, extendedMetaData, extent, externalURIToLocations, featuresToKinds, forwardManyReferences, forwardSingleReferences, helper, hrefAttribute, idAttribute, identifiers, isIDREF, isNamespaceAware, isRoot, isSimpleFeature, laxWildcardProcessing, locator, missingPackageHandler, mixedTargets, needsPushContext, NIL_ATTRIB, NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB, notFeatures, OBJECT_TYPE, oldStyleProxyURIs, packageRegistry, positions, prefixesToFactories, processAnyXML, processSchemaLocations, recordAnyTypeNSDecls, recordUnknownFeature, REFERENCE_THRESHOLD, resolve, resourceEntityHandler, resourceSet, resourceURI, sameDocumentProxies, SCHEMA_LOCATION_ATTRIB, suppressDocumentRoot, text, TYPE_ATTRIB, types, UNKNOWN_FEATURE_TYPE, uriHandler, urisToLocations, useConfigurationCache, usedNullNamespacePackage, useNewMethods, usePackageNsURIAsLocation, xmlMap, xmlResource, xmlSchemaTypePackage| Constructor and Description |
|---|
IndexSAXXMIHandler2(IndexContext context,
org.eclipse.emf.ecore.xmi.XMLResource xmiResource,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
IIndexWriter indexWriter,
org.eclipse.core.runtime.IProgressMonitor monitor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createTopObject(java.lang.String prefix,
java.lang.String name) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name) |
protected org.eclipse.emf.ecore.EStructuralFeature |
getFeature(org.eclipse.emf.ecore.EClass eClass,
java.lang.String prefix,
java.lang.String name,
boolean isElement)
Get the EStructuralFeature from the metaObject for the given object and
feature name.
|
protected void |
handleFeature(java.lang.String prefix,
java.lang.String name)
The XML element represents a feature.
|
protected void |
processElement(java.lang.String name,
java.lang.String prefix,
java.lang.String localName) |
void |
reset() |
protected void |
setAttribValue(IEObjectEntry object,
java.lang.String name,
java.lang.String value)
Create a feature with the given name for the given object with the given
values.
|
protected void |
setEAttributeValue(IEObjectEntry object,
org.eclipse.emf.ecore.EAttribute attribute,
java.lang.Object value)
Set the attribute feature for the specified object to the given value.
|
protected void |
setEReferenceValueFromHREF(IEObjectEntry peekObject,
org.eclipse.emf.ecore.EReference reference,
java.lang.String uriLiteral)
Set the given reference feature value on the specified peek object
|
protected void |
setEReferenceValueFromId(IEObjectEntry object,
org.eclipse.emf.ecore.EReference reference,
java.lang.String idValue)
Set the given reference feature value for the given object to the given
id value.
|
protected void |
setEReferenceValueFromURI(IEObjectEntry object,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.common.util.URI uri)
Set the given reference feature value for the given object to the given
uri value.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name) |
getXSIType, handleObjectAttribscreateDocumentRoot, createObject, handleUnknownFeature, isTextFeatureValue, startElementcharacters, comment, createEcoreBuilder, createObject, createObjectByType, createObjectFromFactory, createObjectFromFeatureType, createObjectFromTypeName, endCDATA, endDTD, endEntity, endPrefixMapping, error, error, fatalError, fatalError, getColumnNumber, getExtension, getFactoryForPrefix, getFeature, getFeature, getLineNumber, getLocation, getPackageForURI, getURIConverter, getXMLEncoding, growArrays, handleCDATA, handleComment, handleForwardReferences, handleForwardReferences, handleMissingPackage, handleMixedText, handleNamespaceAttribs, handleProcessingInstruction, handleProxy, handleSchemaLocation, handleTopLocations, handleXMLNSAttribute, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, ignorableWhitespace, isError, isNull, notationDecl, prepare, processingInstruction, processObject, processSchemaLocations, processTopObject, recordHeaderInformation, recordNamespacesSchemaLocations, recordUnknownFeature, reportUnknownFeature, resolveEntity, setAttributes, setAttribValue, setDocumentLocator, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setLocator, setValueFromId, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, toXMIException, unparsedEntityDecl, validateCreateObjectFromFactory, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning, warningprotected java.util.Map<IndexSAXXMIHandler2.EClassFeatureNamePair,org.eclipse.emf.ecore.EStructuralFeature> eClassFeatureNamePairToEStructuralFeatureMap
protected IndexSAXXMIHandler2.EClassFeatureNamePair eClassFeatureNamePair
protected IResourceEntry resourceEntry
protected org.eclipse.core.runtime.IProgressMonitor monitor
protected IndexSAXXMIHandler2.MyEObjectEntryStack objects
protected static final java.lang.String CROSS_RES_OBJECT_TYPE
protected IndexContext context
protected IIndexWriter indexWriter
public IndexSAXXMIHandler2(IndexContext context, org.eclipse.emf.ecore.xmi.XMLResource xmiResource, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, IIndexWriter indexWriter, org.eclipse.core.runtime.IProgressMonitor monitor)
xmiResource - the resourceresourceSet - the resource setmonitor - the progress monitorpublic void endDocument()
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.eclipse.emf.ecore.xmi.impl.XMLHandlerpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.eclipse.emf.ecore.xmi.impl.XMLHandlerprotected void createTopObject(java.lang.String prefix,
java.lang.String name)
createTopObject in class org.eclipse.emf.ecore.xmi.impl.XMLHandlerprotected void setAttribValue(IEObjectEntry object, java.lang.String name, java.lang.String value)
protected org.eclipse.emf.ecore.EStructuralFeature getFeature(org.eclipse.emf.ecore.EClass eClass,
java.lang.String prefix,
java.lang.String name,
boolean isElement)
protected void setEAttributeValue(IEObjectEntry object, org.eclipse.emf.ecore.EAttribute attribute, java.lang.Object value)
protected void processElement(java.lang.String name,
java.lang.String prefix,
java.lang.String localName)
processElement in class org.eclipse.emf.ecore.xmi.impl.XMIHandlerprotected void handleFeature(java.lang.String prefix,
java.lang.String name)
handleFeature in class org.eclipse.emf.ecore.xmi.impl.XMLHandlerprotected void setEReferenceValueFromURI(IEObjectEntry object, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.common.util.URI uri)
protected void setEReferenceValueFromId(IEObjectEntry object, org.eclipse.emf.ecore.EReference reference, java.lang.String idValue)
protected void setEReferenceValueFromHREF(IEObjectEntry peekObject, org.eclipse.emf.ecore.EReference reference, java.lang.String uriLiteral)
public void reset()
reset in interface org.eclipse.emf.ecore.xmi.XMLDefaultHandlerreset in class org.eclipse.emf.ecore.xmi.impl.XMLHandlerpublic void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
startElement in class org.eclipse.emf.ecore.xmi.impl.XMLHandler