混合内容の場合、Sequence にはテキストを追加するための固有の API である addText(...) があります。
それ以外のすべての API は、テキストに対して Property の場合と同じように機能します。getProperty(int) API は、混合内容テキスト・データについて、ヌルを返します。以下の混合内容コードの例は、DataObject からのすべての混合内容テキストを印刷するために使用できます。
DataObject mixedContent = ... Sequence seq = mixedContent.getSequence(); for (int i=0; i < seq.size(); i++) { Property prop = seq.getProperty(i); Object value = seq.getValue(i); if (prop == null) { System.out.println("Found mixed content text: "+value); } else { System.out.println("Found Property "+prop.getName()+": "+value); } }