org.eclipse.emf.ecore.resource.impl
Class PlatformContentHandlerImpl
java.lang.Object
org.eclipse.emf.ecore.resource.impl.ContentHandlerImpl
org.eclipse.emf.ecore.resource.impl.PlatformContentHandlerImpl
- All Implemented Interfaces:
- ContentHandler
public class PlatformContentHandlerImpl
- extends ContentHandlerImpl
|
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
contentDescription(URI uri,
java.io.InputStream inputStream,
java.util.Map<?,?> options,
java.util.Map<java.lang.Object,java.lang.Object> context)
This implementation delegates to the platform's content description support, |
protected java.lang.Object |
getDescriptionValue(QualifiedName qualifiedName,
java.lang.Object value)
Returns the given property's Eclipse value converted to EMF's corresponding basic value. |
protected QualifiedName |
getQualifiedName(java.lang.String property)
Returns the property name converted to a qualified name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformContentHandlerImpl
public PlatformContentHandlerImpl()
getQualifiedName
protected QualifiedName getQualifiedName(java.lang.String property)
- Returns the property name converted to a qualified name.
- Parameters:
property - the property to convert.
- Returns:
- the property name converted to a qualified name.
getDescriptionValue
protected java.lang.Object getDescriptionValue(QualifiedName qualifiedName,
java.lang.Object value)
- Returns the given property's Eclipse value converted to EMF's corresponding basic value.
- Parameters:
qualifiedName - the name of the property for which this value applies.value - the value to convert.
- Returns:
- the given property's Eclipse value converted to EMF's corresponding basic value.
contentDescription
public java.util.Map<java.lang.String,java.lang.Object> contentDescription(URI uri,
java.io.InputStream inputStream,
java.util.Map<?,?> options,
java.util.Map<java.lang.Object,java.lang.Object> context)
throws java.io.IOException
- This implementation delegates to the platform's content description support,
- Specified by:
contentDescription in interface ContentHandler- Overrides:
contentDescription in class ContentHandlerImpl
- Parameters:
uri - the URI for which to determine the content description.inputStream - the input stream associated with the given URI.options - a map of options to direct what kind of description is needed.context - a map of contextual information that content handlers use to store partially computed results.
- Returns:
- a map of properties that describe the content of the given URI's corresponding input stream.
- Throws:
java.io.IOException - if there is a problem reading the stream.