Jalopy 1.0b10

de.hunsicker.jalopy.language
Class ClassRepositoryEntry

java.lang.Object
  |
  +--de.hunsicker.jalopy.language.ClassRepositoryEntry

public class ClassRepositoryEntry
extends Object

Represents a repository entry for a given Java library. An entry consists of meta information and the actual data stored in a set.

Version:
$Revision: 1.3 $
Author:
Marco Hunsicker
See Also:
ClassRepository

Inner Class Summary
static class ClassRepositoryEntry.Info
          Provides information about a repository entry.
 
Constructor Summary
ClassRepositoryEntry(ClassRepositoryEntry.Info info, Set data)
          Creates a new ClassRepositoryEntry object.
ClassRepositoryEntry(File location, long lastModified, Set data)
          Creates a new ClassRepositoryEntry object.
 
Method Summary
 boolean equals(Object o)
          {@inheritDoc}
 Set getData()
          Returns the current data.
 ClassRepositoryEntry.Info getInfo()
          Returns the entry information.
static ClassRepositoryEntry.Info getInfo(File file)
          Returns the entry information for the given repository entry file.
 int hashCode()
          {@inheritDoc}
 void setData(Set data)
          Sets the data of the entry.
 String toString()
          {@inheritDoc}
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassRepositoryEntry

public ClassRepositoryEntry(ClassRepositoryEntry.Info info,
                            Set data)
Creates a new ClassRepositoryEntry object.
Parameters:
info - the entry information.
data - set with the actual data.

ClassRepositoryEntry

public ClassRepositoryEntry(File location,
                            long lastModified,
                            Set data)
Creates a new ClassRepositoryEntry object.
Parameters:
location - the location of the original source.
lastModified -  
data - contents.
Method Detail

getInfo

public static ClassRepositoryEntry.Info getInfo(File file)
                                         throws IOException
Returns the entry information for the given repository entry file.
Parameters:
file - repository entry file (those ending with .jdb).
Returns:
entry information.
Throws:
IOException - if an I/O error occured.

setData

public void setData(Set data)
Sets the data of the entry.
Parameters:
data - data (of type <String>).

getData

public Set getData()
Returns the current data.
Returns:
data (of type <String>).

getInfo

public ClassRepositoryEntry.Info getInfo()
Returns the entry information.
Returns:
entry information.

equals

public boolean equals(Object o)
{@inheritDoc}
Overrides:
equals in class Object

hashCode

public int hashCode()
{@inheritDoc}
Overrides:
hashCode in class Object

toString

public String toString()
{@inheritDoc}
Overrides:
toString in class Object

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002