org.eclipse.stp.core.infrastructure.emf
Class EclipseResourceDescriptor

java.lang.Object
  extended by org.eclipse.stp.core.infrastructure.emf.EclipseResourceDescriptor
All Implemented Interfaces:
IResourceDescriptor

public class EclipseResourceDescriptor
extends java.lang.Object
implements IResourceDescriptor


Constructor Summary
EclipseResourceDescriptor(IFile aFile)
           
EclipseResourceDescriptor(IPath theDefaultPath, IPath workspaceRelativeLocalPath)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 IPath getDefaultPath()
          Return the default relative location where this resource could be found.
 IPath getLocalPath()
          Return the workspace relative location where the resource was found.
 java.lang.String getRequestProtocol()
           
 int hashCode()
           
 boolean isLoadAsReadOnly()
           
 boolean matches(IFile file)
          A ResourceDescriptor might be able to indicate what it matches.
 void setLoadAsReadOnly(boolean toLoadAsReadOnly)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EclipseResourceDescriptor

public EclipseResourceDescriptor(IPath theDefaultPath,
                                 IPath workspaceRelativeLocalPath)

EclipseResourceDescriptor

public EclipseResourceDescriptor(IFile aFile)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isLoadAsReadOnly

public boolean isLoadAsReadOnly()
Specified by:
isLoadAsReadOnly in interface IResourceDescriptor

setLoadAsReadOnly

public void setLoadAsReadOnly(boolean toLoadAsReadOnly)

getLocalPath

public IPath getLocalPath()
Description copied from interface: IResourceDescriptor
Return the workspace relative location where the resource was found.

Specified by:
getLocalPath in interface IResourceDescriptor
Returns:

getDefaultPath

public IPath getDefaultPath()
Description copied from interface: IResourceDescriptor
Return the default relative location where this resource could be found. This method may be used when creating a new resource. Example: "META-INF/ejb-jar.xml"

Specified by:
getDefaultPath in interface IResourceDescriptor
Returns:

matches

public boolean matches(IFile file)
Description copied from interface: IResourceDescriptor
A ResourceDescriptor might be able to indicate what it matches.

Specified by:
matches in interface IResourceDescriptor
Returns:

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getRequestProtocol

public java.lang.String getRequestProtocol()
Specified by:
getRequestProtocol in interface IResourceDescriptor
Returns:
The protocol to use when requesting a resource (e.g. "platform:/resource" or "comptype:"). Do not supply a trailing slash.