jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r586059 - in /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit: ./ name/ util/ util/name/ value/
Date Thu, 18 Oct 2007 18:37:01 GMT
Author: angela
Date: Thu Oct 18 11:36:59 2007
New Revision: 586059

URL: http://svn.apache.org/viewvc?rev=586059&view=rev
Log:
JCR-1169 Distribution of commons classes

Added:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java
  (with props)
Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/BaseException.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/AbstractNamespaceResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingPathResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/GenerationalCache.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/IllegalNameException.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/MalformedPathException.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameCache.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameException.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameFormat.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceListener.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NoPrefixDeclaredException.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingNameResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingPathResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathFormat.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/QName.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/SessionNamespaceResolver.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/UnknownPrefixException.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Locked.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/PathMap.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceAdder.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceExtractor.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceMapping.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/BaseException.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/BaseException.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/BaseException.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/BaseException.java
Thu Oct 18 11:36:59 2007
@@ -20,6 +20,8 @@
  * The abstract class <code>BaseException</code> serves as the base class
  * for all exceptions that are specific to this JCR implementation and that
  * are not derived from <code>javax.jcr.RepositoryException</code>.
+ *
+ * @deprecated
  */
 public abstract class BaseException extends Exception {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/AbstractNamespaceResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/AbstractNamespaceResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/AbstractNamespaceResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/AbstractNamespaceResolver.java
Thu Oct 18 11:36:59 2007
@@ -32,6 +32,8 @@
  * with <code>supportListeners</code> set to <code>true</code>. The
default
  * constructor will not enable listener support and all listener related
  * methods will throw an {@link UnsupportedOperationException} in that case.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.namespace.AbstractNamespaceResolver} instead.
  */
 public abstract class AbstractNamespaceResolver implements NamespaceResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingNameResolver.java
Thu Oct 18 11:36:59 2007
@@ -22,6 +22,8 @@
  * Name resolver decorator that uses a generational cache to speed up
  * parsing and formatting of JCR names. Uncached names are resolved using
  * the underlying decorated name resolver.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.CachingNameResolver} instead.
  */
 public class CachingNameResolver implements NameResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingPathResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingPathResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingPathResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/CachingPathResolver.java
Thu Oct 18 11:36:59 2007
@@ -22,6 +22,8 @@
  * Path resolver decorator that uses a generational cache to speed up
  * parsing and formatting of JCR paths. Uncached paths are resolved using
  * the underlying decorated path resolver.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.CachingPathResolver} instead.
  */
 public class CachingPathResolver implements PathResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/GenerationalCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/GenerationalCache.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/GenerationalCache.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/GenerationalCache.java
