Functions to manage content and indexed content

Here are some commonly used functions that manage content and indexed content. You can find similar functions to manage properties, custom properties, etc.

To attach content and indexed content to a document, use:


// Declared in class IxiaDocument:
public void AttachContent(java.lang.String newContent)
public abstract void SetIndexedContent(java.lang.String indexContent)

To store a document in a docbase, including the document’s content and indexed content, use:


// Declared in class IxiaDocumentServices.
// <addFlags> must contain at least the following flags:
//     TEXTML_DOCUMENT_CONTENT | 
//     TEXTML_DOCUMENT_PROPERTIES
public final TextmlserverError[] SetDocuments(java.util.List list,
                                              long addFlags)
                                       throws TextmlserverError

To retrieve a document from a docbase, including the document’s content and indexed content, use:


// Declared in class IxiaDocumentServices:
// <getFlags> must contain at least the following flags: 
//     TEXTML_DOCUMENT_CONTENT | 
//     TEXTML_DOCUMENT_INDEXEDCONTENT
public abstract IxiaDocumentServices.Result[] 
                       GetDocuments(java.util.List list,
                                    long getFlags,
                                    long documentType)
                           throws TextmlserverError

To return a document’s content and indexed content from a document, use:


// Declared in class IxiaDocument:
public abstract IxiaDocument.Content GetContent()
public abstract java.lang.String GetIndexedContent()