com.dynalivery.repository.util
Class RepositoryRef
java.lang.Object
|
+--com.dynalivery.repository.util.RepositoryRef
- Direct Known Subclasses:
- FileRef, FolderRef
- public abstract class RepositoryRef
- extends java.lang.Object
- implements java.io.Serializable, java.util.Comparator
This class is used as a base class for both folder and file references
- See Also:
- Serialized Form
|
Method Summary |
abstract int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order. |
abstract int |
compareTo(java.lang.Object anotherObject)
Compares this object with the specified object for order. |
abstract boolean |
equals(java.lang.Object anotherObject)
Compares two objects for equality |
abstract java.lang.String |
getPathname()
get the repository pathname String for this reference |
abstract java.lang.String |
toString()
Returns a String which describes this repository reference. |
| Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
RepositoryRef
public RepositoryRef()
getPathname
public abstract java.lang.String getPathname()
- get the repository pathname String for this reference
- Returns:
- the repository pathname String for this file
compare
public abstract int compare(java.lang.Object o1,
java.lang.Object o2)
- Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the
first argument is less than, equal to, or greater than the second.
- Specified by:
- compare in interface java.util.Comparator
- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second
compareTo
public abstract int compareTo(java.lang.Object anotherObject)
- Compares this object with the specified object for order. Returns a negative integer,
zero, or a positive integer as this object is less than, equal to, or greater than
the specified object.
- Parameters:
anotherObject - the object to compare to this one- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
equals
public abstract boolean equals(java.lang.Object anotherObject)
- Compares two objects for equality
- Specified by:
- equals in interface java.util.Comparator
- Overrides:
- equals in class java.lang.Object
- Parameters:
anotherObject - the object to compare to this one- Returns:
- true if the objects are equal
toString
public abstract java.lang.String toString()
- Returns a String which describes this repository reference.
- Overrides:
- toString in class java.lang.Object
- Returns:
- a String which describes this repository reference.