alma::acs::eclipse::utils::jar::JarFolder Class Reference

Collaboration diagram for alma::acs::eclipse::utils::jar::JarFolder:
Collaboration graph
[legend]

List of all members.

Classes

class  JarClasses
class  JarFileNameFilter

Public Member Functions

 JarFolder (File folder)
File[] getJarFiles ()
String[] getJars ()
File getJar (String name)
boolean containsJar (String jarname)
Collection< JarClassesgetJarsContainingClass (String javaClass) throws Exception
String getAbsolutePath ()

Private Attributes

final File jarFolder

Detailed Description

JarFolder holds a folder of jar files allowing to perform the most common operation.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::eclipse::utils::jar::JarFolder::JarFolder ( File  folder  )  [inline]

References jarFolder.


Member Function Documentation

boolean alma::acs::eclipse::utils::jar::JarFolder::containsJar ( String  jarname  )  [inline]

Check if the folder contains a given jar file.

Parameters:
jarname A jar file like lc.jar
Returns:
true if the folder contains the passed jar

References getJarFiles().

String alma::acs::eclipse::utils::jar::JarFolder::getAbsolutePath (  )  [inline]

Return the absolute path of this folder of jars.

Returns:

References jarFolder.

File alma::acs::eclipse::utils::jar::JarFolder::getJar ( String  name  )  [inline]

Get the File of the jar with the given name.

Parameters:
name The name of the jar like for example lc.jar
Returns:
The File of the jar or null if the jar does not exist in the folder

References getJarFiles().

Referenced by alma::acs::eclipse::utils::jar::AcsFolders::getJar().

File [] alma::acs::eclipse::utils::jar::JarFolder::getJarFiles (  )  [inline]
Returns:
the list of the jar files in the folder

References jarFolder.

Referenced by containsJar(), getJar(), getJars(), and getJarsContainingClass().

String [] alma::acs::eclipse::utils::jar::JarFolder::getJars (  )  [inline]

Return the list of jar names in folder. A jar name can be for example lc.jar.

Returns:
The list of jars in the folder

References getJarFiles().

Referenced by alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::setAttributes().

Collection<JarClasses> alma::acs::eclipse::utils::jar::JarFolder::getJarsContainingClass ( String  javaClass  )  throws Exception [inline]

Return a list of jar files containing a given class.

The class name can be the whole name of a class or the beginning of its name. For example if javaClass is LoggingClient, this class returns both LoggingClient and LoggingClientText from lc.jar.

Parameters:
javaClassName The name of a class or a the beginning of its name
Returns:
A list of jar names containing the (partial) name of the class or null if no classes in the jars match with the passed partial name

References getJarFiles(), alma::acs::eclipse::utils::jar::JarFileHelper::getMatchingClasses(), and alma::acs::eclipse::utils::jar::JarFileHelper::getName().


Member Data Documentation

The folder containing jar files

Referenced by getAbsolutePath(), getJarFiles(), and JarFolder().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2