_writer.println (margin + "Module: " + module.getName ()); _writer.println (margin + " Release: " + module.getRelease ()); _writer.println (margin + " Date: " + HandlerBase.date.format (module.getDate ())); String [] ss = module.getFormat (); if (ss.length > 0) { _writer.print (margin + " Format: " + ss[0]); String s = module.getCoverage (); if (s != null) { _writer.println (margin + " Coverage: " + s); ss = module.getMimeType (); if (ss.length > 0) { _writer.print (margin + " MIMEtype: " + ss[0]); for (Signature sig : module.getSignature ()) { showSignature (sig); for (Document spec : module.getSpecification()) { showDocument (spec, "Specification"); for (String feature : module.getFeatures ()) { _writer.println (margin + " Feature: " + feature); if ((s = module.getWellFormedNote ()) != null) { _writer.println (margin + " Well-formed: " + s); if ((s = module.getValidityNote ()) != null) {
texta.append (" Module: " + module.getName () + " " + module.getRelease () + eol);
new DefaultMutableTreeNode ("Module"); moduleNode.add (new DefaultMutableTreeNode (module.getName (), false)); moduleNode.add (new DefaultMutableTreeNode ("Release: " + module.getRelease (), false)); moduleNode.add (new DefaultMutableTreeNode ("Date: " + _dateFmt.format (module.getDate ()), false)); add (moduleNode);
Class<?> cl = Class.forName(modInfo.clas); Module module = (Module) cl.newInstance(); module.init(modInfo.init); module.setDefaultParams(param); _moduleMap.put(module.getName().toLowerCase(), module); _logger.info("Initialized " + module.getName()); } catch (Exception e) { throw new JhoveException(CoreMessageConstants.EXC_MODL_INST_FAIL module.setDefaultParams(new ArrayList<String>()); _moduleList.add(module); _moduleMap.put(module.getName().toLowerCase(), module);
logger.fine("Module "+module.getName()); } else { logger.fine("module is null!"); RepInfo infc = (RepInfo) info.clone(); if (mod.hasFeature("edu.harvard.hul.ois.jhove.canValidate")) { if (DEBUG) { logger.fine("Trying to apply Jhove module "+mod.getName());
info.getUri ()); if (module != null) { _writer.println (margin + " ReportingModule: " + module.getName() + ", Rel. " + module.getRelease () + " (" + date.format (module.getDate ()) + ")");
while (iter.hasNext ()) { Module module = _je.getModule (iter.next ()); _writer.println (margin + " Module: " + module.getName () + " " + module.getRelease ());
itemName = mod.getName (); modItem = new JRadioButtonMenuItem (itemName); modItem.setActionCommand (itemName);
texta.setText (""); String margin = getIndent (++_level); texta.append (margin + "Module: " + module.getName () + eol); texta.append (margin + "Release: " + module.getRelease () + eol); texta.append (margin + "Date: " + _dateFmt.format (module.getDate ()) + eol); String [] ss = module.getFormat (); if (ss.length > 0) { texta.append (margin + "Format: " + ss[0]); String s = module.getCoverage (); if (s != null) { texta.append (margin + "Coverage: " + s + eol); ss = module.getMimeType (); if (ss.length > 0) { texta.append (margin + "MIMEtype: " + ss[0]); for (Signature sig : module.getSignature()) { showSignature (sig); for (Document spec : module.getSpecification ()) { showDocument (spec, "Specification"); for (String feature : module.getFeatures ()) { texta.append (margin + " " + feature + "\n"); if ((s = module.getWellFormedNote ()) != null) { texta.append (margin + "Well-formed: " + s + eol);
_writer.println (margin + elementStart ("repInfo", attrs)); if (module != null) { String [][] attr2 = { {"release", module.getRelease ()}, {"date", date.format (module.getDate())} }; _writer.println (margn2 + element ("reportingModule", attr2, module.getName ()));
while (iter.hasNext ()) { Module module = _je.getModule (iter.next ()); String [][] attr2 = { {"release", module.getRelease ()} }; _writer.println (margn3 + element ("module", attr2, module.getName ()));
_writer.println (margn2 + element ("name", module.getName ())); _writer.println (margn2 + element ("release", module.getRelease ())); _writer.println (margn2 + element ("date", HandlerBase.date.format (module.getDate ()))); String [] ss = module.getFormat (); if (ss.length > 0) { _writer.println (margn2 + elementStart ("formats")); String s = module.getCoverage (); if (s != null) { _writer.println (margn2 + element ("coverage", s)); ss = module.getMimeType (); if (ss.length > 0) { _writer.println (margn2 + elementStart ("mimeTypes")); List list = module.getSignature (); int n = list.size (); if (n > 0) { list = module.getSpecification (); n = list.size (); if (n > 0) { List ftr = module.getFeatures (); if (ftr != null && !ftr.isEmpty ()) { _writer.println (margn2 + elementStart ("features"));