de.hunsicker.jalopy.language
Class ClassRepositoryEntry.Info

java.lang.Object
  |
  +--de.hunsicker.jalopy.language.ClassRepositoryEntry.Info
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
ClassRepositoryEntry

public static final class ClassRepositoryEntry.Info
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Provides information about a repository entry.

See Also:
Serialized Form

Constructor Summary
ClassRepositoryEntry.Info(java.io.File location)
          Creates a new Info object.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object o)
           
 java.lang.String getFilename()
          Returns the filename under which this entry is stored.
 java.io.File getLocation()
          Returns the original location of the entry's data.
 int hashCode()
          
 boolean isLoaded()
           
 boolean isRefreshable()
          Determines whether this entry can be refreshed.
 void setLoaded(boolean loaded)
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassRepositoryEntry.Info

public ClassRepositoryEntry.Info(java.io.File location)
Creates a new Info object.

Parameters:
location - location of the source for the entry (either file or directory are valid).
Throws:
java.lang.IllegalArgumentException - if location does not denote an existing archive or directory.
Method Detail

getFilename

public java.lang.String getFilename()
Returns the filename under which this entry is stored.

Returns:
the filename of the entry.

setLoaded

public void setLoaded(boolean loaded)

isLoaded

public boolean isLoaded()

getLocation

public java.io.File getLocation()
Returns the original location of the entry's data.

Returns:
the original location.

isRefreshable

public boolean isRefreshable()
Determines whether this entry can be refreshed.

Returns:
true if the entry can be refreshed.

compareTo

public int compareTo(java.lang.Object o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this object.

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.