You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2023/05/18 09:13:53 UTC

svn commit: r1909899 - in /pdfbox/branches/2.0: examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ examples/src/main/java/org/apache/pdfbox/examples/util/ xmpbox/src/main/java/org/apache/xmpbox/ xmpbox/src/test/java/org/apache/xmpbox/schema/

Author: tilman
Date: Thu May 18 09:13:52 2023
New Revision: 1909899

URL: http://svn.apache.org/viewvc?rev=1909899&view=rev
Log:
PDFBOX-4892: fix typo, deprecate typo method

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java
    pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/XMPMetadata.java
    pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFErrorsTest.java
    pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFTest.java
    pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationOthersTest.java
    pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationTest.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java (original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java Thu May 18 09:13:52 2023
@@ -97,7 +97,7 @@ public final class CreatePDFA
                 DublinCoreSchema dc = xmp.createAndAddDublinCoreSchema();
                 dc.setTitle(file);
                 
-                PDFAIdentificationSchema id = xmp.createAndAddPFAIdentificationSchema();
+                PDFAIdentificationSchema id = xmp.createAndAddPDFAIdentificationSchema();
                 id.setPart(1);
                 id.setConformance("B");
                 

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java (original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java Thu May 18 09:13:52 2023
@@ -136,7 +136,7 @@ public class PDFMergerExample
         XMPMetadata xmpMetadata = XMPMetadata.createXMPMetadata();
 
         // PDF/A-1b properties
-        PDFAIdentificationSchema pdfaSchema = xmpMetadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaSchema = xmpMetadata.createAndAddPDFAIdentificationSchema();
         pdfaSchema.setPart(1);
         pdfaSchema.setConformance("B");
 

Modified: pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/XMPMetadata.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/XMPMetadata.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/XMPMetadata.java (original)
+++ pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/XMPMetadata.java Thu May 18 09:13:52 2023
@@ -341,9 +341,24 @@ public class XMPMetadata
      * This method return the created schema to enter information.
      * 
      * @return schema added in order to work on it
+     * 
+     * @deprecated use {@link #createAndAddPDFAIdentificationSchema()}
      */
+    @Deprecated
     public PDFAIdentificationSchema createAndAddPFAIdentificationSchema()
     {
+        return createAndAddPDFAIdentificationSchema();
+    }
+
+    /**
+     * Create and add a default PDFA Identification schema to this metadata.
+     * 
+     * This method return the created schema to enter information.
+     * 
+     * @return schema added in order to work on it
+     */
+    public PDFAIdentificationSchema createAndAddPDFAIdentificationSchema()
+    {
         PDFAIdentificationSchema pdfAId = new PDFAIdentificationSchema(this);
         pdfAId.setAboutAsSimple("");
         addSchema(pdfAId);

Modified: pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFErrorsTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFErrorsTest.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFErrorsTest.java (original)
+++ pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFErrorsTest.java Thu May 18 09:13:52 2023
@@ -77,7 +77,7 @@ public class AdobePDFErrorsTest
     @Test(expected = BadFieldValueException.class)
     public void testBadPDFAConformanceId() throws Exception
     {
-        PDFAIdentificationSchema pdfaid = metadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaid = metadata.createAndAddPDFAIdentificationSchema();
         String conformance = "kiohiohiohiohio";
         pdfaid.setConformance(conformance);
     }
@@ -85,7 +85,7 @@ public class AdobePDFErrorsTest
     @Test(expected = IllegalArgumentException.class)
     public void testBadVersionIdValueType() throws Exception
     {
-        PDFAIdentificationSchema pdfaid = metadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaid = metadata.createAndAddPDFAIdentificationSchema();
         pdfaid.setPartValueWithString("1");
         pdfaid.setPartValueWithString("ojoj");
     }

Modified: pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFTest.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFTest.java (original)
+++ pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/AdobePDFTest.java Thu May 18 09:13:52 2023
@@ -98,7 +98,7 @@ public class AdobePDFTest extends Abstra
     @Test(expected = BadFieldValueException.class)
     public void testBadPDFAConformanceId() throws BadFieldValueException
     {
-        PDFAIdentificationSchema pdfaid = metadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaid = metadata.createAndAddPDFAIdentificationSchema();
         String conformance = "kiohiohiohiohio";
         pdfaid.setConformance(conformance);
     }

Modified: pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationOthersTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationOthersTest.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationOthersTest.java (original)
+++ pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationOthersTest.java Thu May 18 09:13:52 2023
@@ -41,7 +41,7 @@ public class PDFAIdentificationOthersTes
     @Test
     public void testPDFAIdentification() throws Exception
     {
-        PDFAIdentificationSchema pdfaid = metadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaid = metadata.createAndAddPDFAIdentificationSchema();
 
         Integer versionId = 1;
         String amdId = "2005";
@@ -68,7 +68,7 @@ public class PDFAIdentificationOthersTes
     @Test(expected = BadFieldValueException.class)
     public void testBadPDFAConformanceId() throws BadFieldValueException
     {
-        PDFAIdentificationSchema pdfaid = metadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaid = metadata.createAndAddPDFAIdentificationSchema();
         String conformance = "kiohiohiohiohio";
         pdfaid.setConformance(conformance);
     }
@@ -76,7 +76,7 @@ public class PDFAIdentificationOthersTes
     @Test(expected = IllegalArgumentException.class)
     public void testBadVersionIdValueType() throws Exception
     {
-        PDFAIdentificationSchema pdfaid = metadata.createAndAddPFAIdentificationSchema();
+        PDFAIdentificationSchema pdfaid = metadata.createAndAddPDFAIdentificationSchema();
         pdfaid.setPartValueWithString("1");
         pdfaid.setPartValueWithString("ojoj");
     }

Modified: pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationTest.java?rev=1909899&r1=1909898&r2=1909899&view=diff
==============================================================================
--- pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationTest.java (original)
+++ pdfbox/branches/2.0/xmpbox/src/test/java/org/apache/xmpbox/schema/PDFAIdentificationTest.java Thu May 18 09:13:52 2023
@@ -41,7 +41,7 @@ public class PDFAIdentificationTest exte
     public void initTempMetaData() throws Exception
     {
         metadata = XMPMetadata.createXMPMetadata();
-        schema = metadata.createAndAddPFAIdentificationSchema();
+        schema = metadata.createAndAddPDFAIdentificationSchema();
         schemaClass = PDFAIdentificationSchema.class;
     }