|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.modisco.infra.query.core.internal.ReferedFileHandler
public final class ReferedFileHandler
This class represents a reference to a file pointed by a model query attribute.
Constructor Summary | |
---|---|
ReferedFileHandler(java.lang.String containerName,
java.lang.String fileLocation,
ModelQuery modelQuery)
This method returns an instance of ReferedFileHandler. |
Method Summary | |
---|---|
boolean |
exists()
This method returns true is the file exists. |
java.io.InputStream |
getInputStream()
Return a input stream to the corresponding file |
IFile |
getWSFile()
If the referred file is a workspace file, this method return return an IFile instance representing the referred file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReferedFileHandler(java.lang.String containerName, java.lang.String fileLocation, ModelQuery modelQuery)
containerName
- The name of the containing plug-in or project. If
containerName is null, the query model element container
(plug-in or project) is used.fileLocation
- The location of the file into the container.Method Detail |
---|
public boolean exists()
public java.io.InputStream getInputStream() throws java.lang.Exception
java.lang.Exception
- If the file is not readablepublic IFile getWSFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |