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 Summary
All 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
-
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:
toStringin classjava.lang.Object
-
-