com.alee.utils.reflection
Class JarEntry

java.lang.Object
  extended by com.alee.utils.reflection.JarEntry

public class JarEntry
extends java.lang.Object

User: mgarin Date: 02.03.12 Time: 15:59


Field Summary
static javax.swing.ImageIcon classIcon
           
static javax.swing.ImageIcon fileIcon
           
static java.lang.String ID_PREFIX
           
static javax.swing.ImageIcon jarIcon
           
static javax.swing.ImageIcon javaIcon
           
static javax.swing.ImageIcon packageIcon
           
 
Constructor Summary
JarEntry()
           
JarEntry(JarEntryType type, java.lang.String name)
           
JarEntry(JarEntryType type, java.lang.String name, JarEntry parent)
           
JarEntry(JarEntryType type, java.lang.String name, JarEntry parent, java.util.List<JarEntry> childs)
           
 
Method Summary
 void addChild(int index, JarEntry child)
           
 void addChild(JarEntry child)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCanonicalEntryName()
           
 java.lang.String getCanonicalEntryPath()
           
 JarEntry getChild(int index)
           
 JarEntry getChildByName(java.lang.String name)
           
 java.util.List<JarEntry> getChilds()
           
 java.lang.String getEntryExtension()
           
 javax.swing.ImageIcon getIcon()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 JarEntry getParent()
           
 java.util.List<JarEntry> getPath()
           
 JarEntryType getType()
           
 java.util.zip.ZipEntry getZipEntry()
           
 boolean isClassEntry(java.lang.Class classType)
           
 void removeChild(JarEntry child)
           
 void setChilds(java.util.List<JarEntry> childs)
           
 void setIcon(javax.swing.ImageIcon icon)
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
           
 void setParent(JarEntry parent)
           
 void setType(JarEntryType type)
           
 void setZipEntry(java.util.zip.ZipEntry zipEntry)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_PREFIX

public static final java.lang.String ID_PREFIX
See Also:
Constant Field Values

jarIcon

public static javax.swing.ImageIcon jarIcon

packageIcon

public static javax.swing.ImageIcon packageIcon

classIcon

public static javax.swing.ImageIcon classIcon

javaIcon

public static javax.swing.ImageIcon javaIcon

fileIcon

public static javax.swing.ImageIcon fileIcon
Constructor Detail

JarEntry

public JarEntry()

JarEntry

public JarEntry(JarEntryType type,
                java.lang.String name)

JarEntry

public JarEntry(JarEntryType type,
                java.lang.String name,
                JarEntry parent)

JarEntry

public JarEntry(JarEntryType type,
                java.lang.String name,
                JarEntry parent,
                java.util.List<JarEntry> childs)
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getType

public JarEntryType getType()

setType

public void setType(JarEntryType type)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getParent

public JarEntry getParent()

setParent

public void setParent(JarEntry parent)

getZipEntry

public java.util.zip.ZipEntry getZipEntry()

setZipEntry

public void setZipEntry(java.util.zip.ZipEntry zipEntry)

getChilds

public java.util.List<JarEntry> getChilds()

getChild

public JarEntry getChild(int index)

getChildByName

public JarEntry getChildByName(java.lang.String name)

setChilds

public void setChilds(java.util.List<JarEntry> childs)

addChild

public void addChild(JarEntry child)

addChild

public void addChild(int index,
                     JarEntry child)

removeChild

public void removeChild(JarEntry child)

getIcon

public javax.swing.ImageIcon getIcon()

setIcon

public void setIcon(javax.swing.ImageIcon icon)

getEntryExtension

public java.lang.String getEntryExtension()

isClassEntry

public boolean isClassEntry(java.lang.Class classType)

getCanonicalEntryName

public java.lang.String getCanonicalEntryName()

getCanonicalEntryPath

public java.lang.String getCanonicalEntryPath()

getPath

public java.util.List<JarEntry> getPath()

equals

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

toString

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