Class PackagePropertiesUnmarshaller

  • All Implemented Interfaces:
    PartUnmarshaller

    public final class PackagePropertiesUnmarshaller
    extends java.lang.Object
    implements PartUnmarshaller
    Package properties unmarshaller.
    • Constructor Detail

      • PackagePropertiesUnmarshaller

        public PackagePropertiesUnmarshaller()
    • Method Detail

      • checkElementForOPCCompliance

        public void checkElementForOPCCompliance​(org.w3c.dom.Element el)
                                          throws InvalidFormatException
        Check the element for the following OPC compliance rules:

        Rule M4.2: A format consumer shall consider the use of the Markup Compatibility namespace to be an error.

        Rule M4.3: Producers shall not create a document element that contains refinements to the Dublin Core elements, except for the two specified in the schema: and Consumers shall consider a document element that violates this constraint to be an error.

        Rule M4.4: Producers shall not create a document element that contains the xml:lang attribute. Consumers shall consider a document element that violates this constraint to be an error.

        Rule M4.5: Producers shall not create a document element that contains the xsi:type attribute, except for a or element where the xsi:type attribute shall be present and shall hold the value dcterms:W3CDTF, where dcterms is the namespace prefix of the Dublin Core namespace. Consumers shall consider a document element that violates this constraint to be an error.

        Throws:
        InvalidFormatException