|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SavannahTableElement
Purpose: Interface for elements of the SavannahTableModel.
Copyright 2004, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2004.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 09/08/2004 Nick Initial Release ============================================================================
Field Summary | |
---|---|
static long |
DATE_UNKNOWN
|
static long |
SIZE_UNKNOWN
|
static int |
TYPE_FILE
|
static int |
TYPE_FOLDER
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Returns true if this object is equal to the other object. |
long |
getModificationDate()
Returns the last modificiation date of entry, or -1 if not defined. |
String |
getName()
Returns the element file name. |
String |
getParent()
Returns string representation of parent, either a directory, or filetype path. |
String |
getPath()
Returns the absolute path of the file. |
long |
getSize()
Returns the filesize if known of SIZE_UNKNOWN if size is not assigned a known value. |
int |
getType()
Returns the type of file to differentiate between a normal file and a folder, one of TYPE_FILE or TYPE_FOLDER. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isParent()
Returns true if element is considered a parent node in the file heirarchy, false otherwise. |
String |
toString()
Returns the associated identification of element, depending on what the implementation selects as most meaningful. |
Field Detail |
---|
static final int TYPE_FILE
static final int TYPE_FOLDER
static final long SIZE_UNKNOWN
static final long DATE_UNKNOWN
Method Detail |
---|
String toString()
toString
in class Object
boolean equals(Object obj)
equals
in class Object
obj
- The object with which this is compared.
int hashCode()
hashCode
in class Object
int getType()
long getSize()
String getName()
String getPath()
long getModificationDate()
boolean isParent()
String getParent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |