de.hunsicker.jalopy.language
Class ClassRepositoryEntry

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

public class ClassRepositoryEntry
extends java.lang.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.2.2 $
Author:
Marco Hunsicker
See Also:
ClassRepository

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

Constructor Detail

ClassRepositoryEntry

public ClassRepositoryEntry(ClassRepositoryEntry.Info info,
                            java.util.Set data)
Creates a new ClassRepositoryEntry object.

Parameters:
info - the entry information.
data - set with the actual data.

ClassRepositoryEntry

public ClassRepositoryEntry(java.io.File location,
                            long lastModified,
                            java.util.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(java.io.File file)
                                         throws java.io.IOException
Returns the entry information for the given repository entry file.

Parameters:
file - repository entry file (those ending with .jdb).
Returns:
entry information.
Throws:
java.io.IOException - if an I/O error occured.

setData

public void setData(java.util.Set data)
Sets the data of the entry.

Parameters:
data - data (of type <String>).

getData

public java.util.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(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 1997-2005 Jalopy. All Rights Reserved.