Class AbstractTransceiver

    • Constructor Detail

      • AbstractTransceiver

        public AbstractTransceiver​(String id,
                                   MetaData addressFields,
                                   MetaData resultFields)
        Construct a new AbstractTransceiver.
        Parameters:
        id - String; the id of the new AbstractTransceiver
        addressFields - MetaData; description of the elements of an address that the get method of this AbstractTransceiver can handle
        resultFields - MetaData; description of the result of the get method
    • Method Detail

      • getAddressFields

        public final MetaData getAddressFields()
        Specification of arguments needed in a request.
        Specified by:
        getAddressFields in interface TransceiverInterface
        Returns:
        MetaData; the specification of arguments needed in a request
      • getResultFields

        public final MetaData getResultFields()
        Report the specification of a result of the transceiver.
        Specified by:
        getResultFields in interface TransceiverInterface
        Returns:
        MetaData; the specification of a result from the transceiver
      • verifyMetaData

        public static String verifyMetaData​(MetaData metaData,
                                            Object[] address)
        Verify the composition of an Object[].
        Parameters:
        metaData - MetaData; the expected composition
        address - Object[]; the object array that must be verified
        Returns:
        String; null if metaData is OK; descriptive text on error