org.apache.slide.common
Class Scope

java.lang.Object
  extended byorg.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.8 $

Field Summary
static Scope ROOT
           
 
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
 

Field Detail

ROOT

public static final Scope ROOT
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.

Returns:
String

equals

public boolean equals(java.lang.Object obj)
Tests if two scopes ore equal.

Parameters:
obj - Object to test
Returns:
boolean True if the object is equal to the scope

hashCode

public int hashCode()
Hash code.

Returns:
int Result is the hash code of the String representation of the scope