Skip to content

Commit

Permalink
Fix typos in Resource's documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Tommaso Fonda <[email protected]>
  • Loading branch information
tfonda-fbk authored and merks committed Jul 15, 2024
1 parent 23433a5 commit 59adb09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* a resource set indirectly {@link ResourceSet#createResource(URI) creates} a resource using such a factory.
* A resource is typically {@link #getResourceSet contained} by a resource set,
* along with related resources.
* It has a {@link #getURI URI} representing it's identity
* It has a {@link #getURI URI} representing its identity
* and that URI is {@link org.eclipse.emf.ecore.resource.URIConverter used}
* to determine where to {@link #save(Map) save} and {@link #load(Map) load}.
* It provides modeled {@link #getContents contents},
Expand Down Expand Up @@ -237,8 +237,8 @@ public interface Resource extends Notifier
* Removing an object will have the same effect as
* {@link org.eclipse.emf.ecore.util.EcoreUtil#remove(EObject) EcoreUtil.remove(EObject)}.
* Adding an object will remove it from the previous container;
* it's {@link EObject#eContainer container} will be <code>null</code>
* and it's {@link EObject#eResource resource} will the <code>this</code>.
* its {@link EObject#eContainer container} will be <code>null</code>
* and its {@link EObject#eResource resource} will be <code>this</code>.
* </p>
* @return the direct content objects.
*/
Expand Down Expand Up @@ -731,7 +731,7 @@ interface Internal extends Resource
{
/**
* Called when the object is attached to this resource,
* i.e., when it's {@link EObject#eResource eResource} changes to be this one.
* i.e., when its {@link EObject#eResource eResource} changes to be this one.
* <p>
* An implementation that {@link Resource#getEObject resolves} based on IDs
* will need to walk the {@link EObject#eAllContents tree} of this object
Expand All @@ -749,11 +749,11 @@ interface Internal extends Resource

/**
* Called when the object is detached from this resource,
* i.e., when it's {@link EObject#eResource eResource} changes to no longer be this one.
* i.e., when its {@link EObject#eResource eResource} changes to no longer be this one.
* <p>
* An implementation that {@link Resource#getEObject resolves} based on IDs
* will need to walk the {@link EObject#eAllContents tree} of this object
* in order clean up it's index.
* in order clean up its index.
* An implementation that needs to {@link Resource#isTrackingModification track modification}
* will also need to walk the tree
* in order to remove the added adapter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* a resource set indirectly {@link ResourceSet#createResource(URI) creates} a resource using such a factory.
* A resource is typically {@link #getResourceSet contained} by a resource set,
* along with related resources.
* It has a {@link #getURI URI} representing it's identity
* It has a {@link #getURI URI} representing its identity
* and that URI is {@link org.eclipse.emf.ecore.resource.URIConverter used}
* to determine where to {@link #save(Map) save} and {@link #load(Map) load}.
* It provides modeled {@link #getContents contents},
Expand Down Expand Up @@ -223,8 +223,8 @@ public interface Resource extends Notifier
* Removing an object will have the same effect as
* {@link org.eclipse.emf.ecore.util.EcoreUtil#remove(EObject) EcoreUtil.remove(EObject)}.
* Adding an object will remove it from the previous container;
* it's {@link EObject#eContainer container} will be <code>null</code>
* and it's {@link EObject#eResource resource} will the <code>this</code>.
* its {@link EObject#eContainer container} will be <code>null</code>
* and its {@link EObject#eResource resource} will be <code>this</code>.
* </p>
* @return the direct content objects.
*/
Expand Down Expand Up @@ -738,7 +738,7 @@ interface Internal extends Resource
{
/**
* Called when the object is attached to this resource,
* i.e., when it's {@link EObject#eResource eResource} changes to be this one.
* i.e., when its {@link EObject#eResource eResource} changes to be this one.
* <p>
* An implementation that {@link Resource#getEObject resolves} based on IDs
* will need to walk the {@link EObject#eAllContents tree} of this object
Expand All @@ -756,11 +756,11 @@ interface Internal extends Resource

/**
* Called when the object is detached from this resource,
* i.e., when it's {@link EObject#eResource eResource} changes to no longer be this one.
* i.e., when its {@link EObject#eResource eResource} changes to no longer be this one.
* <p>
* An implementation that {@link Resource#getEObject resolves} based on IDs
* will need to walk the {@link EObject#eAllContents tree} of this object
* in order clean up it's index.
* in order clean up its index.
* An implementation that needs to {@link Resource#isTrackingModification track modification}
* will also need to walk the tree
* in order to remove the added adapter.
Expand Down

0 comments on commit 59adb09

Please sign in to comment.