pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1677035 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form: PDField.java PDFieldTreeNode.java
Date Thu, 30 Apr 2015 17:44:35 GMT
Author: msahyoun
Date: Thu Apr 30 17:44:34 2015
New Revision: 1677035

URL: http://svn.apache.org/r1677035
Log:
PDFBOX-2782 enhance toString() output

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDField.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDFieldTreeNode.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDField.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDField.java?rev=1677035&r1=1677034&r2=1677035&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDField.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDField.java
Thu Apr 30 17:44:34 2015
@@ -54,17 +54,6 @@ public abstract class PDField extends PD
     }
 
     /**
-     * This will return a string representation of this field.
-     * 
-     * @return A string representation of this field.
-     */
-    @Override
-    public String toString()
-    {
-        return "" + getDictionary().getDictionaryObject(COSName.V);
-    }
-
-    /**
      * Set the actions of the field.
      * 
      * @param actions The field actions.

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDFieldTreeNode.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDFieldTreeNode.java?rev=1677035&r1=1677034&r2=1677035&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDFieldTreeNode.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDFieldTreeNode.java
Thu Apr 30 17:44:34 2015
@@ -657,7 +657,7 @@ public abstract class PDFieldTreeNode im
     @Override
     public String toString()
     {
-        return "" + getDictionary().getDictionaryObject(COSName.V);
+        return getFullyQualifiedName() + "{type: " + getClass().getSimpleName() + " value:
"+ getInheritableAttribute(COSName.V) + "}";
     }
 
     /**
@@ -725,10 +725,8 @@ public abstract class PDFieldTreeNode im
      * Returns the fully qualified name of the field, which is a concatenation of the names
of all the parents fields.
      * 
      * @return the name of the field
-     * 
-     * @throws IOException If there is an error generating the fully qualified name.
      */
-    public String getFullyQualifiedName() throws IOException
+    public String getFullyQualifiedName()
     {
         String finalName = getPartialName();
         String parentName = getParent() != null ? getParent().getFullyQualifiedName() : null;



Mime
View raw message