-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd4f903
commit fb8e90e
Showing
22 changed files
with
81 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,9 @@ | |
/** | ||
* Generic collection wrapper class. | ||
* | ||
* Makes it easier to (un)marshall a collectiono of a single type. | ||
* Makes it easier to (un)marshall a collection of a single type. | ||
* | ||
* @author Arno Moonen <[email protected]> | ||
* @author <a href="mailto:[email protected]">Arno Moonen</a> | ||
*/ | ||
public class JAXBCollection<T> | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,43 +28,40 @@ | |
import java.util.Set; | ||
|
||
/** | ||
* Enums used as id for PDF/A flavours where a flavour uniquely identifies a | ||
* specific PDF/A Standard part and associated conformance level. | ||
* | ||
* The PDF/A Specification:<br/> | ||
* ISO 19005 - Document Management - Electronic document format for long-term | ||
* preservation (PDF/A)<br/> | ||
* Enums used as id for PDF/A flavours where a flavour uniquely identifies a specific PDF/A Standard part and | ||
* associated conformance level. The PDF/A Specification:<br/> | ||
* ISO 19005 - Document Management - Electronic document format for long-term preservation (PDF/A)<br/> | ||
* comprises 4 parts: | ||
* <ol> | ||
* <li>Part 1: PDF/A-1 - Use of PDF 1.4</li> | ||
* <li>Part 2: PDF/A-2 - Use of ISO 32000-1</li> | ||
* <li>Part 3: PDF/A-3 - Use of ISO 32000-1 with support for embedded files</li> | ||
* <li>Part 4: PDF/A-4 - Use of ISO 32000-2</li> | ||
* <ol> | ||
* <li>Part 1: PDF/A-1 - Use of PDF 1.4 | ||
* <li>Part 2: PDF/A-2 - Use of ISO 32000-1 | ||
* <li>Part 3: PDF/A-3 - Use of ISO 32000-1 with support for embedded files | ||
* <li>Part 4: PDF/A-4 - Use of ISO 32000-2 | ||
* </ol> | ||
* Note that "Use of ISO 32000-1" indicates that PDF/A parts 2 and 3 are based | ||
* upon PDF 1.7. ISO 32000-1 is the code for the PDF 1.7 ISO standard. The | ||
* specification parts specify different conformance levels: | ||
* <ul> | ||
* <li>Level b - basic</li> | ||
* <li>Level a - accessible</li> | ||
* <li>Level u - unicode</li> | ||
* <li>Level f - embedded files</li> | ||
* <li>Level e - engineering</li> | ||
* <li>Level b - basic | ||
* <li>Level a - accessible | ||
* <li>Level u - unicode | ||
* <li>Level f - embedded files | ||
* <li>Level e - engineering | ||
* </ul> | ||
* Part 1 does not allow a conformance level u (Unicode) so there are eight | ||
* <p>Part 1 does not allow a conformance level u (Unicode) so there are eight | ||
* valid combinations of specification part and level, shown below: | ||
* <ul> | ||
* <li>1a</li> | ||
* <li>1b</li> | ||
* <li>2a</li> | ||
* <li>2b</li> | ||
* <li>2u</li> | ||
* <li>3a</li> | ||
* <li>3b</li> | ||
* <li>3u</li> | ||
* <li>4</li> | ||
* <li>4f</li> | ||
* <li>4e</li> | ||
* <li>1a | ||
* <li>1b | ||
* <li>2a | ||
* <li>2b | ||
* <li>2u | ||
* <li>3a | ||
* <li>3b | ||
* <li>3u | ||
* <li>4 | ||
* <li>4f | ||
* <li>4e | ||
* </ul> | ||
* | ||
* @author <a href="mailto:[email protected]">Carl Wilson</a> | ||
|
@@ -332,9 +329,8 @@ public String toString() { | |
} | ||
|
||
/** | ||
* Enum type that identifies the different PDF/A Conformance Levels A | ||
* (accessible), B (basic), U (unicode), F (embedded files) & E (engineering). | ||
* | ||
* Enum type that identifies the different PDF/A Conformance Levels A (accessible), B (basic), U (unicode), | ||
* F (embedded files) & E (engineering). | ||
*/ | ||
public enum Level { | ||
/** Special identifier for the none case */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,9 @@ | |
* Developers wishing to integrate veraPDF PDF/A validation into | ||
* their own Java applications should only need to use: | ||
* <ul> | ||
* <li>{@link org.verapdf.pdfa.ValidatorFactory} to obtain a {@link org.verapdf.pdfa.Validator} instance.</li> | ||
* <li>{@link org.verapdf.pdfa.PDFAValidator} to validate a {@link java.io.InputStream} believed to be a PDF/A document.</li> | ||
* <li>{@link org.verapdf.pdfa.flavours.PDFAFlavour} to determine the flavour of PDF/A enforced by a particular validator instance.</li> | ||
* </ul> | ||
* </p> | ||
* | ||
* @author <a href="mailto:[email protected]">Carl Wilson</a> | ||
* @version 0.7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
|
||
/** | ||
* Encapsulates the details of an error message, a String message and a | ||
* <code>List<String></code> of arguments to substitute into the error message | ||
* <code>List<String></code> of arguments to substitute into the error message | ||
* | ||
* @author <a href="mailto:[email protected]">Carl Wilson</a> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,15 +47,13 @@ | |
* <li>XML helper methods, <code>typeNameToXml(...)</code>, to facilitate XML | ||
* serialisation to Strings, OutputStreams and Writers.</li> | ||
* <li>XML helper methods, <code>typeNameFromXml(...)</code>, to facilitate XML | ||
* deserialisation.</li> | ||
* deserialization.</li> | ||
* </ul> | ||
* Note that XML serialisation and de-serialisation is achieved through JAXB | ||
* bindings. | ||
* </p> | ||
* <p> | ||
* TODO: Defensive Checks for all parameters. | ||
* </p> | ||
* | ||
* | ||
* @author <a href="mailto:[email protected]">Carl Wilson</a> | ||
*/ | ||
public final class Profiles { | ||
|
@@ -407,21 +405,16 @@ public static Variable variableFromValues(final String name, final String object | |
|
||
/** | ||
* Convert a {@link ValidationProfile} instance into an XML String. | ||
* | ||
* @param toConvert | ||
* a {@link ValidationProfile} to convert to an XML String | ||
* @param format | ||
* set to Boolean.TRUE for pretty formatted XML, Boolean.FALSE | ||
* for no space formatting | ||
* | ||
* @param toConvert a {@link ValidationProfile} to convert to an XML String | ||
* @param format set to Boolean.TRUE for pretty formatted XML, Boolean.FALSE | ||
* for no space formatting | ||
* | ||
* @return a String xml representation of toConvert | ||
* @throws JAXBException | ||
* thrown by JAXB marshaller if there's an error converting the | ||
* object | ||
* @throws IOException | ||
* thrown when's there's a problem closing the underlying | ||
* StringWriter | ||
* @throws IllegalArgumentException | ||
* if toConvert is null | ||
* | ||
* @throws JAXBException thrown by JAXB marshaller if there's an error converting the | ||
* object | ||
* @throws IllegalArgumentException if toConvert is null | ||
*/ | ||
public static String profileToXml(final ValidationProfile toConvert, boolean format, boolean fragment) | ||
throws JAXBException { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ | |
* </ul> | ||
* Regarding the FeatureReporting mechanism, it's crying out for a generics | ||
* based approach but that can come over the re-design. | ||
* </p> | ||
* | ||
* @author <a href="mailto:[email protected]">Carl Wilson</a> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.