org.schmant.project.java
Class Library

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.project.java.Library

public class Library
extends AbstractArgumentChecker

A Library represents a JavaProject dependency that has a list of zero or more Jar files and/or class directories.

The methods of this object are not thread safe.

Since:
0.7.1
Author:
Karl Gustafsson

Constructor Summary
Library()
           
 
Method Summary
 Library addEntries(Collection<?> c)
          Add a collection of library files and/or class directories.
 Library addEntry(Object o)
          Add one library file or class directory.
 List<Object> getEntries()
          Get this library's dependency entries.
 
Methods inherited from class org.schmant.support.AbstractArgumentChecker
check, check, check, check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Library

public Library()
Method Detail

addEntry

public Library addEntry(Object o)
Add one library file or class directory.

Parameters:
o - The dependency entry.
Returns:
this

addEntries

public Library addEntries(Collection<?> c)
Add a collection of library files and/or class directories. The library entries are added in the order that they are returned when iterating over the collection.

Parameters:
c - The collection of dependencies.
Returns:
this

getEntries

public List<Object> getEntries()
Get this library's dependency entries.

Returns:
The list of dependency entries in this library.