Thu Oct 18 11:36:59 2007
@@ -27,6 +27,8 @@
  * are used within two successive generations get promoted to the long term
  * cache. The entries within the long term cache are discarded only when the
  * size of the cache exceeds the given maximum cache size.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.GenerationalCache} instead.
  */
 class GenerationalCache {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/IllegalNameException.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/IllegalNameException.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/IllegalNameException.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/IllegalNameException.java
Thu Oct 18 11:36:59 2007
@@ -25,6 +25,8 @@
  * <p>
  * See the section 4.6 of the JCR 1.0 specification for details of the
  * JCR name syntax.
+ *
+ * @deprecated 
  */
 public class IllegalNameException extends NameException {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/MalformedPathException.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/MalformedPathException.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/MalformedPathException.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/MalformedPathException.java
Thu Oct 18 11:36:59 2007
@@ -24,6 +24,8 @@
  * <p>
  * See the section 4.6 of the JCR 1.0 specification for details of the
  * JCR path syntax.
+ *
+ * @deprecated 
  */
 public class MalformedPathException extends NameException {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameCache.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameCache.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameCache.java
Thu Oct 18 11:36:59 2007
@@ -22,6 +22,8 @@
  * <p/>
  * Please note, that the redundant naming of the methods is intentionally in
  * order to allow a class to implement several caches.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.NameCache} instead.
  */
 public interface NameCache {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameException.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameException.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameException.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameException.java
Thu Oct 18 11:36:59 2007
@@ -21,6 +21,8 @@
 /**
  * Base class for exceptions about malformed or otherwise
  * invalid JCR names and paths.
+ *
+ * @deprecated 
  */
 public class NameException extends BaseException {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameFormat.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameFormat.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameFormat.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameFormat.java
Thu Oct 18 11:36:59 2007
@@ -24,6 +24,8 @@
 
 /**
  * <code>NameFormat</code> provides methods for formatting and parsing names.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.NameResolver} instead.
  */
 public class NameFormat {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
Thu Oct 18 11:36:59 2007
@@ -20,6 +20,8 @@
  * Combined name and path resolver. Can be used instead of the component
  * name and path resolver interfaces when a single dependency for both
  * name and path resolution is needed.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.NamePathResolver} instead.
  */
 public interface NamePathResolver extends NameResolver, PathResolver {
 }

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NameResolver.java
Thu Oct 18 11:36:59 2007
@@ -21,6 +21,8 @@
 /**
  * Resolver for prefixed JCR names and namespace-qualified
  * {@link QName QNames}.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.NameResolver} instead.
  */
 public interface NameResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceListener.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceListener.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceListener.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceListener.java
Thu Oct 18 11:36:59 2007
@@ -18,6 +18,8 @@
 
 /**
  * Receives notifications when a namespace mapping changes.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.namespace.NamespaceListener} instead.
  */
 public interface NamespaceListener {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamespaceResolver.java
Thu Oct 18 11:36:59 2007
@@ -25,6 +25,8 @@
  * methods. This interface is therefore used internally in many places where
  * the full namespace registry is either not available or some other mechanism
  * is used for resolving namespaces.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.name.NamespaceResolver} instead.
  */
 public interface NamespaceResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NoPrefixDeclaredException.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NoPrefixDeclaredException.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NoPrefixDeclaredException.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NoPrefixDeclaredException.java
Thu Oct 18 11:36:59 2007
@@ -21,6 +21,8 @@
  * exception is thrown when trying to convert a qualified name whose namespace
  * prefix is not found into a JCR name string. The JCR name string can not be
  * created without the namespace prefix.
+ *
+ * @deprecated 
  */
 public class NoPrefixDeclaredException extends NameException {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingNameResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingNameResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingNameResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingNameResolver.java
Thu Oct 18 11:36:59 2007
@@ -22,6 +22,8 @@
 /**
  * Name resolver that parsers and formats prefixed JCR names.
  * A {@link NamespaceResolver} is used for resolving the namespace prefixes.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.ParsingNameResolver}.
  */
 public class ParsingNameResolver implements NameResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingPathResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingPathResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingPathResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/ParsingPathResolver.java
Thu Oct 18 11:36:59 2007
@@ -21,6 +21,8 @@
 /**
  * Path resolver that parsers and formats prefixed JCR paths.
  * A {@link NameResolver} is used for resolving the path element names.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.ParsingPathResolver}.
  */
 public class ParsingPathResolver implements PathResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
Thu Oct 18 11:36:59 2007
@@ -79,6 +79,10 @@
  *                  ''', '"', '|' or any whitespace
  *                  character *)
  * </pre>
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.spi.Path} and
+ * {@link org.apache.jackrabbit.spi.PathFactory} instead. A default implementation
+ * is provided by {@link org.apache.jackrabbit.name.PathFactoryImpl}.
  */
 public final class Path implements Serializable {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathFormat.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathFormat.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathFormat.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathFormat.java
Thu Oct 18 11:36:59 2007
@@ -26,6 +26,8 @@
 /**
  * <code>PathFormat</code> formats a {@link Path} using a
  * {@link NamespaceResolver}.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.PathResolver} instead.
  */
 public class PathFormat {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/PathResolver.java
Thu Oct 18 11:36:59 2007
@@ -20,6 +20,8 @@
 
 /**
  * Resolver for JCR paths.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.conversion.PathResolver} instead.
  */
 public interface PathResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/QName.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/QName.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/QName.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/QName.java
Thu Oct 18 11:36:59 2007
@@ -64,6 +64,10 @@
  * <p>
  * In addition to the prefixed JCR name format, a qualified name can also
  * be represented using the format "<code>{namespaceURI}localPart</code>".
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.spi.Name} and
+ * {@link org.apache.jackrabbit.spi.NameFactory} instead. A default implementation
+ * is provided by {@link org.apache.jackrabbit.name.NameFactoryImpl}.
  */
 public final class QName implements Cloneable, Comparable, Serializable {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/SessionNamespaceResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/SessionNamespaceResolver.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/SessionNamespaceResolver.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/SessionNamespaceResolver.java
Thu Oct 18 11:36:59 2007
@@ -23,6 +23,8 @@
 /**
  * helper class that exposes the <code>NamespaceResolver</code>
  * interface on a <code>Session</code>
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.namespace.SessionNamespaceResolver} instead.

  */
 public class SessionNamespaceResolver extends AbstractNamespaceResolver {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/UnknownPrefixException.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/UnknownPrefixException.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/UnknownPrefixException.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/UnknownPrefixException.java
Thu Oct 18 11:36:59 2007
@@ -20,6 +20,8 @@
  * Thrown when a JCR name string with an unknown prefix is encountered.
  * This exception is thrown when attempting to parse a JCR name string
  * whose prefix is not bound to any namespace.
+ *
+ * @deprecated 
  */
 public class UnknownPrefixException extends NameException {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Locked.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Locked.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Locked.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Locked.java
Thu Oct 18 11:36:59 2007
@@ -75,6 +75,8 @@
  *     long nextValue = ((Long) ret).longValue();
  * }
  * </pre>
+ *
+ * @deprecated Use org.apache.jackrabbit.lock.Locked instead.
  */
 public abstract class Locked {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/PathMap.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/PathMap.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/PathMap.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/PathMap.java
Thu Oct 18 11:36:59 2007
@@ -28,6 +28,8 @@
 /**
  * Generic path map that associates information with the individual path elements
  * of a path.
+ *
+ * @deprecated Use {@link org.apache.jackrabbit.name.PathMap} instead.
  */
 public class PathMap {
 

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceAdder.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceAdder.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceAdder.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceAdder.java
Thu Oct 18 11:36:59 2007
@@ -23,6 +23,9 @@
 import java.util.Map;
 import java.util.Iterator;
 
+/**
+ * @deprecated Use org.apache.jackrabbit.namespace.NamespaceAdder
+ */
 public class NamespaceAdder {
 
     private final NamespaceRegistry registry;

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceExtractor.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceExtractor.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceExtractor.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceExtractor.java
Thu Oct 18 11:36:59 2007
@@ -40,6 +40,8 @@
  * The resulting NamespaceMapping implements NamespaceResolver
  * and can be used by tools (such as o.a.j.tools.nodetype.CompactNodeTypeDefWriter)
  * to resolve namespaces.
+ *
+ * @deprecated User org.apache.jackrabbit.namespace.NamespaceExtractor instead
  */
 public class NamespaceExtractor {
     private static Logger log = LoggerFactory.getLogger(NamespaceExtractor.class);

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceMapping.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceMapping.java?rev=586059&r1=586058&r2=586059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceMapping.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/name/NamespaceMapping.java
Thu Oct 18 11:36:59 2007
@@ -30,6 +30,8 @@
  * A Simple Namespace Mapping table. Mappings can be added
  * and then the object can be used as a NamespaceResolver. Additionally, it can
  * be based on a underlying NamespaceResolver
+ *
+ * @deprecated Use org.apache.jackrabbit.namespace.NamespaceMapping instead.
  */
 public class NamespaceMapping extends AbstractNamespaceResolver {
 

Added: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java?rev=586059&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java
(added)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java
Thu Oct 18 11:36:59 2007
@@ -0,0 +1,105 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.value;
+
+import javax.jcr.ValueFactory;
+import javax.jcr.Value;
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+import javax.jcr.ValueFormatException;
+import javax.jcr.PropertyType;
+
+/**
+ * <code>ValueFactoryImplEx</code> extends the implementation from the
+ * jcr-commons module and allows a less restricted UUID format.
+ */
+public class ValueFactoryImplEx extends ValueFactoryImpl {
+
+    private static final ValueFactory INSTANCE = new ValueFactoryImplEx();
+
+    /**
+     * Constructs a <code>ValueFactory</code> object.
+     */
+    private ValueFactoryImplEx() {
+    }
+
+    public static ValueFactory getInstance() {
+        return INSTANCE;
+    }
+
+    public Value createValue(Node value) throws RepositoryException {
+        return new RefValue(value);
+    }
+
+    public Value createValue(String value, int type) throws ValueFormatException {
+        Value val;
+        switch (type) {
+            case PropertyType.REFERENCE:
+                val = RefValue.valueOf(value);
+                break;
+            default:
+                val = super.createValue(value, type);
+        }
+        return val;
+    }
+
+    //--------------------------------------------------------< inner class >---
+    /**
+     * A <code>ReferenceValue</code> provides an implementation
+     * of the <code>Value</code> interface representing a <code>REFERENCE</code>
value
+     * (a jcr:uuid property of an existing, referenceable node).
+     */
+    private static class RefValue extends ReferenceValue {
+
+        private RefValue(String uuid) {
+            super(uuid);
+        }
+
+        /**
+         * Constructs a <code>ReferenceValue</code> object representing the UUID
of
+         * an existing node.
+         *
+         * @param target the node to be referenced
+         * @throws IllegalArgumentException If <code>target</code> is nonreferenceable.
+         * @throws RepositoryException      If another error occurs.
+         */
+        private RefValue(Node target) throws RepositoryException {
+            super(target);
+        }
+
+        /**
+         * Returns a new <code>ReferenceValue</code> initialized to the value
+         * represented by the specified <code>String</code>.
+         * <p/>
+         * The specified <code>String</code> must denote the jcr:uuid property
+         * of an existing node.
+         *
+         * @param s the string to be parsed.
+         * @return a newly constructed <code>ReferenceValue</code> representing
+         * the specified value.
+         * @throws ValueFormatException If the <code>String</code> is
+         * null or empty String.
+         */
+        public static ReferenceValue valueOf(String s) throws ValueFormatException {
+            if (s != null && !"".equals(s)) {
+                return new RefValue(s);
+            } else {
+                throw new ValueFormatException("Invalid format for jcr:uuid");
+            }
+        }
+    }
+}

Propchange: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImplEx.java
------------------------------------------------------------------------------
    svn:keywords = author date id revision url



Mime
View raw message