Class OpaDocument


  • public final class OpaDocument
    extends java.lang.Object
    Class wrapping OPA document content and path to it
    • Constructor Summary

      Constructors 
      Constructor Description
      OpaDocument​(java.lang.String path, java.lang.String content)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getContent()
      Content of the document (JSON format)
      java.lang.String getPath()
      Path to the document (eg.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpaDocument

        @ConstructorProperties({"path","content"})
        public OpaDocument​(java.lang.String path,
                           java.lang.String content)
        Parameters:
        path - Path to the document (eg. "this/is/path/to/document")
        content - Content of the document (JSON format)
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Path to the document (eg. "this/is/path/to/document")
      • getContent

        public java.lang.String getContent()
        Content of the document (JSON format)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object