Class XmlHandler

    • Constructor Detail

      • XmlHandler

        public XmlHandler()
        Creates an XmlHandler.
      • XmlHandler

        public XmlHandler​(String name,
                          String release,
                          int[] date,
                          String note,
                          String rights)
        Constructor for use by subclasses.
    • Method Detail

      • show

        public void show()
        Outputs minimal information about the application
        Specified by:
        show in interface OutputHandler
        Specified by:
        show in class HandlerBase
      • show

        public void show​(App app)
        Outputs detailed information about the application, including configuration, available modules and handlers, etc.
        Specified by:
        show in interface OutputHandler
        Specified by:
        show in class HandlerBase
      • showAgent

        protected void showAgent​(Agent agent,
                                 String label)
        PRIVATE INSTANCE METHODS.
      • showChecksum

        protected void showChecksum​(Checksum checksum)
      • showDocument

        protected void showDocument​(Document document)
      • showFooter

        public void showFooter()
        Do the final output. This should be in a suitable format for including multiple files between the header and the footer, and the XML of the header and footer must balance out.
        Specified by:
        showFooter in interface OutputHandler
        Specified by:
        showFooter in class HandlerBase
      • showHeader

        public void showHeader()
        Do the initial output. This should be in a suitable format for including multiple files between the header and the footer, and the XML of the header and footer must balance out.
        Specified by:
        showHeader in interface OutputHandler
        Specified by:
        showHeader in class HandlerBase
      • showIdentifier

        protected void showIdentifier​(Identifier identifier)
      • showMessage

        protected void showMessage​(Message message)
      • showSignature

        protected void showSignature​(Signature signature)
      • valueToString

        protected String valueToString​(Object obj)
      • showProperty

        protected void showProperty​(Property property)
      • showArrayProperty

        protected void showArrayProperty​(Property property,
                                         String margin)
      • showTextMDMetadata

        protected void showTextMDMetadata​(TextMDMetadata textMD)
        Display the text metadata formatted according to the textMD schema (see http://www.loc.gov/standards/textMD).
        Parameters:
        textMD - textMD text metadata
      • showNisoImageMetadata

        protected void showNisoImageMetadata​(NisoImageMetadata niso)
        Display the NISO image metadata formatted according to the MIX schema. The schema which is used may be 0.2 or 1.0 or 2.0, depending on the module parameters.
        Parameters:
        niso - NISO image metadata
      • showNisoImageMetadata02

        protected void showNisoImageMetadata02​(NisoImageMetadata niso)
        Display the NISO image metadata formatted according to the MIX 0.2 schema.
      • showNisoBasicImageParameters02

        protected void showNisoBasicImageParameters02​(NisoImageMetadata niso,
                                                      String margin)
      • showNisoImagingPerformanceAssessment02

        protected void showNisoImagingPerformanceAssessment02​(NisoImageMetadata niso,
                                                              String margin)
      • showNisoImageMetadata10

        protected void showNisoImageMetadata10​(NisoImageMetadata niso)
        Display the NISO image metadata formatted according to the MIX 1.0 schema.
      • showNisoBasicDigitalObjectInformation10

        protected void showNisoBasicDigitalObjectInformation10​(NisoImageMetadata niso,
                                                               String margin)
      • showNisoBasicImageInformation10

        protected void showNisoBasicImageInformation10​(NisoImageMetadata niso,
                                                       String margin)
      • showNisoImageCaptureMetadata10

        protected void showNisoImageCaptureMetadata10​(NisoImageMetadata niso,
                                                      String margin)
      • showNisoImageAssessmentMetadata10

        protected void showNisoImageAssessmentMetadata10​(NisoImageMetadata niso,
                                                         String margin)
      • showNisoImageMetadata20

        protected void showNisoImageMetadata20​(NisoImageMetadata niso)
        Display the NISO image metadata formatted according to the MIX 2.0 schema.
      • showNisoBasicDigitalObjectInformation20

        protected void showNisoBasicDigitalObjectInformation20​(NisoImageMetadata niso,
                                                               String margin)
      • showNisoBasicImageInformation20

        protected void showNisoBasicImageInformation20​(NisoImageMetadata niso,
                                                       String margin)
      • showNisoImageCaptureMetadata20

        protected void showNisoImageCaptureMetadata20​(NisoImageMetadata niso,
                                                      String margin)
      • showNisoImageAssessmentMetadata20

        protected void showNisoImageAssessmentMetadata20​(NisoImageMetadata niso,
                                                         String margin)
      • showAESAudioMetadata

        protected void showAESAudioMetadata​(AESAudioMetadata aes)
        Display the audio metadata formatted according to the AES schema.
        Parameters:
        aes - AES audio metadata