You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/07/15 02:12:40 UTC

svn commit: r1146925 - /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java

Author: hlship
Date: Fri Jul 15 00:12:40 2011
New Revision: 1146925

URL: http://svn.apache.org/viewvc?rev=1146925&view=rev
Log:
TAP5-1366: Add missing documentation

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java?rev=1146925&r1=1146924&r2=1146925&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java Fri Jul 15 00:12:40 2011
@@ -259,6 +259,13 @@ public final class Element extends Node
         return newChild(new Element(this, namespace, name));
     }
 
+    /**
+     * Creates a new element, as a child of the current index, at the indicated index.
+     * @param index to insert at
+     * @param name              element name
+     * @param namesAndValues                attribute name / attribute value pairs
+     * @return the new element
+     */
     public Element elementAt(int index, String name, String... namesAndValues)
     {
         assert InternalUtils.isNonBlank(name);