You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/30 12:04:22 UTC

svn commit: r1129104 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/NodeCreateRuleProvider.java

Author: simonetripodi
Date: Mon May 30 10:04:22 2011
New Revision: 1129104

URL: http://svn.apache.org/viewvc?rev=1129104&view=rev
Log:
added missing javadoc

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/NodeCreateRuleProvider.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/NodeCreateRuleProvider.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/NodeCreateRuleProvider.java?rev=1129104&r1=1129103&r2=1129104&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/NodeCreateRuleProvider.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/binder/NodeCreateRuleProvider.java Mon May 30 10:04:22 2011
@@ -56,6 +56,16 @@ public final class NodeCreateRuleProvide
         super( keyPattern, namespaceURI, mainBinder, mainBuilder );
     }
 
+    /**
+     * {@link NodeCreateRule} instance will be created either a DOM {@link org.w3c.dom.Element Element}
+     * or a DOM {@link org.w3c.dom.DocumentFragment DocumentFragment}, depending on the value of the
+     * <code>nodeType</code> parameter.
+     *
+     * @param nodeType the type of node to create, which can be either
+     *                 {@link org.w3c.dom.Node#ELEMENT_NODE Node.ELEMENT_NODE} or
+     *                 {@link org.w3c.dom.Node#DOCUMENT_FRAGMENT_NODE Node.DOCUMENT_FRAGMENT_NODE}
+     * @return this builder instance
+     */
     public NodeCreateRuleProvider ofType( NodeType nodeType )
     {
         if ( nodeType == null )
@@ -67,6 +77,13 @@ public final class NodeCreateRuleProvide
         return this;
     }
 
+    /**
+     * {@link NodeCreateRule} instance will be created a DOM {@link org.w3c.dom.Element Element}, but
+     * lets users specify the JAXP <code>DocumentBuilder</code> that should be used when constructing the node tree.
+     *
+     * @param documentBuilder the JAXP <code>DocumentBuilder</code> to use
+     * @return this builder instance
+     */
     public NodeCreateRuleProvider usingDocumentBuilder( DocumentBuilder documentBuilder )
     {
         this.documentBuilder = documentBuilder;
@@ -95,7 +112,7 @@ public final class NodeCreateRuleProvide
     }
 
     /**
-     * 
+     * Enumeration that wraps admitted {@link org.w3c.dom.Node} node constants.
      */
     public enum NodeType
     {