Class JsonHandler

    • Constructor Detail

      • JsonHandler

        public JsonHandler()
        Creates an JsonHandler.
      • JsonHandler

        public JsonHandler​(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 javax.json.JsonObjectBuilder showAgent​(Agent agent,
                                                         String label)
        PRIVATE INSTANCE METHODS.
      • showChecksum

        protected javax.json.JsonObjectBuilder showChecksum​(Checksum checksum)
      • showDocument

        protected javax.json.JsonObjectBuilder 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 javax.json.JsonObjectBuilder showIdentifier​(Identifier identifier)
      • showMessage

        protected javax.json.JsonObjectBuilder showMessage​(Message message)
      • showSignature

        protected javax.json.JsonObjectBuilder showSignature​(Signature signature)
      • valueToString

        protected String valueToString​(Object obj)
      • showProperty

        protected javax.json.JsonObjectBuilder showProperty​(Property property)
      • showScalarProperty

        protected javax.json.JsonObjectBuilder showScalarProperty​(Property property)
      • showListProperty

        protected javax.json.JsonObjectBuilder showListProperty​(Property property)
      • showSetProperty

        protected javax.json.JsonObjectBuilder showSetProperty​(Property property)
      • showMapProperty

        protected javax.json.JsonObjectBuilder showMapProperty​(Property property)
      • propertyLength

        protected int propertyLength​(Property property)
        Gives the length (number of elements) of a property
      • showArrayProperty

        protected javax.json.JsonObjectBuilder showArrayProperty​(Property property)
      • showTextMDMetadata

        protected javax.json.JsonObjectBuilder showTextMDMetadata​(TextMDMetadata textMD)
      • showNisoImageMetadata

        protected javax.json.JsonObjectBuilder 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
      • showNisoImageMetadata

        protected javax.json.JsonObjectBuilder showNisoImageMetadata​(NisoImageMetadata niso,
                                                                     boolean bMix10)
        Display the NISO image metadata formatted according to the MIX 1.0 schema.
      • showNisoBasicDigitalObjectInformation

        protected javax.json.JsonObjectBuilder showNisoBasicDigitalObjectInformation​(NisoImageMetadata niso,
                                                                                     boolean bMix10)
      • showNisoBasicImageInformation

        protected javax.json.JsonObjectBuilder showNisoBasicImageInformation​(NisoImageMetadata niso,
                                                                             boolean bMix10)
      • showNisoImageCaptureMetadata

        protected javax.json.JsonObjectBuilder showNisoImageCaptureMetadata​(NisoImageMetadata niso,
                                                                            boolean bMix10)
      • showNisoImageAssessmentMetadata

        protected javax.json.JsonObjectBuilder showNisoImageAssessmentMetadata​(NisoImageMetadata niso,
                                                                               boolean bMix10)
      • showChangeHistory

        protected javax.json.JsonObjectBuilder showChangeHistory​(NisoImageMetadata niso,
                                                                 boolean bMix10)
      • showAESAudioMetadata

        protected javax.json.JsonObjectBuilder showAESAudioMetadata​(AESAudioMetadata aes)
        Display the audio metadata formatted according to the AES schema.
        Parameters:
        aes - AES audio metadata
        Returns:
        Json
      • showArray

        protected javax.json.JsonArrayBuilder showArray​(int[] iarray)
      • showArray

        protected javax.json.JsonArrayBuilder showArray​(double[] darray)
      • showArray

        protected javax.json.JsonArrayBuilder showArray​(String[] sarray)
      • showArray

        protected javax.json.JsonArrayBuilder showArray​(Rational[] rarray)
      • showRational

        protected javax.json.JsonArrayBuilder showRational​(Rational r)