nl.hippo.client.webdav
Class DocumentPathImpl

java.lang.Object
  extended by nl.hippo.client.webdav.DocumentPathImpl
All Implemented Interfaces:
Serializable, DocumentPath

public class DocumentPathImpl
extends Object
implements DocumentPath

Represents a path in the repository.

methods

slashes

These rules are guaranteed even if the configuration isn't completely clean, ie "namespace = /default/"

See Also:
Serialized Form

Constructor Summary
DocumentPathImpl(String namespace, String contextroot, String filesPath, String[] pathElems, boolean isRelative)
           
DocumentPathImpl(String namespace, String contextroot, String filesPath, String path, boolean isRelative)
           
 
Method Summary
 DocumentPath createAbsolutePath(String absolute)
           
 DocumentPath createAbsolutePath(String[] pathElems)
           
 DocumentPath createRelativePath(String relative)
           
 DocumentPath createRelativePath(String[] pathElems)
           
 boolean equals(Object obj)
           
 String getContextRoot()
           
 String getFilesPath()
           
 String getFullPath()
           
 String getNamespace()
           
 String getRelativePath()
           
 String getRootPath()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentPathImpl

public DocumentPathImpl(String namespace,
                        String contextroot,
                        String filesPath,
                        String path,
                        boolean isRelative)

DocumentPathImpl

public DocumentPathImpl(String namespace,
                        String contextroot,
                        String filesPath,
                        String[] pathElems,
                        boolean isRelative)
Method Detail

getContextRoot

public String getContextRoot()
Specified by:
getContextRoot in interface DocumentPath

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface DocumentPath

getFilesPath

public String getFilesPath()
Specified by:
getFilesPath in interface DocumentPath

getRootPath

public String getRootPath()
Specified by:
getRootPath in interface DocumentPath

getRelativePath

public String getRelativePath()
Specified by:
getRelativePath in interface DocumentPath

getFullPath

public String getFullPath()
Specified by:
getFullPath in interface DocumentPath

createAbsolutePath

public DocumentPath createAbsolutePath(String absolute)
Specified by:
createAbsolutePath in interface DocumentPath

createAbsolutePath

public DocumentPath createAbsolutePath(String[] pathElems)
Specified by:
createAbsolutePath in interface DocumentPath

createRelativePath

public DocumentPath createRelativePath(String relative)
Specified by:
createRelativePath in interface DocumentPath

createRelativePath

public DocumentPath createRelativePath(String[] pathElems)
Specified by:
createRelativePath in interface DocumentPath

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2006-2009 Hippo. All Rights Reserved.