Class Document

java.lang.Object
com.denodo.commons.Document
All Implemented Interfaces:
Serializable

public class Document extends Object implements Serializable
Represents a tuple of retrieved data. It is composed of fields in the form of pairs key:value.
See Also:
  • Field Details

    • serialVersionUID

      protected static final long serialVersionUID
      For interoperability with possible future changes.
      See Also:
  • Constructor Details

    • Document

      public Document()
      Constructs an empty Document.
    • Document

      public Document(Document doc)
      Constructs a new Document with the same fields as the specified Document.
      Parameters:
      doc - the Document whose fields are to be placed in this Document.
  • Method Details

    • get

      public Object get(String key)
      Document fields are case-insensitive. A new key is compared to existing keys by comparing newKey.toString().toUpperCase() to the uppercase values in the current KeySet..
    • put

      public Object put(String key, Object value)
      Document fields are case-insensitive. As they are added to the Document, keys are converted to all uppercase.
    • remove

      public void remove(String key)
    • getFields

      public Map<String,Object> getFields()
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object