- public static boolean reportDocument(VamsasDocument document) {
- if (document!=null) {
- System.out.print("Vamsas Document version '"+document.getVersion()+"'");
- System.out.print("Document contains "+document.getVAMSASCount()+" VAMSAS Elements and "+document.getApplicationDataCount()+" elements.\n");
- return true;
- } else {
- System.out.print("Document Object is null");
- }
- return false;
- }
-
- public static boolean rootReport(VAMSAS[] roots) {
- if (roots!=null) {
- for (int i=0; i<roots.length; i++) {
- VAMSAS r = roots[i];
- System.out.print("Vamsas Root "+i+" (id="
- +((r.getId()!=null) ? r.getId():"<none>")
- +") contains "+r.getDataSetCount()+" DataSets, "
- + r.getTreeCount()+" Global trees");
- }
- return true;
- }
- return false;
- }
-