public class IndexSAXXMIHandler
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 |
IndexSAXXMIHandler.EClassFeatureNamePair
Deprecated.
This class is cache for mapping the feature to its xml name
|
protected static class |
IndexSAXXMIHandler.MyEObjectEntryStack<E>
Deprecated.
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
Deprecated.
Attribute for the current index context
|
protected static java.lang.String |
CROSS_RES_OBJECT_TYPE
Deprecated.
Attribute for the representing the cross resource object
|
protected IndexSAXXMIHandler.EClassFeatureNamePair |
eClassFeatureNamePair
Deprecated.
|
protected java.util.Map<IndexSAXXMIHandler.EClassFeatureNamePair,org.eclipse.emf.ecore.EStructuralFeature> |
eClassFeatureNamePairToEStructuralFeatureMap
Deprecated.
|
protected IIndexWriter |
indexWriter
Deprecated.
Attribute for the index writer
|
protected org.eclipse.core.runtime.IProgressMonitor |
monitor
Deprecated.
Attribute for the list of EObject entries
|
protected IndexSAXXMIHandler.MyEObjectEntryStack<EObjectEntry> |
objects
Deprecated.
Attribute for the eObject entries
|
protected ResourceEntry |
resourceEntry
Deprecated.
Attribute for the resource entry
|
ID_ATTRIB, UUID_ATTRIB, VERSION_ATTRIB, XMI_ELEMENT_NAME, XMI_ELEMENT_TYPE, XMI_EXTENSION, XMI_TYPE_ATTRIB, XMI_UUID
anySimpleType, 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 |
---|
IndexSAXXMIHandler(IndexContext context,
org.eclipse.emf.ecore.xmi.XMLResource xmiResource,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
IIndexWriter indexWriter,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
createTopObject(java.lang.String prefix,
java.lang.String name)
Deprecated.
|
void |
endDocument()
Deprecated.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
Deprecated.
|
protected org.eclipse.emf.ecore.EStructuralFeature |
getFeature(org.eclipse.emf.ecore.EClass eClass,
java.lang.String prefix,
java.lang.String name,
boolean isElement)
Deprecated.
Get the EStructuralFeature from the metaObject for the given object and
feature name.
|
protected void |
handleFeature(java.lang.String prefix,
java.lang.String name)
Deprecated.
The XML element represents a feature.
|
protected void |
processElement(java.lang.String name,
java.lang.String prefix,
java.lang.String localName)
Deprecated.
|
void |
reset()
Deprecated.
|
protected void |
setAttribValue(EObjectEntry object,
java.lang.String name,
java.lang.String value)
Deprecated.
Create a feature with the given name for the given object with the given
values.
|
protected void |
setEAttributeValue(EObjectEntry object,
org.eclipse.emf.ecore.EAttribute attribute,
java.lang.Object value)
Deprecated.
Set the attribute feature for the specified object to the given value.
|
protected void |
setEReferenceValueFromHREF(EObjectEntry peekObject,
org.eclipse.emf.ecore.EReference reference,
java.lang.String uriLiteral)
Deprecated.
Set the given reference feature value on the specified peek object
|
protected void |
setEReferenceValueFromId(EObjectEntry object,
org.eclipse.emf.ecore.EReference reference,
java.lang.String idValue)
Deprecated.
Set the given reference feature value for the given object to the given
id value.
|
protected void |
setEReferenceValueFromURI(EObjectEntry object,
org.eclipse.emf.ecore.EReference reference,
org.eclipse.emf.common.util.URI uri)
Deprecated.
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)
Deprecated.
|
getXSIType, handleObjectAttribs
createDocumentRoot, createObject, handleUnknownFeature, isTextFeatureValue, startElement
characters, 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, warning
protected java.util.Map<IndexSAXXMIHandler.EClassFeatureNamePair,org.eclipse.emf.ecore.EStructuralFeature> eClassFeatureNamePairToEStructuralFeatureMap
protected IndexSAXXMIHandler.EClassFeatureNamePair eClassFeatureNamePair
protected ResourceEntry resourceEntry
protected org.eclipse.core.runtime.IProgressMonitor monitor
protected IndexSAXXMIHandler.MyEObjectEntryStack<EObjectEntry> objects
protected static final java.lang.String CROSS_RES_OBJECT_TYPE
protected IndexContext context
protected IIndexWriter indexWriter
public IndexSAXXMIHandler(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.ContentHandler
endDocument
in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
protected void createTopObject(java.lang.String prefix, java.lang.String name)
createTopObject
in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
protected void setAttribValue(EObjectEntry 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(EObjectEntry 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.XMIHandler
protected void handleFeature(java.lang.String prefix, java.lang.String name)
handleFeature
in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
protected void setEReferenceValueFromURI(EObjectEntry object, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.common.util.URI uri)
protected void setEReferenceValueFromId(EObjectEntry object, org.eclipse.emf.ecore.EReference reference, java.lang.String idValue)
protected void setEReferenceValueFromHREF(EObjectEntry peekObject, org.eclipse.emf.ecore.EReference reference, java.lang.String uriLiteral)
public void reset()
reset
in interface org.eclipse.emf.ecore.xmi.XMLDefaultHandler
reset
in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
startElement
in class org.eclipse.emf.ecore.xmi.impl.XMLHandler