org.apache.slide.common
Class Scope

java.lang.Object
  |
  +--org.apache.slide.common.Scope

public final class Scope
extends java.lang.Object

Scope object.

A scope represents a directory on the server. Ex : /foo/bar.txt belongs to the /foo/ scope.

Version:
$Revision: 1.3 $
Author:
Remy Maucherat

Constructor Summary
Scope(java.lang.String scope)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests if two scopes ore equal.
 int hashCode()
          Hash code.
 java.lang.String toString()
          Returns the String representation of the scope.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scope

public Scope(java.lang.String scope)
Constructor.
Parameters:
scope - String representation of the scope.
Method Detail

toString

public java.lang.String toString()
Returns the String representation of the scope.
Overrides:
toString in class java.lang.Object
Returns:
String

equals

public boolean equals(java.lang.Object obj)
Tests if two scopes ore equal.
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to test
Returns:
boolean True if the object is equal to the scope

hashCode

public int hashCode()
Hash code.
Overrides:
hashCode in class java.lang.Object
Returns:
int Result is the hash code of the String representation of the scope