Daily merge.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-05-12 20:22:46 +00:00
parent 1250a0352c
commit 1dd2a7b72b
67 changed files with 1364 additions and 389 deletions

View File

@@ -223,10 +223,25 @@ public final class Repository
* @return human readable form of the Path excluding the final element
*/
public static String getDisplayPath(Path path)
{
return getDisplayPath(path, false);
}
/**
* Return the human readable form of the specified node Path. Fast version of the method that
* simply converts QName localname components to Strings.
*
* @param path Path to extract readable form from
* @param showLeaf Whether to process the final leaf element of the path
*
* @return human readable form of the Path excluding the final element
*/
public static String getDisplayPath(Path path, boolean showLeaf)
{
StringBuilder buf = new StringBuilder(64);
for (int i=0; i<path.size()-1; i++)
int count = path.size() - (showLeaf ? 0 : 1);
for (int i=0; i<count; i++)
{
String elementString = null;
Path.Element element = path.get(i);