Class CustomPreview


  • @Beta
    public class CustomPreview
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomPreview​(java.lang.String header, java.util.Optional<RemoteObjectId> bodyGetterId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<RemoteObjectId> getBodyGetterId()
      If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.
      java.lang.String getHeader()
      The JSON-stringified result of formatter.header(object, config) call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomPreview

        public CustomPreview​(java.lang.String header,
                             java.util.Optional<RemoteObjectId> bodyGetterId)
    • Method Detail

      • getHeader

        public java.lang.String getHeader()
        The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
      • getBodyGetterId

        public java.util.Optional<RemoteObjectId> getBodyGetterId()
        If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.