IBM Information Integrator for Content V8.2 APIs

com.ibm.mm.beans.infomining
Class CMBTextDocument

java.lang.Object
  |
  +--com.ibm.mm.beans.infomining.CMBTextDocument

public class CMBTextDocument
extends java.lang.Object

Represents the textual content of an arbitrary document.


Constructor Summary
CMBTextDocument(java.lang.String content)
          Creates a new text document with the specified content.
CMBTextDocument(java.lang.String content, java.lang.String name)
          Creates a new text document with the specified content and a name.
CMBTextDocument(java.lang.String content, java.lang.String name, java.lang.String language)
          Creates a new text document with the specified content, a name and the language.
 
Method Summary
 java.lang.String getContent()
          Returns the content of this document.
 java.lang.String getLanguage()
          Returns the language code of this document.
 java.lang.String getName()
          Returns the name of this document.
 void setLanguage(java.lang.String language)
          Sets the language of this document.
 void setName(java.lang.String name)
          Sets the name of this document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBTextDocument

public CMBTextDocument(java.lang.String content)
Creates a new text document with the specified content.
Parameters:
content - the content of the document to be created

CMBTextDocument

public CMBTextDocument(java.lang.String content,
                       java.lang.String name)
Creates a new text document with the specified content and a name.
Parameters:
content - the content of the document to be created
name - the name of the document to be created

CMBTextDocument

public CMBTextDocument(java.lang.String content,
                       java.lang.String name,
                       java.lang.String language)
                throws CMBInvalidLanguageCodeException
Creates a new text document with the specified content, a name and the language.
Method Detail

getContent

public java.lang.String getContent()
Returns the content of this document.
Returns:
the content of this document

setLanguage

public void setLanguage(java.lang.String language)
                 throws CMBInvalidLanguageCodeException
Sets the language of this document. The language codes look as follows: _ or just where is a lowercase string and is an uppercase string, e.g. "en_US", "de_CH", or "de, "ja".
Parameters:
language - the language of this document
See Also:
getLanguage()

getLanguage

public java.lang.String getLanguage()
Returns the language code of this document. The language codes look as follows: _ or just where is a lowercase string and is an uppercase string, e.g. "en_US", "de_CH", or "de, "ja".
See Also:
setLanguage(String)

setName

public void setName(java.lang.String name)
Sets the name of this document.

getName

public java.lang.String getName()
Returns the name of this document.


IBM Information Integrator for Content V8.2 APIs

© Copyright International Business Machines Corporation 1996, 2003 IBM Corp. All rights reserved.