|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.model.util.ResourceHelper
public final class ResourceHelper
Helper for resource operations.
Method Summary | ||
---|---|---|
static
|
getElementFromResource(String absoluteFileName,
Class<T> type,
int index)
Gets an element from a resource. |
|
static
|
getElementFromResource(String absoluteFileName,
Class<T> type,
Map<?,?> options,
int index)
Gets an element from a resource. |
|
static
|
putElementIntoNewResource(String absoluteFileName,
T element)
Puts an element into a new resource. |
|
static
|
putElementIntoNewResourceWithProject(String absoluteFileName,
T element,
Project project)
Puts an element into a new resource. |
|
static
|
putWorkspaceIntoNewResource(String absoluteFileName,
Workspace workSpace)
Puts an element into a new resource. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends org.eclipse.emf.ecore.EObject> T getElementFromResource(String absoluteFileName, Class<T> type, Map<?,?> options, int index) throws IOException
T
- type of elementabsoluteFileName
- filepath of resourcetype
- .class from typeoptions
- resource optionsindex
- index of element in resource
IOException
- in case of failurepublic static <T extends org.eclipse.emf.ecore.EObject> T getElementFromResource(String absoluteFileName, Class<T> type, int index) throws IOException
T
- type of elementabsoluteFileName
- filepath of resourcetype
- .class from typeindex
- index of element in resource
IOException
- in case of failurepublic static <T extends org.eclipse.emf.ecore.EObject> void putElementIntoNewResource(String absoluteFileName, T element) throws IOException
T
- element typeelement
- The element to be putabsoluteFileName
- filepath of resource
IOException
- in case of failurepublic static <T extends org.eclipse.emf.ecore.EObject> void putElementIntoNewResourceWithProject(String absoluteFileName, T element, Project project) throws IOException
T
- element typeelement
- The element to be putabsoluteFileName
- filepath of resourceproject
- the associated project
IOException
- in case of failurepublic static <T extends org.eclipse.emf.ecore.EObject> void putWorkspaceIntoNewResource(String absoluteFileName, Workspace workSpace) throws IOException
T
- element typeworkSpace
- the workspace to be putabsoluteFileName
- filepath of resource
IOException
- in case of failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |