diff --git a/core/src/main/java/org/verapdf/pdfa/validation/profiles/Profiles.java b/core/src/main/java/org/verapdf/pdfa/validation/profiles/Profiles.java
index ef90aed81..5d2ea19cb 100644
--- a/core/src/main/java/org/verapdf/pdfa/validation/profiles/Profiles.java
+++ b/core/src/main/java/org/verapdf/pdfa/validation/profiles/Profiles.java
@@ -311,25 +311,20 @@ public static Rule ruleFromValues(final RuleId id, final String object, final St
/**
* Returns a {@link Rule} instance initialised with the passed values.
*
- * @param id
- * the {@link RuleId} id for the {@link Rule}
- * @param object
- * a String that identifies the Object that the rule applies to
- * @param deferred
- * a Boolean that identifies the deferred property of the rule
- * @param description
- * a textual description of the {@link Rule}.
- * @param test
- * a JavaScript expression that is the test carried out on a
- * model instance
- * @param error
- * the {@link ErrorDetails} associated with the{@link Rule}.
- * @param references
- * a list of further {@link Reference}s for this rule
+ * @param id the {@link RuleId} id for the {@link Rule}
+ * @param object a String that identifies the Object that the rule applies to
+ * @param deferred a Boolean that identifies the deferred property of the rule
+ * @param tags a String that contains comma-separated list of tags associated with this rule
+ * @param description a textual description of the {@link Rule}.
+ * @param test a JavaScript expression that is the test carried out on a
+ * model instance
+ * @param error the {@link ErrorDetails} associated with the{@link Rule}.
+ * @param references a list of further {@link Reference}s for this rule
+ *
* @return a {@link Rule} instance.
- * @throws IllegalArgumentException
- * if any of the parameters are null or the test, object, or
- * description is empty
+ *
+ * @throws IllegalArgumentException if any of the parameters are null or the test, object, or
+ * description is empty
*/
public static Rule ruleFromValues(final RuleId id, final String object, final Boolean deferred, String tags,
final String description, final String test,
@@ -409,6 +404,7 @@ public static Variable variableFromValues(final String name, final String object
* @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 fragment a flag to generate document level events
*
* @return a String xml representation of toConvert
*
@@ -427,18 +423,15 @@ public static String profileToXml(final ValidationProfile toConvert, boolean for
* Convert a {@link ValidationProfile} instance to XML and serialise to the
* {@link OutputStream} forXMLOutput
.
*
- * @param toConvert
- * a {@link ValidationProfile} to convert to an XML String
- * @param dest
- * an OutputStream used to write the generated XML to
- * @param format
- * set to Boolean.TRUE for pretty formatted XML, Boolean.FALSE
- * for no space formatting
- * @throws JAXBException
- * thrown by JAXB marshaller if there's an error converting the
- * object
- * @throws IllegalArgumentException
- * if toConvert is null
+ * @param toConvert a {@link ValidationProfile} to convert to an XML String
+ * @param dest an OutputStream used to write the generated XML to
+ * @param format set to Boolean.TRUE for pretty formatted XML, Boolean.FALSE
+ * for no space formatting
+ * @param fragment a flag to generate document level events
+ *
+ * @throws JAXBException thrown by JAXB marshaller if there's an error converting the
+ * object
+ * @throws IllegalArgumentException if toConvert is null
*/
public static void profileToXml(final ValidationProfile toConvert, final OutputStream dest, boolean format,
boolean fragment) throws JAXBException {
@@ -470,18 +463,15 @@ public static ValidationProfile profileFromXml(final InputStream source) throws
* Convert a {@link ValidationProfile} instance to XML and serialise to the
* {@link Writer} forXMLOutput
.
*
- * @param toConvert
- * a {@link ValidationProfile} to convert to an XML String
- * @param dest
- * a Writer used to write the generated XML to
- * @param format
- * set to Boolean.TRUE for pretty formatted XML, Boolean.FALSE
- * for no space formatting
- * @throws JAXBException
- * thrown by JAXB marshaller if there's an error converting the
- * object
- * @throws IllegalArgumentException
- * if toConvert is null
+ * @param toConvert a {@link ValidationProfile} to convert to an XML String
+ * @param dest a Writer used to write the generated XML to
+ * @param format set to Boolean.TRUE for pretty formatted XML, Boolean.FALSE
+ * for no space formatting
+ * @param fragment a flag to generate document level events
+ *
+ * @throws JAXBException thrown by JAXB marshaller if there's an error converting the
+ * object
+ * @throws IllegalArgumentException if toConvert is null
*/
public static void profileToXml(final ValidationProfile toConvert, Writer dest, boolean format, boolean fragment)
throws JAXBException {
diff --git a/core/src/main/java/org/verapdf/processor/plugins/Attribute.java b/core/src/main/java/org/verapdf/processor/plugins/Attribute.java
index e33a5e30f..dcebfb176 100644
--- a/core/src/main/java/org/verapdf/processor/plugins/Attribute.java
+++ b/core/src/main/java/org/verapdf/processor/plugins/Attribute.java
@@ -29,29 +29,47 @@
@XmlRootElement(name = "attribute")
public class Attribute {
- @XmlAttribute
- private final String key;
- @XmlAttribute
- private final String value;
-
- private Attribute(String key, String value) {
- this.key = key;
- this.value = value;
- }
-
- private Attribute() {
- this("", "");
- }
-
- public static Attribute fromValues(String key, String value) {
- return new Attribute(key, value);
- }
-
- public String getKey() {
- return key;
- }
-
- public String getValue() {
- return value;
- }
+ @XmlAttribute
+ private final String key;
+ @XmlAttribute
+ private final String value;
+
+ private Attribute(String key, String value) {
+ this.key = key;
+ this.value = value;
+ }
+
+ private Attribute() {
+ this("", "");
+ }
+
+ /**
+ * Creates attribute key and value.
+ *
+ * @param key an attribute key
+ * @param value an attribute value
+ *
+ * @return an attribute a pair of key and value
+ */
+ public static Attribute fromValues(String key, String value) {
+ return new Attribute(key, value);
+ }
+
+ /**
+ * Gets attribute key.
+ *
+ * @return an attribute key
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Gets attribute value.
+ *
+ * @return an attribute value
+ */
+ public String getValue() {
+ return value;
+ }
}
diff --git a/xmp-core/src/main/java/org/verapdf/xmp/containers/StaticXmpCoreContainers.java b/xmp-core/src/main/java/org/verapdf/xmp/containers/StaticXmpCoreContainers.java
index b00767f69..b8a48476e 100644
--- a/xmp-core/src/main/java/org/verapdf/xmp/containers/StaticXmpCoreContainers.java
+++ b/xmp-core/src/main/java/org/verapdf/xmp/containers/StaticXmpCoreContainers.java
@@ -1,6 +1,7 @@
package org.verapdf.xmp.containers;
-import java.util.*;
+import java.util.HashMap;
+import java.util.Map;
public class StaticXmpCoreContainers {
@@ -14,23 +15,46 @@ public class StaticXmpCoreContainers {
*/
private static final ThreadLocal