Package com.bfo.box

Class JsonContainerBox

Direct Known Subclasses:
C2PA_AssertionSchema

public class JsonContainerBox extends JUMBox
A JsonContainerBox is a JUMBF wrapper around a single JsonBox. It is defined in ISO19566-5 Appendix B.4
Since:
5
  • Constructor Details

    • JsonContainerBox

      public JsonContainerBox()
      Create a new uninitialized box, for loading. Don't call this constructor
    • JsonContainerBox

      public JsonContainerBox(String label, Json json)
      Create a new JsonContainerBox
      Parameters:
      label - the label
      json - the Json object, which will be initialized to an empty map if null
  • Method Details

    • getBox

      public JsonBox getBox()
      Return the JsonBox child of this container
      Returns:
      the JsonBox
    • json

      public final Json json()
      Return the JSON object stored in the JsonBox
      Returns:
      the json