Class Content
- java.lang.Object
-
- com.saperion.ngc.resultset.multiselect.Content
-
public final class Content extends java.lang.Object
Represents a single content of a document.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Content
create()
Creates a new Content.Content
documentName(java.lang.String name)
Sets the document name of this content.Content
element(int element)
Sets the element number of this content.Content
filename(java.lang.String filename)
Sets the filename of this content.java.lang.String
getDocumentName()
int
getElement()
java.lang.String
getFilename()
java.lang.String
getId()
java.io.InputStream
getStream()
Content
id(java.lang.String id)
Sets the id (HDOC) of the document this content belongs to.boolean
loaded()
Content
stream(java.io.InputStream stream)
Sets the stream for this content.java.lang.String
toString()
-
-
-
Method Detail
-
create
public static Content create()
Creates a new Content.- Returns:
- instance of Content.
-
documentName
public Content documentName(java.lang.String name)
Sets the document name of this content.- Parameters:
name
- document name- Returns:
- current instance
-
id
public 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
-
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(java.io.InputStream stream)
Sets the stream for this content.- Parameters:
stream
- stream- Returns:
- current instance of Content
-
filename
public Content filename(java.lang.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 java.lang.String getId()
- Returns:
- id (HDOC) of the document this content belongs to
-
getElement
public int getElement()
- Returns:
- element number of this content
-
getFilename
public java.lang.String getFilename()
- Returns:
- filename of this content
-
getStream
public java.io.InputStream getStream()
- Returns:
- stream of this content
-
getDocumentName
public java.lang.String getDocumentName()
- Returns:
- document name;
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-