org.aspectj.org.eclipse.jdt.internal.core
Class JarEntryResource

java.lang.Object
  extended by PlatformObject
      extended by org.aspectj.org.eclipse.jdt.internal.core.JarEntryResource
All Implemented Interfaces:
IJarEntryResource
Direct Known Subclasses:
JarEntryDirectory, JarEntryFile

public abstract class JarEntryResource
extends PlatformObject
implements IJarEntryResource


Field Summary
protected  java.lang.Object parent
           
protected  java.lang.String simpleName
           
 
Constructor Summary
JarEntryResource(java.lang.String simpleName)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJarEntryResource
getChildren, isFile
 

Field Detail

parent

protected java.lang.Object parent

simpleName

protected java.lang.String simpleName
Constructor Detail

JarEntryResource

public JarEntryResource(java.lang.String simpleName)
Method Detail

clone

public abstract JarEntryResource clone(java.lang.Object newParent)

equals

public boolean equals(java.lang.Object obj)

getEntryName

protected java.lang.String getEntryName()

getFullPath

public IPath getFullPath()
Description copied from interface: IJarEntryResource
Returns the full, absolute path of this jar entry resource relative to the archive this jar entry belongs to.

A 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.

Specified by:
getFullPath in interface IJarEntryResource
Returns:
the absolute path of this jar entry resource

getName

public java.lang.String getName()

getParent

public java.lang.Object getParent()
Description copied from interface: IJarEntryResource
Returns the parent of this jar entry resource. This is either an IJarEntryResource, an IPackageFragment or an IPackageFragmentRoot.

Specified by:
getParent in interface IJarEntryResource
Returns:
the parent of this jar entry resource

getPackageFragmentRoot

public IPackageFragmentRoot getPackageFragmentRoot()
Description copied from interface: IJarEntryResource
Returns the package fragment root this jar entry resource belongs to.

Specified by:
getPackageFragmentRoot in interface IJarEntryResource
Returns:
the package fragment root this jar entry resource belongs to.

getZipFile

protected java.util.zip.ZipFile getZipFile()
                                    throws CoreException
Throws:
CoreException

hashCode

public int hashCode()

isReadOnly

public boolean isReadOnly()

setParent

public void setParent(java.lang.Object parent)