public class JavaPackageResourceImpl extends ResourceImpl
ResourceImpl.ContentsEList<E extends java.lang.Object & EObject>, ResourceImpl.ModificationTrackingAdapter
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedException
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classLoader |
protected java.util.List<java.lang.String> |
sourceURIs |
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS
Constructor and Description |
---|
JavaPackageResourceImpl(URI uri) |
Modifier and Type | Method and Description |
---|---|
protected JClass |
demandLoad(java.lang.String packageName,
java.lang.String typeName) |
protected void |
doLoad(java.io.InputStream inputStream,
java.util.Map<?,?> options)
Called to load the resource.
|
protected void |
doSave(java.io.OutputStream outputStream,
java.util.Map<?,?> options)
Called to save the resource.
|
java.lang.ClassLoader |
getClassLoader() |
protected EObject |
getEObject(java.util.List<java.lang.String> uriFragmentPath)
Returns the object based on the fragment path as a list of Strings.
|
EObject |
getEObject(java.lang.String uriFragment)
Returns the resolved object for the given URI
fragment . |
protected EObject |
getEObjectForURIFragmentRootSegment(java.lang.String uriFragmentRootSegment)
Returns the object associated with the URI fragment root segment.
|
java.util.List<java.lang.String> |
getSourceURIs() |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
addModificationTrackingAdapters, attached, attachedHelper, basicSetResourceSet, createModificationTrackingAdapter, delete, detached, detachedHelper, doUnload, getAllContents, getAllProperContents, getAllProperContents, getContents, getDefaultURIConverter, getEObjectByID, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getURI, getURIConverter, getURIFragment, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, toKeyString, toString, unload, unloaded, useZip
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAdapters, eDeliver, eNotify, eSetDeliver
protected java.lang.ClassLoader classLoader
protected java.util.List<java.lang.String> sourceURIs
public JavaPackageResourceImpl(URI uri)
protected void doLoad(java.io.InputStream inputStream, java.util.Map<?,?> options) throws java.io.IOException
ResourceImpl
doLoad
in class ResourceImpl
inputStream
- the streamoptions
- the load options.java.io.IOException
protected void doSave(java.io.OutputStream outputStream, java.util.Map<?,?> options) throws java.io.IOException
ResourceImpl
doSave
in class ResourceImpl
outputStream
- the streamoptions
- the save options.java.io.IOException
public EObject getEObject(java.lang.String uriFragment)
Resource
fragment
.
The fragment encoding will typically be that produced by getURIFragment
.
getEObject
in interface Resource
getEObject
in class ResourceImpl
uriFragment
- the fragment to resolve.null
if it can't be resolved.Resource.getURIFragment(EObject)
,
ResourceSet.getEObject(URI, boolean)
,
EcoreUtil.resolve(EObject, ResourceSet)
,
InternalEObject.eObjectForURIFragmentSegment(String)
protected EObject getEObjectForURIFragmentRootSegment(java.lang.String uriFragmentRootSegment)
ResourceImpl
"0"
.getEObjectForURIFragmentRootSegment
in class ResourceImpl
protected EObject getEObject(java.util.List<java.lang.String> uriFragmentPath)
ResourceImpl
getEObject
in class ResourceImpl
protected JClass demandLoad(java.lang.String packageName, java.lang.String typeName)
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public java.util.List<java.lang.String> getSourceURIs()