java.lang.Object
com.saperion.ngc.resultset.multiselect.Content

public final class Content extends Object
Represents a single content of a document.
  • Method Details

    • create

      public static Content create()
      Creates a new Content.
      Returns:
      instance of Content.
    • documentName

      public Content documentName(String name)
      Sets the document name of this content.
      Parameters:
      name - document name
      Returns:
      current instance
    • id

      public Content id(String id)
      Sets the id (HDOC) of the document this content belongs to.
      Parameters:
      id - document id
      Returns:
      current instance of Content
    • element

      public Content element(int element)
      Sets the element number of this content.
      Parameters:
      element - element number
      Returns:
      current instance of Content
    • stream

      public Content stream(InputStream stream)
      Sets the stream for this content.
      Parameters:
      stream - stream
      Returns:
      current instance of Content
    • filename

      public Content filename(String filename)
      Sets the filename of this content.
      Parameters:
      filename - filename
      Returns:
      current instance of Content
    • loaded

      public boolean loaded()
      Returns:
      true if the content's stream was loaded (otherwise the stream will be null).
    • getId

      public String getId()
      Returns:
      id (HDOC) of the document this content belongs to
    • getElement

      public int getElement()
      Returns:
      element number of this content
    • getFilename

      public String getFilename()
      Returns:
      filename of this content
    • getStream

      public InputStream getStream()
      Returns:
      stream of this content
    • getDocumentName

      public String getDocumentName()
      Returns:
      document name;
    • toString

      public String toString()
      Overrides:
      toString in class Object