You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2001/07/31 09:13:53 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/common Scope.java
juergen 01/07/31 00:13:53
Modified: src/share/org/apache/slide/common Scope.java
Log:
made the constructor public, to be able to access the stores field in Namespace properly.
Revision Changes Path
1.3 +18 -18 jakarta-slide/src/share/org/apache/slide/common/Scope.java
Index: Scope.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Scope.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Scope.java 2000/09/26 02:44:05 1.2
+++ Scope.java 2001/07/31 07:13:53 1.3
@@ -1,13 +1,13 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Scope.java,v 1.2 2000/09/26 02:44:05 remm Exp $
- * $Revision: 1.2 $
- * $Date: 2000/09/26 02:44:05 $
+ * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Scope.java,v 1.3 2001/07/31 07:13:53 juergen Exp $
+ * $Revision: 1.3 $
+ * $Date: 2001/07/31 07:13:53 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -15,7 +15,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -23,15 +23,15 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
+ * from this software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
@@ -59,7 +59,7 @@
*
* [Additional notices, if required by prior licensing conditions]
*
- */
+ */
package org.apache.slide.common;
@@ -68,9 +68,9 @@
* <p/>
* A scope represents a directory on the server. Ex : /foo/bar.txt belongs
* to the /foo/ scope.
- *
+ *
* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public final class Scope {
@@ -80,10 +80,10 @@
/**
* Constructor.
- *
+ *
* @param scope String representation of the scope.
*/
- Scope(String scope) {
+ public Scope(String scope) {
this.scope = scope;
scopeID = scope.hashCode();
}
@@ -109,8 +109,8 @@
/**
* Returns the String representation of the scope.
- *
- * @return String
+ *
+ * @return String
*/
public String toString() {
return this.scope;
@@ -119,7 +119,7 @@
/**
* Tests if two scopes ore equal.
- *
+ *
* @param obj Object to test
* @return boolean True if the object is equal to the scope
*/
@@ -135,8 +135,8 @@
/**
* Hash code.
- *
- * @return int Result is the hash code of the String representation
+ *
+ * @return int Result is the hash code of the String representation
* of the scope
*/
public int hashCode() {