Class CustomXmlDataStoragePartSelector

java.lang.Object
org.docx4j.model.datastorage.CustomXmlDataStoragePartSelector

public class CustomXmlDataStoragePartSelector extends Object
Mechanism to find the user's XML data part (typically to replace it with the runtime instance XML data).
Since:
3.0.1
  • Field Details

    • log

      protected static org.slf4j.Logger log
  • Constructor Details

    • CustomXmlDataStoragePartSelector

      public CustomXmlDataStoragePartSelector()
  • Method Details

    • getCustomXmlDataStoragePart

      public static CustomXmlPart getCustomXmlDataStoragePart(WordprocessingMLPackage wordMLPackage) throws Docx4JException
      We need the item id of the custom xml part. It skips coverPageProps, properties and core-properties parts.
      Parameters:
      wordMLPackage -
      Returns:
      Throws:
      Docx4JException
    • shouldSkip

      private static boolean shouldSkip(String prefixMappings)