Class DocumentModelCSVHelper


  • public class DocumentModelCSVHelper
    extends Object
    Utility class to have helper methods for exporting a document model in a CSV file.
    Since:
    10.3
    • Field Detail

      • SYSTEM_PROPERTIES_HEADER_FIELDS

        public static final String[] SYSTEM_PROPERTIES_HEADER_FIELDS
      • VOCABULARY_TYPES

        public static final List<String> VOCABULARY_TYPES
    • Method Detail

      • printSystemPropertiesHeader

        public static void printSystemPropertiesHeader​(org.apache.commons.csv.CSVPrinter printer)
                                                throws IOException
        Prints the fields for document model system properties.
        Throws:
        IOException
      • printPropertiesHeader

        public static void printPropertiesHeader​(List<String> schemas,
                                                 List<String> xpaths,
                                                 org.apache.commons.csv.CSVPrinter printer)
                                          throws IOException
        Prints the fields for document model properties of given schemas and xpaths.
        Throws:
        IOException
      • isVocabulary

        public static boolean isVocabulary​(Type type)
        Checks if given type is a vocabulary.
      • getVocabulary

        public static Directory getVocabulary​(Type type)