org.apache.jackrabbit.jcr2spi.util
Class LogUtil

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.util.LogUtil

public class LogUtil
extends Object

LogUtil...


Constructor Summary
LogUtil()
           
 
Method Summary
static String safeGetJCRPath(ItemState itemState, PathResolver pathResolver)
          Failsafe conversion of an ItemState to JCR path for use in error messages etc.
static String safeGetJCRPath(Path qPath, PathResolver pathResolver)
          Failsafe conversion of internal Path to JCR path for use in error messages etc.
static String saveGetJCRName(Name qName, NameResolver nameResolver)
          Failsafe conversion of a Name to a JCR name for use in error messages etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtil

public LogUtil()
Method Detail

safeGetJCRPath

public static String safeGetJCRPath(Path qPath,
                                    PathResolver pathResolver)
Failsafe conversion of internal Path to JCR path for use in error messages etc.

Parameters:
qPath - path to convert
pathResolver -
Returns:
JCR path

safeGetJCRPath

public static String safeGetJCRPath(ItemState itemState,
                                    PathResolver pathResolver)
Failsafe conversion of an ItemState to JCR path for use in error messages etc.

Parameters:
itemState -
pathResolver -
Returns:
JCR path

saveGetJCRName

public static String saveGetJCRName(Name qName,
                                    NameResolver nameResolver)
Failsafe conversion of a Name to a JCR name for use in error messages etc.

Parameters:
qName -
nameResolver -
Returns:
JCR name or String representation of the given Name in case the resolution fails.


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.