public class SphinxManagedModelFileContentHandlerImpl
extends org.eclipse.emf.ecore.resource.impl.ContentHandlerImpl
handler
for describing the contents of Sphinx-managed model files
referenced by a given URI
.
Delegates to the performance-optimized content type id detection support provided by ExtendedPlatform
in case
that provided URI refers to a Sphinx-managed model file inside the workspace and only the content type id but no
other content description properties are requested. In all other cases, i.e., when the provided URI references some
file that is apparently not managed by Sphinx or when additional content description properties are explicitly
requested, this class delegates to its super implementation. The latter retrieves and returns an indeterminate best
guess content description which may subsequently be overridden by another content handler (e.g.,
PlatformContentHandlerImpl) with some more appropriate content description (see
org.eclipse.emf.ecore.resource.impl.URIHandlerImpl#contentDescription(URI, Map, ?>) for details).
Constructor and Description |
---|
SphinxManagedModelFileContentHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(org.eclipse.emf.common.util.URI uri) |
java.util.Map<java.lang.String,java.lang.Object> |
contentDescription(org.eclipse.emf.common.util.URI uri,
java.io.InputStream inputStream,
java.util.Map<?,?> options,
java.util.Map<java.lang.Object,java.lang.Object> context) |
public SphinxManagedModelFileContentHandlerImpl()
public boolean canHandle(org.eclipse.emf.common.util.URI uri)
canHandle
in interface org.eclipse.emf.ecore.resource.ContentHandler
canHandle
in class org.eclipse.emf.ecore.resource.impl.ContentHandlerImpl
public java.util.Map<java.lang.String,java.lang.Object> contentDescription(org.eclipse.emf.common.util.URI uri, java.io.InputStream inputStream, java.util.Map<?,?> options, java.util.Map<java.lang.Object,java.lang.Object> context) throws java.io.IOException
contentDescription
in interface org.eclipse.emf.ecore.resource.ContentHandler
contentDescription
in class org.eclipse.emf.ecore.resource.impl.ContentHandlerImpl
java.io.IOException