uk.co.lakesidetech.springxmldb.util
Class CollectionPathUtils

java.lang.Object
  extended byuk.co.lakesidetech.springxmldb.util.CollectionPathUtils

public class CollectionPathUtils
extends java.lang.Object

A set of utils for dealing with XML database collection path strings

Author:
Stuart Eccles

Constructor Summary
CollectionPathUtils()
           
 
Method Summary
static java.lang.String findCollectionNameFromFullPath(java.lang.String fullPath)
          given a collection full path return the actual name of the collection
static java.lang.String findCollectionPathWithoutRootFromFullPath(java.lang.String fullPath)
          return the collection path without the root database collection
static java.lang.String findContainingCollectionFromFullPath(java.lang.String fullPath)
          find the containing collection of a collection given its full path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionPathUtils

public CollectionPathUtils()
Method Detail

findCollectionNameFromFullPath

public static java.lang.String findCollectionNameFromFullPath(java.lang.String fullPath)
given a collection full path return the actual name of the collection

Parameters:
fullPath - the collection path
Returns:
the collection name

findContainingCollectionFromFullPath

public static java.lang.String findContainingCollectionFromFullPath(java.lang.String fullPath)
find the containing collection of a collection given its full path

Parameters:
fullPath - the collection full path
Returns:
the containing collection path

findCollectionPathWithoutRootFromFullPath

public static java.lang.String findCollectionPathWithoutRootFromFullPath(java.lang.String fullPath)
return the collection path without the root database collection

Parameters:
fullPath - the colection path
Returns:
path without the root