|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.internal.resources.ResourceProxy
public class ResourceProxy
Implements a resource proxy given a path requestor and the resource info of the resource currently being visited.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ResourceProxy()
|
|
| Method Summary | |
|---|---|
long |
getModificationStamp()
Returns the modification stamp of the resource being visited. |
java.lang.String |
getName()
Returns the simple name of the resource being visited. |
java.lang.Object |
getSessionProperty(org.eclipse.core.runtime.QualifiedName key)
Returns the value of the session property of the resource being visited, identified by the given key. |
int |
getType()
Returns the type of the resource being visited. |
boolean |
isAccessible()
Returns whether the resource being visited is accessible. |
boolean |
isDerived()
Returns whether the resource being visited is derived. |
boolean |
isHidden()
Returns whether the resource being visited is a hidden resource. |
boolean |
isLinked()
Returns whether the resource being visited is a linked resource. |
boolean |
isPhantom()
Returns whether the resource being visited is a phantom resource. |
boolean |
isTeamPrivateMember()
Returns whether the resource being visited is a team private member. |
org.eclipse.core.runtime.IPath |
requestFullPath()
Returns the full workspace path of the resource being visited. |
IResource |
requestResource()
Returns the handle of the resource being visited. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceProxy()
| Method Detail |
|---|
public long getModificationStamp()
IResourceProxy
getModificationStamp in interface IResourceProxyNULL_STAMP if the
resource either does not exist or exists as a closed projectIResourceProxy.getModificationStamp()public java.lang.String getName()
IResourceProxy
getName in interface IResourceProxyIResource.getName()public java.lang.Object getSessionProperty(org.eclipse.core.runtime.QualifiedName key)
IResourceProxynull if this
resource has no such property.
Note that this method can return an out of date property value, or a value that no longer exists, if session properties are being modified concurrently with the resource visit.
getSessionProperty in interface IResourceProxykey - the qualified name of the property
null if the resource has no such propertyIResource.getSessionProperty(QualifiedName)public int getType()
IResourceProxy
getType in interface IResourceProxyIResource.getType()public boolean isAccessible()
IResourceProxy
isAccessible in interface IResourceProxytrue if the resource is accessible, and
false otherwiseIResourceProxy.isAccessible()public boolean isDerived()
IResourceProxy
isDerived in interface IResourceProxytrue if the resource is marked as derived, and
false otherwiseIResourceProxy.isDerived()public boolean isLinked()
IResourceProxy
isLinked in interface IResourceProxytrue if the resource is linked, and
false otherwiseIResourceProxy.isLinked()public boolean isPhantom()
IResourceProxy
isPhantom in interface IResourceProxytrue if the resource is a phantom resource, and
false otherwiseIResourceProxy.isPhantom()public boolean isTeamPrivateMember()
IResourceProxy
isTeamPrivateMember in interface IResourceProxytrue if the resource is a team private member, and
false otherwiseIResourceProxy.isTeamPrivateMember()public boolean isHidden()
IResourceProxy
isHidden in interface IResourceProxytrue if the resource is a hidden resource, and
false otherwiseIResourceProxy.isHidden()public org.eclipse.core.runtime.IPath requestFullPath()
IResourceProxyNote that this is not a "free" proxy operation. This method will generally cause a path object to be created. For an optimal visitor, only call this method when absolutely necessary. Note that the simple resource name can be obtained from the proxy with no cost.
requestFullPath in interface IResourceProxyIResourceProxy.requestFullPath()public IResource requestResource()
IResourceProxyNote that this is not a "free" proxy operation. This method will generally cause both a path object and a resource object to be created. For an optimal visitor, only call this method when absolutely necessary. Note that the simple resource name can be obtained from the proxy with no cost, and the full path of the resource can be obtained through the proxy with smaller cost.
requestResource in interface IResourceProxyIResourceProxy.requestResource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||