Class Content
java.lang.Object
com.saperion.ngc.resultset.multiselect.Content
Represents a single content of a document.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Content
create()
Creates a new Content.documentName
(String name) Sets the document name of this content.element
(int element) Sets the element number of this content.Sets the filename of this content.int
getId()
Sets the id (HDOC) of the document this content belongs to.boolean
loaded()
stream
(InputStream stream) Sets the stream for this content.toString()
-
Method Details
-
create
Creates a new Content.- Returns:
- instance of Content.
-
documentName
Sets the document name of this content.- Parameters:
name
- document name- Returns:
- current instance
-
id
Sets the id (HDOC) of the document this content belongs to.- Parameters:
id
- document id- Returns:
- current instance of Content
-
element
Sets the element number of this content.- Parameters:
element
- element number- Returns:
- current instance of Content
-
stream
Sets the stream for this content.- Parameters:
stream
- stream- Returns:
- current instance of Content
-
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
- Returns:
- id (HDOC) of the document this content belongs to
-
getElement
public int getElement()- Returns:
- element number of this content
-
getFilename
- Returns:
- filename of this content
-
getStream
- Returns:
- stream of this content
-
getDocumentName
- Returns:
- document name;
-
toString
-