getPrevEntity (NotesMIMEEntity - JavaScript)

マルチパートエンティティ内で現在の MIME エンティティの直前の MIME エンティティを返します。

定義場所

NotesMIMEEntity

構文

getPrevEntity() : NotesMIMEEntity

getPrevEntity(search:int) : NotesMIMEEntity

パラメータ 説明
search
  • NotesMIMEEntity.SEARCH_DEPTH (1724) (デフォルト) は子エンティティを検索してから同じレベルを検索します。
  • NotesMIMEEntity.SEARCH_BREADTH (1723) は同じレベルを検索してから子エンティティを検索します。
戻り値 説明
NotesMIMEEntity 前の MIME エンティティまたは null です。

このボタンは、マルチパートエンティティの最後の分岐の終端から、すべてのエンティティを逆順に取得します。
// Do not automatically convert MIME to rich text
session.setConvertMIME(false);
var mime:NotesMIMEEntity = currentDocument.getDocument().getMIMEEntity();
if (mime != null) {
	// Drill down to last child at bottom of first branch
	var child:NotesMIMEEntity = mime.getNextEntity(NotesMIMEEntity.SEARCH_BREADTH);
	while (child != null) {
		mime = child;
		child = mime.getNextEntity(NotesMIMEEntity.SEARCH_BREADTH);
	}
	// Get content of all children at bottom level
	// of first branch in reverse order
	while (mime != null) {
		requestScope.status += mime.getContentAsText() + "¥n";
		mime = mime.getPrevEntity(NotesMIMEEntity.SEARCH_BREADTH);
	}
} else {
	requestScope.status = "Not MIME";
}
// Restore conversion
session.setConvertMIME(true);

言語間の参照

LotusScript® NotesMIMEEntity クラスの getPrevEntity メソッド

Java™ MIMEEntity クラスの getPrevEntity メソッド