public abstract class JarEntryResource extends PlatformObject implements IJarEntryResource
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
parent |
protected java.lang.String |
simpleName |
| Constructor and Description |
|---|
JarEntryResource(java.lang.String simpleName) |
| Modifier and Type | Method and Description |
|---|---|
abstract JarEntryResource |
clone(java.lang.Object newParent) |
boolean |
equals(java.lang.Object obj) |
protected java.lang.String |
getEntryName() |
IPath |
getFullPath()
Returns the full, absolute path of this jar entry resource relative to the archive this jar
entry belongs to.
|
java.lang.String |
getName() |
IPackageFragmentRoot |
getPackageFragmentRoot()
Returns the package fragment root this jar entry resource belongs to.
|
java.lang.Object |
getParent()
Returns the parent of this jar entry resource.
|
protected java.util.zip.ZipFile |
getZipFile() |
int |
hashCode() |
boolean |
isReadOnly() |
void |
setParent(java.lang.Object parent) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetChildren, isFileprotected java.lang.Object parent
protected java.lang.String simpleName
public abstract JarEntryResource clone(java.lang.Object newParent)
public boolean equals(java.lang.Object obj)
protected java.lang.String getEntryName()
public IPath getFullPath()
IJarEntryResourceA jar entry resource's full path indicates the route from the root of the archive to the jar entry resource. Within an archive, there is exactly one such path for any given jar entry resource.
The returned path is absolute (i.e. it starts with a separator) and it never has a trailing separator.
getFullPath in interface IJarEntryResourcepublic java.lang.String getName()
public java.lang.Object getParent()
IJarEntryResourceIJarEntryResource, an IPackageFragment
or an IPackageFragmentRoot.getParent in interface IJarEntryResourcepublic IPackageFragmentRoot getPackageFragmentRoot()
IJarEntryResourcegetPackageFragmentRoot in interface IJarEntryResourceprotected java.util.zip.ZipFile getZipFile()
throws CoreException
CoreExceptionpublic int hashCode()
public boolean isReadOnly()
public void setParent(java.lang.Object parent)