org.eclipse.cosmos.rm.validation.internal.artifacts
Class ResourceWrapper
java.lang.Object
org.eclipse.cosmos.rm.validation.internal.artifacts.ResourceWrapper
public class ResourceWrapper
- extends java.lang.Object
A resource wrapper is used to represent a resource inside or outside of
the Eclipse environment
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ResourceWrapper
public ResourceWrapper(java.lang.String path,
boolean inEclipse)
- The constructor
- Parameters:
path - The path of the resourceinEclipse - Must be true iff running in Eclipse
ResourceWrapper
public ResourceWrapper(org.eclipse.core.resources.IResource eclipseResource)
ResourceWrapper
public ResourceWrapper(java.io.File resource)
isDirectory
public boolean isDirectory()
getChildren
public ResourceWrapper[] getChildren()
getName
public java.lang.String getName()
isFile
public boolean isFile()
getContents
public java.io.InputStream getContents()
getFullPath
public java.lang.String getFullPath()
getAbsolutePath
public java.lang.String getAbsolutePath()
exists
public boolean exists()
getResource
public java.lang.Object getResource()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object