Class Content
- java.lang.Object
- 
- com.saperion.ngc.resultset.multiselect.Content
 
- 
 public final class Content extends java.lang.ObjectRepresents a single content of a document.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Contentcreate()Creates a new Content.ContentdocumentName(java.lang.String name)Sets the document name of this content.Contentelement(int element)Sets the element number of this content.Contentfilename(java.lang.String filename)Sets the filename of this content.java.lang.StringgetDocumentName()intgetElement()java.lang.StringgetFilename()java.lang.StringgetId()java.io.InputStreamgetStream()Contentid(java.lang.String id)Sets the id (HDOC) of the document this content belongs to.booleanloaded()Contentstream(java.io.InputStream stream)Sets the stream for this content.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
createpublic static Content create() Creates a new Content.- Returns:
- instance of Content.
 
 - 
documentNamepublic Content documentName(java.lang.String name) Sets the document name of this content.- Parameters:
- name- document name
- Returns:
- current instance
 
 - 
idpublic Content id(java.lang.String id) Sets the id (HDOC) of the document this content belongs to.- Parameters:
- id- document id
- Returns:
- current instance of Content
 
 - 
elementpublic Content element(int element) Sets the element number of this content.- Parameters:
- element- element number
- Returns:
- current instance of Content
 
 - 
streampublic Content stream(java.io.InputStream stream) Sets the stream for this content.- Parameters:
- stream- stream
- Returns:
- current instance of Content
 
 - 
filenamepublic Content filename(java.lang.String filename) Sets the filename of this content.- Parameters:
- filename- filename
- Returns:
- current instance of Content
 
 - 
loadedpublic boolean loaded() - Returns:
- true if the content's stream was loaded (otherwise the stream will be null).
 
 - 
getIdpublic java.lang.String getId() - Returns:
- id (HDOC) of the document this content belongs to
 
 - 
getElementpublic int getElement() - Returns:
- element number of this content
 
 - 
getFilenamepublic java.lang.String getFilename() - Returns:
- filename of this content
 
 - 
getStreampublic java.io.InputStream getStream() - Returns:
- stream of this content
 
 - 
getDocumentNamepublic java.lang.String getDocumentName() - Returns:
- document name;
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-