net.sf.ant4eclipse.model.userlibrary
Class UserLibraries

java.lang.Object
  extended by net.sf.ant4eclipse.model.userlibrary.UserLibraries

public final class UserLibraries
extends java.lang.Object

This class provides the content of a user library configuration.


Constructor Summary
UserLibraries()
          Initialises this data structure used to collect the content of an eclipse user library configuration file.
 
Method Summary
 void addLibrary(UserLibrary userlibrary)
          Adds the supplied user library entry to this collecting data structure.
 java.lang.String[] getAvailableLibraries()
          Returns a list with the names of the available libraries.
 UserLibrary getLibrary(java.lang.String name)
          Returns a user library entry associated with the supplied name.
 boolean hasLibrary(java.lang.String name)
          Returns true if there's a specific library entry available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLibraries

public UserLibraries()
Initialises this data structure used to collect the content of an eclipse user library configuration file.

Method Detail

addLibrary

public void addLibrary(UserLibrary userlibrary)
Adds the supplied user library entry to this collecting data structure.

Parameters:
userlibrary - The user library entry which shall be added.

hasLibrary

public boolean hasLibrary(java.lang.String name)
Returns true if there's a specific library entry available.

Parameters:
name - The name of the desired library.
Returns:
true <=> A library with the supplied name is available.

getLibrary

public UserLibrary getLibrary(java.lang.String name)
Returns a user library entry associated with the supplied name.

Parameters:
name - The name used to access this user library.
Returns:
The associated user library entry.

getAvailableLibraries

public java.lang.String[] getAvailableLibraries()
Returns a list with the names of the available libraries.

Returns:
A list with the names of the available libraries.