org.exist.collections
Class CollectionURI

java.lang.Object
  extended by org.exist.collections.CollectionURI

public class CollectionURI
extends Object

URI to represent a Collection path internally in eXist


Field Summary
static char FRAGMENT_SEPARATOR
           
 
Constructor Summary
CollectionURI(CollectionURI other)
           
CollectionURI(String path)
           
 
Method Summary
 void append(String segment)
           
 boolean equals(Object object)
           
 int hashCode()
          Copied from java.lang.String.hashCode(); Returns a hash code for this string.
 void removeLastSegment()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FRAGMENT_SEPARATOR

public static final char FRAGMENT_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

CollectionURI

public CollectionURI(String path)

CollectionURI

public CollectionURI(CollectionURI other)
Method Detail

append

public void append(String segment)

removeLastSegment

public void removeLastSegment()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Copied from java.lang.String.hashCode(); Returns a hash code for this string. The hash code for a String object is computed as
 s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
 
using int arithmetic, where s[i] is the ith character of the string, n is the length of the string, and ^ indicates exponentiation. (The hash value of the empty string is zero.)

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright (C) Wolfgang Meier. All rights reserved.