jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edgarp...@apache.org
Subject svn commit: r312896 [5/6] - in /incubator/jackrabbit/trunk/contrib/jcr-commands: ./ src/java/org/apache/jackrabbit/command/ src/java/org/apache/jackrabbit/command/cli/ src/java/org/apache/jackrabbit/command/collect/ src/java/org/apache/jackrabbit/comma...
Date Tue, 11 Oct 2005 14:41:03 GMT
Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/JcrInfoCommandException.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/JcrInfoCommandException.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/JcrInfoCommandException.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/JcrInfoCommandException.java Tue Oct 11 07:38:54 2005
@@ -21,8 +21,7 @@
 /**
  * Exception thrown by Info Commands
  */
-public class JcrInfoCommandException extends CommandException
-{
+public class JcrInfoCommandException extends CommandException {
     /**
      * Comment for <code>serialVersionUID</code>
      */
@@ -30,38 +29,42 @@
 
     /**
      * @param message
+     *        the message
      */
-    public JcrInfoCommandException(String message)
-    {
+    public JcrInfoCommandException(String message) {
         super(message);
     }
 
     /**
      * @param message
+     *        the message
      * @param arguments
+     *        the arguments
      */
-    public JcrInfoCommandException(String message, Object[] arguments)
-    {
+    public JcrInfoCommandException(String message, Object[] arguments) {
         super(message, arguments);
     }
 
     /**
      * @param message
+     *        the message
      * @param cause
+     *        the cause
      */
-    public JcrInfoCommandException(String message, Throwable cause)
-    {
+    public JcrInfoCommandException(String message, Throwable cause) {
         super(message, cause);
     }
 
     /**
      * @param message
+     *        the message
      * @param cause
+     *        the cause
      * @param arguments
+     *        the arguments
      */
     public JcrInfoCommandException(String message, Throwable cause,
-        Object[] arguments)
-    {
+        Object[] arguments) {
         super(message, cause, arguments);
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedItems.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedItems.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedItems.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedItems.java Tue Oct 11 07:38:54 2005
@@ -24,45 +24,41 @@
 import org.apache.jackrabbit.command.CommandException;
 
 /**
- * Lists collected nodes. This Command looks for an Iterator under the given
- * context variable and lists its items.
+ * Lists collected <code>Item</code>s.<br>
+ * This <code>Command</code> looks for an <code>Iterator</code> under the
+ * given <code>Context</code> variable and lists its <code>Item<code>s.
  */
-public class LsCollectedItems extends AbstractLsItems
-{
+public class LsCollectedItems extends AbstractLsItems {
     /** Context variable that holds the Iterator */
     private String fromKey = "collected";
 
     /**
      * @return the context variable
      */
-    public String getFromKey()
-    {
+    public String getFromKey() {
         return fromKey;
     }
 
     /**
      * Sets the context variable
-     * @param context variable name
+     * @param from
+     *        from key to set
      */
-    public void setFromKey(String contextVariable)
-    {
-        this.fromKey = contextVariable;
+    public void setFromKey(String from) {
+        this.fromKey = from;
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     protected Iterator getItems(Context ctx) throws CommandException,
-            RepositoryException
-    {
+            RepositoryException {
         // Always show the path
         this.setPath(true);
         Object o = ctx.get(this.fromKey);
-        if (o == null || !(o instanceof Iterator))
-        {
+        if (o == null || !(o instanceof Iterator)) {
             throw new JcrInfoCommandException(
-                "illegalargument.no.iterator.under", new String[]
-                {
+                "illegalargument.no.iterator.under", new String[] {
                     fromKey
                 });
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedNodes.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedNodes.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedNodes.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedNodes.java Tue Oct 11 07:38:54 2005
@@ -24,44 +24,40 @@
 import org.apache.jackrabbit.command.CommandException;
 
 /**
- * Lists collected nodes. This Command looks for an Iterator under the given
- * context variable and lists its nodes.
+ * Lists collected <code>Node</code>s.<br>
+ * This <code>Command</code> looks for an <code>Iterator</code> under the
+ * given <code>Context</code> variable and lists its <code>Node</code>s.
  */
-public class LsCollectedNodes extends AbstractLsNodes
-{
+public class LsCollectedNodes extends AbstractLsNodes {
     /** Context variable that holds the Iterator */
     private String fromKey = "collected";
 
     /**
      * @return the context variable
      */
-    public String getFromKey()
-    {
+    public String getFromKey() {
         return fromKey;
     }
 
     /**
-     * Sets the context variable
-     * @param context variable name
+     * Sets the <code>Context<code> variable
+     * @param contextVariable
+     *        the context variable
      */
-    public void setFromKey(String contextVariable)
-    {
+    public void setFromKey(String contextVariable) {
         this.fromKey = contextVariable;
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     protected Iterator getNodes(Context ctx) throws CommandException,
-            RepositoryException
-    {
+            RepositoryException {
         this.setPath(true);
         Object o = ctx.get(this.fromKey);
-        if (o == null || !(o instanceof Iterator))
-        {
+        if (o == null || !(o instanceof Iterator)) {
             throw new JcrInfoCommandException(
-                "illegalargument.no.iterator.under", new String[]
-                {
+                "illegalargument.no.iterator.under", new String[] {
                     fromKey
                 });
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedProperties.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedProperties.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedProperties.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsCollectedProperties.java Tue Oct 11 07:38:54 2005
@@ -24,46 +24,40 @@
 import org.apache.jackrabbit.command.CommandException;
 
 /**
- * Lists collected properties.<br> 
- * This Command looks for an Iterator under the given
- * context variable and lists its properties.
+ * Lists collected <code>Property</code>s.<br>
+ * This <code>Command</code> looks for an <code>Iterator</code> under the
+ * given <code>Context</code> variable and lists its <code>Property</code>s.
  */
-public class LsCollectedProperties extends AbstractLsProperties
-{
+public class LsCollectedProperties extends AbstractLsProperties {
     /** Context variable that holds the Iterator */
     private String fromKey = "collected";
 
     /**
-     * @return the context variable
+     * @return the from key
      */
-    public String getFromKey()
-    {
+    public String getFromKey() {
         return fromKey;
     }
 
     /**
-     * Sets the context variable
-     * @param context variable name
+     * @param fromKey
+     *        from key to set
      */
-    public void setFromKey(String contextVariable)
-    {
-        this.fromKey = contextVariable;
+    public void setFromKey(String fromKey) {
+        this.fromKey = fromKey;
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     protected Iterator getProperties(Context ctx) throws CommandException,
-            RepositoryException
-    {
+            RepositoryException {
         // show the path
         this.setPath(true);
         Object o = ctx.get(fromKey);
-        if (o == null || !(o instanceof Iterator))
-        {
+        if (o == null || !(o instanceof Iterator)) {
             throw new JcrInfoCommandException(
-                "illegalargument.no.iterator.under", new String[]
-                {
+                "illegalargument.no.iterator.under", new String[] {
                     fromKey
                 });
         }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsItems.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsItems.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsItems.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsItems.java Tue Oct 11 07:38:54 2005
@@ -27,7 +27,6 @@
 
 /**
  * List items
- * 
  * <p>
  * <ul>
  * <li>name</li>
@@ -38,39 +37,33 @@
  * </ul>
  * </p>
  */
-public class LsItems extends AbstractLsItems
-{
+public class LsItems extends AbstractLsItems {
 
-	/** name pattern key */
-	private String patternKey = "pattern";
+    /** name pattern key */
+    private String patternKey = "pattern";
 
-	/**
-	 * @return the name pattern
-	 */
-	public String getPatternKey()
-	{
-		return patternKey;
-	}
+    /**
+     * @return the name pattern
+     */
+    public String getPatternKey() {
+        return patternKey;
+    }
 
-	/**
-	 * Sets the name pattern
-	 * 
-	 * @param name
-	 *            pattern
-	 */
-	public void setPatternKey(String pattern)
-	{
-		this.patternKey = pattern;
-	}
+    /**
+     * @param pattern
+     *        the pattern
+     */
+    public void setPatternKey(String pattern) {
+        this.patternKey = pattern;
+    }
 
-	/**
-	 * @inheritDoc
-	 */
-	protected Iterator getItems(Context ctx) throws CommandException,
-			RepositoryException
-	{
-		String pattern = (String) ctx.get(this.patternKey);
-		Node n = CommandHelper.getCurrentNode(ctx) ;
-		return CommandHelper.getItems(ctx, n, pattern);
-	}
+    /**
+     * {@inheritDoc}
+     */
+    protected Iterator getItems(Context ctx) throws CommandException,
+            RepositoryException {
+        String pattern = (String) ctx.get(this.patternKey);
+        Node n = CommandHelper.getCurrentNode(ctx);
+        return CommandHelper.getItems(ctx, n, pattern);
+    }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNamespaces.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNamespaces.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNamespaces.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNamespaces.java Tue Oct 11 07:38:54 2005
@@ -20,16 +20,14 @@
 import org.apache.commons.chain.Context;
 
 /**
- * Lists the registered namespaces
+ * Lists the registered namespaces.
  */
-public class LsNamespaces implements Command
-{
+public class LsNamespaces implements Command {
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
-        throw new UnsupportedOperationException() ;
+    public boolean execute(Context ctx) throws Exception {
+        throw new UnsupportedOperationException();
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNodes.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNodes.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNodes.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsNodes.java Tue Oct 11 07:38:54 2005
@@ -26,39 +26,36 @@
 import org.apache.jackrabbit.command.CommandException;
 
 /**
- * Lists the nodes under the current working node that match the given pattern.
+ * List the <code>Node</code>s under the current working <code>Node</code>
+ * that match the given pattern.
  */
-public class LsNodes extends AbstractLsNodes
-{
+public class LsNodes extends AbstractLsNodes {
 
     /** name pattern key */
     private String patternKey = "pattern";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     protected Iterator getNodes(Context ctx) throws CommandException,
-            RepositoryException
-    {
+            RepositoryException {
         String pattern = (String) ctx.get(this.patternKey);
-        Node n = CommandHelper.getCurrentNode(ctx) ;
+        Node n = CommandHelper.getCurrentNode(ctx);
         return CommandHelper.getNodes(ctx, n, pattern);
     }
 
     /**
-     * @return Returns the patternKey.
+     * @return the pattern key
      */
-    public String getPatternKey()
-    {
+    public String getPatternKey() {
         return patternKey;
     }
 
     /**
      * @param patternKey
-     *            The patternKey to set.
+     *        the pattern key to set
      */
-    public void setPatternKey(String patternKey)
-    {
+    public void setPatternKey(String patternKey) {
         this.patternKey = patternKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsProperties.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsProperties.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsProperties.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsProperties.java Tue Oct 11 07:38:54 2005
@@ -36,8 +36,7 @@
  * </ul>
  * </p>
  */
-public class LsProperties extends AbstractLsProperties
-{
+public class LsProperties extends AbstractLsProperties {
 
     /** property name pattern key */
     private String patternKey = "pattern";
@@ -45,29 +44,25 @@
     /**
      * @return name pattern
      */
-    public String getPatternKey()
-    {
+    public String getPatternKey() {
         return patternKey;
     }
 
     /**
      * Sets the name pattern
-     * 
-     * @param pattern
+     * @param pattern the pattern key
      */
-    public void setPatternKey(String pattern)
-    {
+    public void setPatternKey(String pattern) {
         this.patternKey = pattern;
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     protected Iterator getProperties(Context ctx) throws CommandException,
-            RepositoryException
-    {
-        String pattern = (String) ctx.get(this.patternKey) ;
-        Node n = CommandHelper.getCurrentNode(ctx) ;
+            RepositoryException {
+        String pattern = (String) ctx.get(this.patternKey);
+        Node n = CommandHelper.getCurrentNode(ctx);
         return CommandHelper.getProperties(ctx, n, pattern);
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsReferences.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsReferences.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsReferences.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsReferences.java Tue Oct 11 07:38:54 2005
@@ -27,31 +27,27 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Displays references to the given Node
+ * Displays references to the given <code>Node</code>
  */
-public class LsReferences implements Command
-{
-	/** bundle */
-	private static ResourceBundle bundle = CommandHelper.getBundle() ; 
-	
-    /** path to the node */
+public class LsReferences implements Command {
+    /** bundle */
+    private static ResourceBundle bundle = CommandHelper.getBundle();
+
+    /** path to the <code>Node</code> key */
     private String pathKey = "path";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
-    	String path = (String) ctx.get(this.pathKey) ;
+    public boolean execute(Context ctx) throws Exception {
+        String path = (String) ctx.get(this.pathKey);
         Node n = CommandHelper.getNode(ctx, path);
 
         // header
-        int[] width = new int[]
-        {
+        int[] width = new int[] {
             60
         };
-        String[] header = new String[]
-        {
+        String[] header = new String[] {
             bundle.getString("word.path")
         };
 
@@ -62,12 +58,10 @@
         PrintHelper.printSeparatorRow(ctx, width, '-');
 
         PropertyIterator iter = n.getReferences();
-        while (iter.hasNext())
-        {
+        while (iter.hasNext()) {
             Property p = iter.nextProperty();
             // print header
-            PrintHelper.printRow(ctx, width, new String[]
-            {
+            PrintHelper.printRow(ctx, width, new String[] {
                 p.getPath()
             });
         }
@@ -80,19 +74,17 @@
     }
 
     /**
-     * @return Returns the path.
+     * @return the path key
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param path
-     *            The path to set.
+     *        the path key to set
      */
-    public void setPathKey(String path)
-    {
+    public void setPathKey(String path) {
         this.pathKey = path;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsVersions.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsVersions.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsVersions.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/LsVersions.java Tue Oct 11 07:38:54 2005
@@ -30,54 +30,59 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Lists the <code>Version</code> in the <code>VersionHistory</code>.
+ * List the <code>Version</code> s in the <code>VersionHistory</code>.
  */
-public class LsVersions implements Command
-{
-	/** bundle */
-	private static ResourceBundle bundle = CommandHelper.getBundle();
-
-	/** path to the node */
-	private String pathKey = "path";
-
-	/**
-	 * @inheritDoc
-	 */
-	public boolean execute(Context ctx) throws Exception
-	{
-		String path = (String) ctx.get(this.pathKey);
-		Node n = CommandHelper.getNode(ctx, path);
-
-		// header
-		int[] width = new int[]
-		{ 20, 50};
-		String[] header = new String[]
-		{ bundle.getString("word.version"), bundle.getString("word.labels") };
-		// print header
-		PrintHelper.printRow(ctx, width, header);
-		// print separator
-		PrintHelper.printSeparatorRow(ctx, width, '-');
-		VersionIterator iter = n.getVersionHistory().getAllVersions();
-		while (iter.hasNext())
-		{
-			Version v = iter.nextVersion();
-			Collection row = new ArrayList();
-			row.add(v.getName());
-			row.add(Arrays.asList(n.getVersionHistory().getVersionLabels(v)));
-			PrintHelper.printRow(ctx, width, row);
-		}
-
-		return false;
-	}
-
-	public String getPathKey()
-	{
-		return pathKey;
-	}
-
-	public void setPathKey(String pathKey)
-	{
-		this.pathKey = pathKey;
-	}
+public class LsVersions implements Command {
+    /** bundle */
+    private static ResourceBundle bundle = CommandHelper.getBundle();
+
+    /** path to the node */
+    private String pathKey = "path";
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean execute(Context ctx) throws Exception {
+        String path = (String) ctx.get(this.pathKey);
+        Node n = CommandHelper.getNode(ctx, path);
+
+        // header
+        int[] width = new int[] {
+                20, 50
+        };
+        String[] header = new String[] {
+                bundle.getString("word.version"),
+                bundle.getString("word.labels")
+        };
+        // print header
+        PrintHelper.printRow(ctx, width, header);
+        // print separator
+        PrintHelper.printSeparatorRow(ctx, width, '-');
+        VersionIterator iter = n.getVersionHistory().getAllVersions();
+        while (iter.hasNext()) {
+            Version v = iter.nextVersion();
+            Collection row = new ArrayList();
+            row.add(v.getName());
+            row.add(Arrays.asList(n.getVersionHistory().getVersionLabels(v)));
+            PrintHelper.printRow(ctx, width, row);
+        }
+
+        return false;
+    }
+
+    /**
+     * @return the path key
+     */
+    public String getPathKey() {
+        return pathKey;
+    }
+
+    /**
+     * @param pathKey
+     *        the path key to set
+     */
+    public void setPathKey(String pathKey) {
+        this.pathKey = pathKey;
+    }
 
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/PrintHelper.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/PrintHelper.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/PrintHelper.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/info/PrintHelper.java Tue Oct 11 07:38:54 2005
@@ -25,190 +25,182 @@
 import org.apache.jackrabbit.command.CommandException;
 
 /**
- * Helper methods to print
+ * Utility class for printing
  */
-class PrintHelper
-{
+final class PrintHelper {
 
-	/**
-	 * 
-	 * @param ctx
-	 * @param width
-	 * @param text
-	 */
-	public static void printRow(Context ctx, int[] width, String[] text)
-	{
-		if (width.length != text.length)
-		{
-			throw new IllegalArgumentException(
-					"width[] and text[] haven't the same length");
-		}
-
-		PrintWriter out = CommandHelper.getOutput(ctx);
-
-		int rows = 1;
-
-		// Calculate rows
-		for (int i = 0; i < text.length; i++)
-		{
-			int textLength = text[i].length();
-			if (textLength == 0)
-			{
-				textLength = 1;
-			}
-			int columnWidth = width[i];
-			int neededRows = (int) Math.ceil((double) textLength
-					/ (double) columnWidth);
-			if (neededRows > rows)
-			{
-				rows = neededRows;
-			}
-		}
-
-		// Write table
-		for (int row = 0; row < rows; row++)
-		{
-			for (int column = 0; column < width.length; column++)
-			{
-				for (int pointer = 0; pointer < width[column]; pointer++)
-				{
-					int pos = row * width[column] + pointer;
-					if (pos < text[column].length())
-					{
-						out.print(text[column].charAt(pos));
-					} else
-					{
-						out.print(' ');
-					}
-				}
-				out.print(' ');
-			}
-			out.println();
-		}
-	}
-
-	/**
-	 * @param ctx
-	 * @param width
-	 * @param separator
-	 */
-	public static void printSeparatorRow(Context ctx, int[] width,
-			char separator)
-	{
-		PrintWriter out = CommandHelper.getOutput(ctx);
-		for (int i = 0; i < width.length; i++)
-		{
-			for (int j = 0; j <= width[i]; j++)
-			{
-				if (j < width[i])
-				{
-					out.print(separator);
-				} else
-				{
-					out.print(' ');
-				}
-			}
-		}
-		out.println();
-	}
-
-	/**
-	 * 
-	 * @param ctx
-	 * @param width
-	 * @param texts
-	 * @throws CommandException
-	 */
-	public static void printRow(Context ctx, int[] width, Collection texts)
-			throws CommandException
-	{
-		String[] text = new String[width.length];
-		Iterator iter = texts.iterator();
-		int column = 0;
-		while (iter.hasNext())
-		{
-			Object o = iter.next();
-			if (o == null)
-			{
-				text[column] = "";
-			} else if (o instanceof String)
-			{
-				text[column] = (String) o;
-			} else if (o instanceof Collection)
-			{
-				StringBuffer sb = new StringBuffer();
-				Iterator i = ((Collection) o).iterator();
-				while (i.hasNext())
-				{
-					String str = (String) i.next();
-					int rows = (int) Math.ceil((double) str.length()
-							/ (double) width[column]);
-					if (rows == 0)
-					{
-						rows = 1;
-					}
-					sb.append(str);
-					for (int j = 0; j < rows * width[column] - str.length(); j++)
-					{
-						sb.append(' ');
-					}
-				}
-				text[column] = sb.toString();
-			} else
-			{
-				throw new CommandException("exception.illegalargument");
-			}
-			column++;
-		}
-		printRow(ctx, width, text);
-	}
-
-	/**
-	 * 
-	 * @param ctx
-	 * @param widths
-	 * @param texts
-	 * @throws CommandException
-	 */
-	public static void printRow(Context ctx, Collection widths, Collection texts)
-			throws CommandException
-	{
-		printRow(ctx, convertWidth(widths), texts);
-	}
-
-	/**
-	 * 
-	 * @param ctx
-	 * @param widths
-	 * @param texts
-	 * @throws CommandException
-	 */
-	private static int[] convertWidth(Collection widths)
-			throws CommandException
-	{
-		int[] width = new int[widths.size()];
-		int index = 0;
-		Iterator iter = widths.iterator();
-		while (iter.hasNext())
-		{
-			Integer i = (Integer) iter.next();
-			width[index] = i.intValue();
-			index++;
-		}
-		return width;
-	}
-
-	/**
-	 * 
-	 * @param ctx
-	 * @param widths
-	 * @param separator
-	 * @throws CommandException
-	 */
-	public static void printSeparatorRow(Context ctx, Collection widths,
-			char separator) throws CommandException
-	{
-		printSeparatorRow(ctx, convertWidth(widths), separator);
-	}
+    /**
+     * private constructor
+     */
+    private PrintHelper() {
+        super();
+    }
+
+    /**
+     * @param ctx
+     *        the <code>Context</code>
+     * @param width
+     *        the columns width
+     * @param text
+     *        the text
+     */
+    public static void printRow(Context ctx, int[] width, String[] text) {
+        if (width.length != text.length) {
+            throw new IllegalArgumentException(
+                "width[] and text[] haven't the same length");
+        }
+
+        PrintWriter out = CommandHelper.getOutput(ctx);
+
+        int rows = 1;
+
+        // Calculate rows
+        for (int i = 0; i < text.length; i++) {
+            int textLength = text[i].length();
+            if (textLength == 0) {
+                textLength = 1;
+            }
+            int columnWidth = width[i];
+            int neededRows = (int) Math.ceil((double) textLength
+                    / (double) columnWidth);
+            if (neededRows > rows) {
+                rows = neededRows;
+            }
+        }
+
+        // Write table
+        for (int row = 0; row < rows; row++) {
+            for (int column = 0; column < width.length; column++) {
+                for (int pointer = 0; pointer < width[column]; pointer++) {
+                    int pos = row * width[column] + pointer;
+                    if (pos < text[column].length()) {
+                        out.print(text[column].charAt(pos));
+                    } else {
+                        out.print(' ');
+                    }
+                }
+                out.print(' ');
+            }
+            out.println();
+        }
+    }
+
+    /**
+     * @param ctx
+     *        the <code>Context</code>
+     * @param width
+     *        the column width
+     * @param separator
+     *        the separator chr
+     */
+    public static void printSeparatorRow(
+        Context ctx,
+        int[] width,
+        char separator) {
+        PrintWriter out = CommandHelper.getOutput(ctx);
+        for (int i = 0; i < width.length; i++) {
+            for (int j = 0; j <= width[i]; j++) {
+                if (j < width[i]) {
+                    out.print(separator);
+                } else {
+                    out.print(' ');
+                }
+            }
+        }
+        out.println();
+    }
+
+    /**
+     * @param ctx
+     *        the <code>Context</code>
+     * @param width
+     *        the column width
+     * @param texts
+     *        the texts
+     * @throws CommandException
+     */
+    public static void printRow(Context ctx, int[] width, Collection texts)
+            throws CommandException {
+        String[] text = new String[width.length];
+        Iterator iter = texts.iterator();
+        int column = 0;
+        while (iter.hasNext()) {
+            Object o = iter.next();
+            if (o == null) {
+                text[column] = "";
+            } else if (o instanceof String) {
+                text[column] = (String) o;
+            } else if (o instanceof Collection) {
+                StringBuffer sb = new StringBuffer();
+                Iterator i = ((Collection) o).iterator();
+                while (i.hasNext()) {
+                    String str = (String) i.next();
+                    int rows = (int) Math.ceil((double) str.length()
+                            / (double) width[column]);
+                    if (rows == 0) {
+                        rows = 1;
+                    }
+                    sb.append(str);
+                    for (int j = 0; j < rows * width[column] - str.length(); j++) {
+                        sb.append(' ');
+                    }
+                }
+                text[column] = sb.toString();
+            } else {
+                throw new CommandException("exception.illegalargument");
+            }
+            column++;
+        }
+        printRow(ctx, width, text);
+    }
+
+    /**
+     * @param ctx
+     *        the <code>Context</code>
+     * @param widths
+     *        the column width
+     * @param texts
+     *        the texts
+     * @throws CommandException
+     */
+    public static void printRow(Context ctx, Collection widths, Collection texts)
+            throws CommandException {
+        printRow(ctx, convertWidth(widths), texts);
+    }
+
+    /**
+     * @param widths
+     *        the column width
+     * @return the column width
+     * @throws CommandException
+     */
+    private static int[] convertWidth(Collection widths)
+            throws CommandException {
+        int[] width = new int[widths.size()];
+        int index = 0;
+        Iterator iter = widths.iterator();
+        while (iter.hasNext()) {
+            Integer i = (Integer) iter.next();
+            width[index] = i.intValue();
+            index++;
+        }
+        return width;
+    }
+
+    /**
+     * @param ctx
+     *        the <code>Context</code>
+     * @param widths
+     *        the columns widths
+     * @param separator
+     *        the separator char
+     * @throws CommandException
+     */
+    public static void printSeparatorRow(
+        Context ctx,
+        Collection widths,
+        char separator) throws CommandException {
+        printSeparatorRow(ctx, convertWidth(widths), separator);
+    }
 
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/AddLockToken.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/AddLockToken.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/AddLockToken.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/AddLockToken.java Tue Oct 11 07:38:54 2005
@@ -25,41 +25,45 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Adds the given lock token to the current session.
+ * Add the given <code>Lock</code> token to the current <code>Session</code>
  */
-public class AddLockToken implements Command
-{
-	/** logger */
-	private static Log log = LogFactory.getLog(AddLockToken.class);
+public class AddLockToken implements Command {
+    /** logger */
+    private static Log log = LogFactory.getLog(AddLockToken.class);
 
-	// ---------------------------- < keys >
-	/**
-	 * token
-	 */
-	private String tokenKey = "token";
+    // ---------------------------- < keys >
+    /**
+     * token
+     */
+    private String tokenKey = "token";
 
-	/**
-	 * @inheritDoc
-	 */
-	public boolean execute(Context ctx) throws Exception
-	{
-		String token = (String) ctx.get(this.tokenKey);
-		if (log.isDebugEnabled())
-		{
-			log.debug("Adding lock token " + token + " to the current session.");
-		}
-		Session s = CommandHelper.getSession(ctx);
-		s.addLockToken(token);
-		return false;
-	}
+    /**
+     * {@inheritDoc}
+     */
+    public boolean execute(Context ctx) throws Exception {
+        String token = (String) ctx.get(this.tokenKey);
+        if (log.isDebugEnabled()) {
+            log
+                .debug("Adding lock token " + token
+                        + " to the current session.");
+        }
+        Session s = CommandHelper.getSession(ctx);
+        s.addLockToken(token);
+        return false;
+    }
 
-	public String getTokenKey()
-	{
-		return tokenKey;
-	}
+    /**
+     * @return the token key
+     */
+    public String getTokenKey() {
+        return tokenKey;
+    }
 
-	public void setTokenKey(String tokenKey)
-	{
-		this.tokenKey = tokenKey;
-	}
+    /**
+     * @param tokenKey
+     *        the token key to set
+     */
+    public void setTokenKey(String tokenKey) {
+        this.tokenKey = tokenKey;
+    }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Lock.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Lock.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Lock.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Lock.java Tue Oct 11 07:38:54 2005
@@ -23,81 +23,86 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Locks the given node
+ * Lock the given <code>Node</code>
  */
-public class Lock implements Command
-{
-	/** logger */
-	private static Log log = LogFactory.getLog(Lock.class);
-
-	// ---------------------------- < keys >
-	/** Node path key */
-	private String pathKey = "path";
-
-	/**
-	 * depth lock
-	 */
-	private String deepKey = "deep";
-
-	/**
-	 * Session scoped lock <br>
-	 * Key that refers to a <code>Boolean</code> context variable
-	 */
-	private String sessionScopedKey = "sessionScoped";
-
-	/**
-	 * @inheritDoc
-	 */
-	public boolean execute(Context ctx) throws Exception
-	{
-		String path = (String) ctx.get(this.pathKey);
-		boolean deep = Boolean.valueOf((String) ctx.get(this.deepKey))
-				.booleanValue();
-		boolean sessionScoped = Boolean.valueOf(
-				(String) ctx.get(this.sessionScopedKey)).booleanValue();
-		if (log.isDebugEnabled())
-		{
-			log.debug("locking node at " + path + " deep=" + deep
-					+ " sessionScoped=" + sessionScoped);
-		}
-		CommandHelper.getNode(ctx, path).lock(deep, sessionScoped);
-		return false;
-	}
-
-	public String getDeepKey()
-	{
-		return deepKey;
-	}
-
-	public void setDeepKey(String deepKey)
-	{
-		this.deepKey = deepKey;
-	}
-
-	public String getSessionScopedKey()
-	{
-		return sessionScopedKey;
-	}
-
-	public void setSessionScopedKey(String sessionScopedKey)
-	{
-		this.sessionScopedKey = sessionScopedKey;
-	}
-
-	/**
-	 * @return Returns the srcPathKey.
-	 */
-	public String getPathKey()
-	{
-		return pathKey;
-	}
-
-	/**
-	 * @param srcPathKey
-	 *            The srcPathKey to set.
-	 */
-	public void setPathKey(String srcPathKey)
-	{
-		this.pathKey = srcPathKey;
-	}
+public class Lock implements Command {
+    /** logger */
+    private static Log log = LogFactory.getLog(Lock.class);
+
+    // ---------------------------- < keys >
+    /** Node path key */
+    private String pathKey = "path";
+
+    /**
+     * depth lock
+     */
+    private String deepKey = "deep";
+
+    /**
+     * Session scoped lock <br>
+     * Key that refers to a <code>Boolean</code> context variable
+     */
+    private String sessionScopedKey = "sessionScoped";
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean execute(Context ctx) throws Exception {
+        String path = (String) ctx.get(this.pathKey);
+        boolean deep = Boolean.valueOf((String) ctx.get(this.deepKey))
+            .booleanValue();
+        boolean sessionScoped = Boolean.valueOf(
+            (String) ctx.get(this.sessionScopedKey)).booleanValue();
+        if (log.isDebugEnabled()) {
+            log.debug("locking node at " + path + " deep=" + deep
+                    + " sessionScoped=" + sessionScoped);
+        }
+        CommandHelper.getNode(ctx, path).lock(deep, sessionScoped);
+        return false;
+    }
+
+    /**
+     * @return deep key
+     */
+    public String getDeepKey() {
+        return deepKey;
+    }
+
+    /**
+     * @param deepKey
+     *        deep key to set
+     */
+    public void setDeepKey(String deepKey) {
+        this.deepKey = deepKey;
+    }
+
+    /**
+     * @return the session scoped key
+     */
+    public String getSessionScopedKey() {
+        return sessionScopedKey;
+    }
+
+    /**
+     * @param sessionScopedKey
+     *        the session scoped key to set
+     */
+    public void setSessionScopedKey(String sessionScopedKey) {
+        this.sessionScopedKey = sessionScopedKey;
+    }
+
+    /**
+     * @return the source path key
+     */
+    public String getPathKey() {
+        return pathKey;
+    }
+
+    /**
+     * @param srcPathKey
+     *        the source path key to set
+     */
+    public void setPathKey(String srcPathKey) {
+        this.pathKey = srcPathKey;
+    }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RefreshLock.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RefreshLock.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RefreshLock.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RefreshLock.java Tue Oct 11 07:38:54 2005
@@ -25,10 +25,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Resets lock timer
+ * Reset the <code>Lock</code> timer
  */
-public class RefreshLock implements Command
-{
+public class RefreshLock implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(RefreshLock.class);
 
@@ -37,13 +36,11 @@
     private String pathKey = "path";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String path = (String) ctx.get(this.pathKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("refreshing lock at " + path);
         }
         Node n = CommandHelper.getNode(ctx, path);
@@ -52,19 +49,17 @@
     }
 
     /**
-     * @return Returns the srcPathKey.
+     * @return the source path key
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param srcPathKey
-     *            The srcPathKey to set.
+     *        the source path key to set
      */
-    public void setPathKey(String srcPathKey)
-    {
+    public void setPathKey(String srcPathKey) {
         this.pathKey = srcPathKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RemoveLockToken.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RemoveLockToken.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RemoveLockToken.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/RemoveLockToken.java Tue Oct 11 07:38:54 2005
@@ -25,41 +25,45 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Removes the given lock token to the current session.
+ * Remove the given <code>Lock</code> token to the current
+ * <code>Session</code>
  */
-public class RemoveLockToken implements Command
-{
-	/** logger */
-	private static Log log = LogFactory.getLog(AddLockToken.class);
+public class RemoveLockToken implements Command {
+    /** logger */
+    private static Log log = LogFactory.getLog(AddLockToken.class);
 
-	// ---------------------------- < keys >
-	/**
-	 * token key
-	 */
-	private String tokenKey = "token";
+    // ---------------------------- < keys >
+    /**
+     * token key
+     */
+    private String tokenKey = "token";
 
-	/**
-	 * @inheritDoc
-	 */
-	public boolean execute(Context ctx) throws Exception
-	{
-		String token = (String) ctx.get(this.tokenKey);
-		if (log.isDebugEnabled())
-		{
-			log.debug("Removing lock token " + token + " from the current session.");
-		}
-		Session s = CommandHelper.getSession(ctx);
-		s.removeLockToken(token);
-		return false;
-	}
+    /**
+     * {@inheritDoc}
+     */
+    public boolean execute(Context ctx) throws Exception {
+        String token = (String) ctx.get(this.tokenKey);
+        if (log.isDebugEnabled()) {
+            log.debug("Removing lock token " + token
+                    + " from the current session.");
+        }
+        Session s = CommandHelper.getSession(ctx);
+        s.removeLockToken(token);
+        return false;
+    }
 
-	public String getTokenKey()
-	{
-		return tokenKey;
-	}
+    /**
+     * @return the token key
+     */
+    public String getTokenKey() {
+        return tokenKey;
+    }
 
-	public void setTokenKey(String tokenKey)
-	{
-		this.tokenKey = tokenKey;
-	}
+    /**
+     * @param tokenKey
+     *        the token key to set
+     */
+    public void setTokenKey(String tokenKey) {
+        this.tokenKey = tokenKey;
+    }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Unlock.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Unlock.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Unlock.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/lock/Unlock.java Tue Oct 11 07:38:54 2005
@@ -23,10 +23,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Unlocks the current working node
+ * Unlock the current working <code>Node</code>
  */
-public class Unlock implements Command
-{
+public class Unlock implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(Unlock.class);
 
@@ -35,13 +34,11 @@
     private String pathKey = "path";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String path = (String) ctx.get(this.pathKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("Unlocking node at " + path);
         }
         CommandHelper.getNode(ctx, path).unlock();
@@ -49,19 +46,17 @@
     }
 
     /**
-     * @return Returns the pathKey.
+     * @return the path key
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param pathKey
-     *            The pathKey to set.
+     *        the path key to set
      */
-    public void setPathKey(String pathKey)
-    {
+    public void setPathKey(String pathKey) {
         this.pathKey = pathKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/AddMixin.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/AddMixin.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/AddMixin.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/AddMixin.java Tue Oct 11 07:38:54 2005
@@ -23,10 +23,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Add a mixin to the given node
+ * Add a mixin to the given <code>Node</code>
  */
-public class AddMixin implements Command
-{
+public class AddMixin implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(AddMixin.class);
 
@@ -40,46 +39,40 @@
     /**
      * @return Returns the mixinNameKey.
      */
-    public String getMixinKey()
-    {
+    public String getMixinKey() {
         return mixinKey;
     }
 
     /**
      * @param mixinNameKey
-     *            The mixinNameKey to set.
+     *        The mixinNameKey to set.
      */
-    public void setMixinKey(String mixinNameKey)
-    {
+    public void setMixinKey(String mixinNameKey) {
         this.mixinKey = mixinNameKey;
     }
 
     /**
      * @return Returns the pathKey.
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param pathKey
-     *            The pathKey to set.
+     *        The pathKey to set.
      */
-    public void setPathKey(String pathKey)
-    {
+    public void setPathKey(String pathKey) {
         this.pathKey = pathKey;
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String path = (String) ctx.get(this.pathKey);
         String mixin = (String) ctx.get(this.mixinKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("adding mixin " + mixin + " to node " + path);
         }
         CommandHelper.getNode(ctx, path).addMixin(mixin);

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/RemoveMixin.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/RemoveMixin.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/RemoveMixin.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/mixin/RemoveMixin.java Tue Oct 11 07:38:54 2005
@@ -23,10 +23,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Remove a mixin from the given node
+ * Remove a mixin from the given <code>Node</code>
  */
-public class RemoveMixin implements Command
-{
+public class RemoveMixin implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(RemoveMixin.class);
 
@@ -38,48 +37,42 @@
     private String mixinKey = "mixin";
 
     /**
-     * @return Returns the mixinNameKey.
+     * @return the mixin name key
      */
-    public String getMixinKey()
-    {
+    public String getMixinKey() {
         return mixinKey;
     }
 
     /**
      * @param mixinNameKey
-     *            The mixinNameKey to set.
+     *        the mixin name key to set
      */
-    public void setMixinKey(String mixinNameKey)
-    {
+    public void setMixinKey(String mixinNameKey) {
         this.mixinKey = mixinNameKey;
     }
 
     /**
-     * @return Returns the pathKey.
+     * @return he path key
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param pathKey
-     *            The pathKey to set.
+     *        the path key to set
      */
-    public void setPathKey(String pathKey)
-    {
+    public void setPathKey(String pathKey) {
         this.pathKey = pathKey;
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
-        String path = (String) ctx.get(this.pathKey) ;
-        String mixin = (String) ctx.get(this.mixinKey) ;
-        if (log.isDebugEnabled())
-        {
+    public boolean execute(Context ctx) throws Exception {
+        String path = (String) ctx.get(this.pathKey);
+        String mixin = (String) ctx.get(this.mixinKey);
+        if (log.isDebugEnabled()) {
             log.debug("removing mixin " + mixin + " from node " + path);
         }
         CommandHelper.getNode(ctx, path).removeMixin(mixin);

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/RegisterNamespace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/RegisterNamespace.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/RegisterNamespace.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/RegisterNamespace.java Tue Oct 11 07:38:54 2005
@@ -23,10 +23,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Registers a namespace
+ * Register a namespace
  */
-public class RegisterNamespace implements Command
-{
+public class RegisterNamespace implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(RegisterNamespace.class);
 
@@ -38,14 +37,12 @@
     private String uriKey = "uri";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String prefix = (String) ctx.get(this.prefixKey);
         String uri = (String) ctx.get(this.uriKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("registering namespace uri=" + uri + " prefix=" + prefix);
         }
         CommandHelper.getSession(ctx).getWorkspace().getNamespaceRegistry()
@@ -54,36 +51,32 @@
     }
 
     /**
-     * @return Returns the prefixKey.
+     * @return the prefix key.
      */
-    public String getPrefixKey()
-    {
+    public String getPrefixKey() {
         return prefixKey;
     }
 
     /**
      * @param prefixKey
-     *            The prefixKey to set.
+     *        the prefix key to set
      */
-    public void setPrefixKey(String prefixKey)
-    {
+    public void setPrefixKey(String prefixKey) {
         this.prefixKey = prefixKey;
     }
 
     /**
-     * @return Returns the uriKey.
+     * @return the uri key
      */
-    public String getUriKey()
-    {
+    public String getUriKey() {
         return uriKey;
     }
 
     /**
      * @param uriKey
-     *            The uriKey to set.
+     *        the uri key to set
      */
-    public void setUriKey(String uriKey)
-    {
+    public void setUriKey(String uriKey) {
         this.uriKey = uriKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/UnregisterNamespace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/UnregisterNamespace.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/UnregisterNamespace.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/namespace/UnregisterNamespace.java Tue Oct 11 07:38:54 2005
@@ -25,8 +25,7 @@
 /**
  * Unregister a namespace
  */
-public class UnregisterNamespace implements Command
-{
+public class UnregisterNamespace implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(UnregisterNamespace.class);
 
@@ -35,13 +34,11 @@
     private String prefixKey = "prefix";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String prefix = (String) ctx.get(this.prefixKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("unregistering namespace with prefix=" + prefix);
         }
         CommandHelper.getSession(ctx).getWorkspace().getNamespaceRegistry()
@@ -50,19 +47,17 @@
     }
 
     /**
-     * @return Returns the prefixKey.
+     * @return the prefix key.
      */
-    public String getPrefixKey()
-    {
+    public String getPrefixKey() {
         return prefixKey;
     }
 
     /**
      * @param prefixKey
-     *            The prefixKey to set.
+     *        the prefix key to set
      */
-    public void setPrefixKey(String prefixKey)
-    {
+    public void setPrefixKey(String prefixKey) {
         this.prefixKey = prefixKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/AbstractQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/AbstractQuery.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/AbstractQuery.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/AbstractQuery.java Tue Oct 11 07:38:54 2005
@@ -1,18 +1,18 @@
 /*
- * Copyright 2002-2004 The Apache Software Foundation.
+ * Copyright 2004-2005 The Apache Software Foundation or its licensors,
+ *                     as applicable.
  *
  * Licensed 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
+ *      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.command.query;
 
@@ -25,10 +25,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Query the repository through either SQL or XPATH.
+ * Query the <code>Repository</code> through either SQL or XPATH language.
  */
-public abstract class AbstractQuery implements Command
-{
+public abstract class AbstractQuery implements Command {
 
     // ---------------------------- < keys >
 
@@ -39,57 +38,50 @@
     private String destKey = "collected";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public final boolean execute(Context ctx) throws Exception
-    {
-        String statement = (String) ctx.get(this.statementKey) ;
+    public final boolean execute(Context ctx) throws Exception {
+        String statement = (String) ctx.get(this.statementKey);
         Session session = CommandHelper.getSession(ctx);
-        Query query = session.getWorkspace().getQueryManager()
-            .createQuery(statement, this.getLanguage());
+        Query query = session.getWorkspace().getQueryManager().createQuery(
+            statement, this.getLanguage());
         QueryResult result = query.execute();
         ctx.put(destKey, result.getNodes());
         return false;
     }
 
     /**
-     * Query language
-     * 
-     * @return
+     * @return the query language
      */
     protected abstract String getLanguage();
 
     /**
-     * @return Returns the statementKey.
+     * @return the statement key
      */
-    public String getStatementKey()
-    {
+    public String getStatementKey() {
         return statementKey;
     }
 
     /**
      * @param statementKey
-     *            Set the context attribute key for the statement attribute.
+     *        the statement key to set
      */
-    public void setStatementKey(String statementKey)
-    {
+    public void setStatementKey(String statementKey) {
         this.statementKey = statementKey;
     }
 
     /**
-     * @return Returns the toKey.
+     * @return the destination key
      */
-    public String getDestKey()
-    {
+    public String getDestKey() {
         return destKey;
     }
 
     /**
      * @param toKey
-     *            Set the context attribute key for the to attribute.
+     *        the destination key to set
      */
-    public void setDestKey(String toKey)
-    {
+    public void setDestKey(String toKey) {
         this.destKey = toKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/SQLQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/SQLQuery.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/SQLQuery.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/SQLQuery.java Tue Oct 11 07:38:54 2005
@@ -1,30 +1,32 @@
 /*
- * Copyright 2002-2004 The Apache Software Foundation.
+ * Copyright 2004-2005 The Apache Software Foundation or its licensors,
+ *                     as applicable.
  *
  * Licensed 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
+ *      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.command.query;
 
+import javax.jcr.query.Query;
 
 /**
- * SQL query
+ * SQL <code>Query</code>
  */
-public class SQLQuery extends AbstractQuery
-{
+public class SQLQuery extends AbstractQuery {
 
-    protected String getLanguage()
-    {
-        return javax.jcr.query.Query.SQL;
+    /**
+     * {@inheritDoc}
+     */
+    protected String getLanguage() {
+        return Query.SQL;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/XPathQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/XPathQuery.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/XPathQuery.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/query/XPathQuery.java Tue Oct 11 07:38:54 2005
@@ -1,30 +1,32 @@
 /*
- * Copyright 2002-2004 The Apache Software Foundation.
+ * Copyright 2004-2005 The Apache Software Foundation or its licensors,
+ *                     as applicable.
  *
  * Licensed 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
+ *      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.command.query;
 
+import javax.jcr.query.Query;
 
 /**
- * XPath query
+ * XPath <code>Query</code>
  */
-public class XPathQuery extends AbstractQuery
-{
+public class XPathQuery extends AbstractQuery {
 
-    protected String getLanguage()
-    {
-        return javax.jcr.query.Query.XPATH;
+    /**
+     * @inheritDoc
+     */
+    protected String getLanguage() {
+        return Query.XPATH;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/resources.properties
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/resources.properties?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/resources.properties (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/resources.properties Tue Oct 11 07:38:54 2005
@@ -1,25 +1,25 @@
 
-cmd.addlocktoken                   = add the given lock token to the current session
+cmd.addlocktoken                   = Add the given Lock token to the current Session
 cmd.addlocktoken.token             = lock token
 cmd.addlocktoken.token.desc        = the lock token
-cmd.addmixin                       = add a mixin node type to the given node
+cmd.addmixin                       = Add a mixin to the given Node
 cmd.addmixin.mixin                 = mixin name
 cmd.addmixin.mixin.desc            = a mixin node type name
 cmd.addmixin.path                  = path
 cmd.addmixin.path.desc             = path to the given node
-cmd.addnode                        = add a node to the gven node
-cmd.addversionlabel                = Adds the specified label to the specified version.
+cmd.addnode                        = Add a node to the current working Node
+cmd.addversionlabel                = Add a label to the given Version
 cmd.addversionlabel.label          = label
 cmd.addversionlabel.label.desc     = label to add
 cmd.addversionlabel.moveLabel      = 
 cmd.addversionlabel.moveLabel.desc = move label
 cmd.addversionlabel.version        = version
 cmd.addversionlabel.version.desc   = the version name on which the label will be applied
-cmd.cat                            = Display the content of a property, or the content of a node of type nt:file or nt:resource.
-cmd.checkin                        = check in the given versionable node
-cmd.checkout                       = checkout the given versionable node
-cmd.clearworkspace                 = Clear the Workspace by removing all the nodes and properties.
-cmd.clone                          = clone the given node
+cmd.cat                            = Display the content of a Property or a Node of type nt:file or nt:resource.
+cmd.checkin                        = Check in the given versionable node
+cmd.checkout                       = Checkout the given versionable Node
+cmd.clearworkspace                 = Remove all the content from the current working Workspace
+cmd.clone                          = Clone the given Node to another Workspace
 cmd.clone.destAbsPath              = absolute path
 cmd.clone.destAbsPath.desc         = absolute path to the destination node
 cmd.clone.removeExisting           = boolean
@@ -29,41 +29,40 @@
 cmd.connect                        = Connect to a remote repository through jcr-rmi
 cmd.connect.url                    = url
 cmd.connect.url.desc               = String with the url where a jcr-rmi server instance is running
-cmd.copy                           = copy a node
+cmd.copy                           = Copy a Node.\r\nIf the source Workspace is unset it will create a copy of the given Node from the current working Workspace.
 cmd.copy.destAbsPath               = path
 cmd.copy.destAbsPath.desc          = absolute path to the destination
 cmd.copy.fromWorkspace             = name
 cmd.copy.fromWorkspace.desc        = workspace name
 cmd.copy.srcAbsPath                = path
 cmd.copy.srcAbsPath.desc           = absolute path to the source node
-cmd.createworkspace                = create a workspace
+cmd.createworkspace                = Create a Workspace
 cmd.createworkspace.name           = name
 cmd.createworkspace.name.desc      = workspace name
-cmd.currentnode                    = Change the current working node to the given path
-cmd.dump                           = Dump stored data from the current working node
-cmd.exportdocview                  = Serialize the node to the given file using the document view format
-cmd.exportfilesystem               = Export node of type nt:file and nt:folder to the file system.
-cmd.exportproperty                 = Export the given property to the file system
-cmd.exportsysview                  = Serialize the node to the given file using the system view format
-cmd.help                           = Show available commands. If a command is specified it will show the command description, usage and parameters details.
+cmd.currentnode                    = Set the current working Node
+cmd.dump                           = Dump stored data from the current working Node
+cmd.exportdocview                  = Serialize the Node to the given file using the Document View Format
+cmd.exportfilesystem               = Export a Node of type nt:file or nt:folder to the given file system path
+cmd.exportproperty                 = Export a Property Value of the current working Node to the file system.
+cmd.exportsysview                  = Serialize the Node to the given file using the System View Format
+cmd.help                           = Show available Commands. If a Command is specified it will show its description, usage and parameters.
 cmd.help.command                   = name
 cmd.help.command.desc              = name of the command to describe
-cmd.importfilesystem               = 
-importxml.uuidBehaviour=uuid creation behaviour
-cmd.importxml                      = Import the given xml file either in system or documen view to the repository
-cmd.lock                           = lock the given node
+cmd.importfilesystem               = Import data from the file system. If the given path refers to a file it's imported to a Node of type nt:file under the current working Node. If the given path refers to a folder, the given folder and all the subtree is imported.
+cmd.importxml                      = Imports the xml view from the given file to the current working Node
+cmd.lock                           = Lock the given Node
 cmd.lock.deep.desc                 = A deep lock applies to its holding node and all its descendants.
 cmd.lock.session.desc              = session scoped locks expire with the session
-cmd.login                          = login to the current repository.
+cmd.login                          = Login to the current working Repository
 cmd.login.password.desc            = password  [default = anonymous]
 cmd.login.user.desc                = registered user name [default=anonymous]
 cmd.login.workspace.desc           = workspace
-cmd.logout                         = logout from the current repository.
+cmd.logout                         = Logout from the current working Repository
 cmd.lscollect                      = List collected items under the current node
-cmd.lscollectnodes                 = List collected nodes under the current node
-cmd.lscollectproperties            = List collected properties under the current node
-cmd.lsitems                        = Lists nodes and properties under the current node
-cmd.lsnodes                        = List nodes under the current node
+cmd.lscollectnodes                 = List collected nodes under the current working node
+cmd.lscollectproperties            = List collected properties under the current working node
+cmd.lsitems                        = Lists nodes and properties under the current working node
+cmd.lsnodes                        = List nodes under the current working node
 cmd.lsnodes.hasLock                = Show whether the current working node has a lock
 cmd.lsnodes.l                      = Show whether the current working node is lockable
 cmd.lsnodes.locked                 = Show whether the current working node is locked
@@ -79,50 +78,50 @@
 cmd.lsnodes.rsize                  = Show the number of references that point to the current working node
 cmd.lsnodes.uuid                   = uuid
 cmd.lsnodes.v                      = Show whether the current working node is versionable
-cmd.lsproperties                   = List properties under the current node
-cmd.lsreferences                   = List references to the given node.
+cmd.lsproperties                   = List properties under the current working node
+cmd.lsreferences                   = List references to the given node
 cmd.lsversions                     = list versions of the given node
 cmd.merge                          = merge versions
 cmd.merge.bestEffort.desc          = merge best effort
-cmd.move                           = move a node
+cmd.move                           = Move a Node
 cmd.move.from                      = source, absolute or relative path
 cmd.move.to                        = destination, only absolute path
-cmd.orderbefore                    = order value1 before value2
-cmd.refresh                        = Refresh the session to reflect the current saved state.
+cmd.orderbefore                    = Set the order of the given Node
+cmd.refresh                        = Refresh the Item if specified or the Session to reflect the current saved state
 cmd.refresh.keepChanges            = keep or discard the changes flag
-cmd.refreshlock                    = refresh the lock
-cmd.registernamespace              = register a namespace
-cmd.removeitem                     = Remove the item at the given path.
-cmd.removeitems                    = Remove any item under the current working node that match the given name pattern.
-cmd.removelocktoken                = remove the lock token from the session
-cmd.removemixin                    = Remove a mixin from the given node
-cmd.removeversion                  = remove the version for the given name
-cmd.removeversionbylabel           = remove the version for the given label
-cmd.removeversionlabel             = remove the label from the version history
-cmd.rename                         = rename the child node with the given name
+cmd.refreshlock                    = Reset the Lock timer
+cmd.registernamespace              = Register a namespace
+cmd.removeitem                     = Remove the item at the given path
+cmd.removeitems                    = Remove any Item under the given Node that match the given name pattern
+cmd.removelocktoken                = Remove the given Lock token to the current Session
+cmd.removemixin                    = Remove a mixin from the given Node
+cmd.removeversion                  = Remove a Version from the VersionHistory
+cmd.removeversionbylabel           = Remove the Version from the VersionHistory that match the given label
+cmd.removeversionlabel             = Remove a label from the VersionHistory
+cmd.rename                         = Rename a Node
 cmd.rename.from                    = source node
 cmd.rename.to                      = destination node
-cmd.restore                        = restore the node to the state of the given version
-cmd.restorebylabel                 = restore the node to the state of the version with the given label
-cmd.save                           = Save the current session
-cmd.setmultivalueproperty          = Set a multivalue property.
+cmd.restore                        = Restore a Node to the state of the given Version
+cmd.restorebylabel                 = Restore a Node to the state of the Version with the specified label
+cmd.save                           = Save the current working Node if specified, or the current working Session
+cmd.setmultivalueproperty          = Set a multivalue Property to the current working Node. The default regular expression is ",".
 cmd.setmultivalueproperty.regExp   = Regular expression used to split the value into tokens.
-cmd.setproperty                    = Set the given value to the property.
+cmd.setproperty                    = Set a Property Value to the current working Node
 cmd.setproperty.name               = property name
 cmd.setproperty.type               = property type. Default is String.
 cmd.setproperty.value              = property value
-cmd.setpropertyfromfile            = Set the property's value with the content of the given path.
+cmd.setpropertyfromfile            = Set a Property Value with the content of the given file.
 cmd.setpropertyfromfile.path       = path to the file
-cmd.source                         = source
+cmd.source                         = Executes a script from the given file
 cmd.sqlquery                       = SQL query
 cmd.sqlquery.statement             = SQL statement
 cmd.sqlquery.target                = target variables to store the nodes included in te query result
-cmd.startjackrabbit                = Start a local Jackrabbit instance
+cmd.startjackrabbit                = Start a Jackrabbit instance and set it as the current working Repository
 cmd.startjackrabbit.config         = Repository config file, usually called repository.xml
 cmd.startjackrabbit.home           = Repository location
-cmd.stopjackrabbit                 = Stop the Jackrabbit instance in use
-cmd.unlock                         = unlock the given node
-cmd.xpathquery                     = xpath query
+cmd.stopjackrabbit                 = Stop Jackrabbit
+cmd.unlock                         = Unlock the current working Node
+cmd.xpathquery                     = XPath query
 cmd.xpathquery.statement           = statement
 
 common.exportview.from       = Source node
@@ -164,14 +163,23 @@
 exception.illegalargument.not.a.command     = Illegal argument. "{0}" is not a command.
 exception.illegalargument.null              = Null arguments are illegal.
 exception.jackrabbit.command                = jackrabbit specific command
+exception.missing.paramater                 = missing parameter "{0}"
+exception.more.arguments.than.expected      = more arguments than expected
 exception.no.command.for.name               = No Command for name "{0}".
 exception.no.current.node                   = The current working node isn't set. Please start a jcr implementation before trying to get the current working node.
+exception.no.current.repository             = the current working repository is unset
+exception.no.current.session                = the current working session is unset
+exception.no.flag.for.name                  = no flag for name "{0}"
+exception.no.node.at                        = there is not a Node at "{0}".
+exception.no.opt.for.name                   = no option for name "{0}"
 exception.not.file.or.folder                = The given node is not nt:file nor nt:folder. {0}.
 exception.occurred                          = an exception occurred
 exception.only.absolute.path                = only absolute paths are allowed
 exception.parse.input.empty                 = input is empty
 exception.repository.not.in.context         = The repository can't be found in the application context. You need to start a jcr implementation before trying to login.
 exception.unabletoinit                      = Unable to init
+
+importxml.uuidBehaviour = uuid creation behaviour
 
 phrase.commandlist        = command list
 phrase.commandreference   = command reference

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/AddVersionLabel.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/AddVersionLabel.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/AddVersionLabel.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/AddVersionLabel.java Tue Oct 11 07:38:54 2005
@@ -23,111 +23,100 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Adds a label to the given version
+ * Add a label to the given <code>Version</code>
  */
-public class AddVersionLabel implements Command
-{
-	/** logger */
-	private static Log log = LogFactory.getLog(AddVersionLabel.class);
-
-	// ---------------------------- < keys >
-	/** node path */
-	private String pathKey = "path";
-
-	/** version name key */
-	private String versionKey = "version";
-
-	/** version label key */
-	private String labelKey = "label";
-
-	/** move label key */
-	private String moveLabelKey = "moveLabel";
-
-	/**
-	 * @inheritDoc
-	 */
-	public boolean execute(Context ctx) throws Exception
-	{
-		String path = (String) ctx.get(this.pathKey);
-		String versionName = (String) ctx.get(this.versionKey);
-		boolean moveLabel = Boolean
-				.valueOf((String) ctx.get(this.moveLabelKey)).booleanValue();
-		String versionLabel = (String) ctx.get(this.labelKey);
-		if (log.isDebugEnabled())
-		{
-			log.debug("Add label " + versionLabel + " to version  "
-					+ versionName + " of node at " + path);
-		}
-		CommandHelper.getNode(ctx, path).getVersionHistory().addVersionLabel(
-				versionName, versionLabel, moveLabel);
-		return false;
-	}
-
-	/**
-	 * @return Returns the moveLabelKey.
-	 */
-	public String getMoveLabelKey()
-	{
-		return moveLabelKey;
-	}
-
-	/**
-	 * @param moveLabelKey
-	 *            The moveLabelKey to set.
-	 */
-	public void setMoveLabelKey(String moveLabelKey)
-	{
-		this.moveLabelKey = moveLabelKey;
-	}
-
-	/**
-	 * @return Returns the pathKey.
-	 */
-	public String getPathKey()
-	{
-		return pathKey;
-	}
-
-	/**
-	 * @param pathKey
-	 *            The pathKey to set.
-	 */
-	public void setPathKey(String pathKey)
-	{
-		this.pathKey = pathKey;
-	}
-
-	/**
-	 * @return Returns the versionLabelKey.
-	 */
-	public String getLabelKey()
-	{
-		return labelKey;
-	}
-
-	/**
-	 * @param versionLabelKey
-	 *            The versionLabelKey to set.
-	 */
-	public void setLabelKey(String versionLabelKey)
-	{
-		this.labelKey = versionLabelKey;
-	}
-
-	/**
-	 * @return Returns the versionNameKey.
-	 */
-	public String getVersionKey()
-	{
-		return versionKey;
-	}
-
-	/**
-	 * @param versionNameKey
-	 *            The versionNameKey to set.
-	 */
-	public void setVersionKey(String versionNameKey)
-	{
-		this.versionKey = versionNameKey;
-	}
+public class AddVersionLabel implements Command {
+    /** logger */
+    private static Log log = LogFactory.getLog(AddVersionLabel.class);
+
+    // ---------------------------- < keys >
+    /** node path */
+    private String pathKey = "path";
+
+    /** version name key */
+    private String versionKey = "version";
+
+    /** version label key */
+    private String labelKey = "label";
+
+    /** move label key */
+    private String moveLabelKey = "moveLabel";
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean execute(Context ctx) throws Exception {
+        String path = (String) ctx.get(this.pathKey);
+        String versionName = (String) ctx.get(this.versionKey);
+        boolean moveLabel = Boolean
+            .valueOf((String) ctx.get(this.moveLabelKey)).booleanValue();
+        String versionLabel = (String) ctx.get(this.labelKey);
+        if (log.isDebugEnabled()) {
+            log.debug("Add label " + versionLabel + " to version  "
+                    + versionName + " of node at " + path);
+        }
+        CommandHelper.getNode(ctx, path).getVersionHistory().addVersionLabel(
+            versionName, versionLabel, moveLabel);
+        return false;
+    }
+
+    /**
+     * @return the move label key
+     */
+    public String getMoveLabelKey() {
+        return moveLabelKey;
+    }
+
+    /**
+     * @param moveLabelKey
+     *        the move label key to set
+     */
+    public void setMoveLabelKey(String moveLabelKey) {
+        this.moveLabelKey = moveLabelKey;
+    }
+
+    /**
+     * @return the path key
+     */
+    public String getPathKey() {
+        return pathKey;
+    }
+
+    /**
+     * @param pathKey
+     *        the path key to set
+     */
+    public void setPathKey(String pathKey) {
+        this.pathKey = pathKey;
+    }
+
+    /**
+     * @return the version label key
+     */
+    public String getLabelKey() {
+        return labelKey;
+    }
+
+    /**
+     * @param versionLabelKey
+     *        the version label key to set
+     */
+    public void setLabelKey(String versionLabelKey) {
+        this.labelKey = versionLabelKey;
+    }
+
+    /**
+     * @return the version name key
+     */
+    public String getVersionKey() {
+        return versionKey;
+    }
+
+    /**
+     * @param versionNameKey
+     *        the version name key to set
+     */
+    public void setVersionKey(String versionNameKey) {
+        this.versionKey = versionNameKey;
+    }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkin.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkin.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkin.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkin.java Tue Oct 11 07:38:54 2005
@@ -23,10 +23,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Creates a new version
+ * Check in the given versionable <code>Node</code>
  */
-public class Checkin implements Command
-{
+public class Checkin implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(Checkin.class);
 
@@ -35,13 +34,11 @@
     private String pathKey = "path";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String path = (String) ctx.get(this.pathKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("cheking in node at " + path);
         }
         CommandHelper.getNode(ctx, path).checkin();
@@ -49,19 +46,17 @@
     }
 
     /**
-     * @return Returns the pathKey.
+     * @return the path key
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param pathKey
-     *            The pathKey to set.
+     *        the path key to set
      */
-    public void setPathKey(String pathKey)
-    {
+    public void setPathKey(String pathKey) {
         this.pathKey = pathKey;
     }
 }

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkout.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkout.java?rev=312896&r1=312895&r2=312896&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkout.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/command/version/Checkout.java Tue Oct 11 07:38:54 2005
@@ -23,10 +23,9 @@
 import org.apache.jackrabbit.command.CommandHelper;
 
 /**
- * Checkout a node
+ * Checkout the given versionable <code>Node</code>
  */
-public class Checkout implements Command
-{
+public class Checkout implements Command {
     /** logger */
     private static Log log = LogFactory.getLog(Checkout.class);
 
@@ -35,13 +34,11 @@
     private String pathKey = "path";
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
-    public boolean execute(Context ctx) throws Exception
-    {
+    public boolean execute(Context ctx) throws Exception {
         String path = (String) ctx.get(this.pathKey);
-        if (log.isDebugEnabled())
-        {
+        if (log.isDebugEnabled()) {
             log.debug("cheking out node at " + path);
         }
         CommandHelper.getNode(ctx, path).checkout();
@@ -49,19 +46,17 @@
     }
 
     /**
-     * @return Returns the pathKey.
+     * @return the path key
      */
-    public String getPathKey()
-    {
+    public String getPathKey() {
         return pathKey;
     }
 
     /**
      * @param pathKey
-     *            The pathKey to set.
+     *        the path key to set
      */
-    public void setPathKey(String pathKey)
-    {
+    public void setPathKey(String pathKey) {
         this.pathKey = pathKey;
     }
 }



Mime
View raw message