You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2015/01/11 19:40:18 UTC
svn commit: r1650948 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Author: msahyoun
Date: Sun Jan 11 18:40:17 2015
New Revision: 1650948
URL: http://svn.apache.org/r1650948
Log:
PDFBOX-2582 enhance javadoc to clarify getFields() method
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java?rev=1650948&r1=1650947&r2=1650948&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java Sun Jan 11 18:40:17 2015
@@ -179,11 +179,16 @@ public class PDAcroForm implements COSOb
}
/**
- * This will return all of the fields in the document. The type
- * will be a org.apache.pdfbox.pdmodel.field.PDField.
- *
- * @return A list of all the fields.
- * @throws IOException If there is an error while getting the list of fields.
+ * This will return all of the documents root fields.
+ *
+ * A field might have children that are fields (non-terminal field) or does not
+ * have children which are fields (terminal fields).
+ *
+ * The fields within an AcroForm are organized in a tree structure. The documents root fields
+ * might either be terminal fields, non-terminal fields or a mixture of both. Non-terminal fields
+ * mark branches which contents can be retrieved using {@link PDFieldTreeNode#getKids()}.
+ *
+ * @return A list of the documents root fields.
*/
public List getFields() throws IOException
{
@@ -213,9 +218,9 @@ public class PDAcroForm implements COSOb
}
/**
- * Set the fields that are part of this AcroForm.
+ * Set the documents root fields.
*
- * @param fields The fields that are part of this form.
+ * @param fields The fields that are part of the documents root fields.
*/
public void setFields( List fields )
{