This class tries to hide some of the complexity
of the underlying file format, but as it's not a
mature and stable API yet, certain parts of the
XML structure come through. You'll therefore almost
certainly need to refer to the OOXML specifications
from
http://www.ecma-international.org/publications/standards/Ecma-376.htm
at some point in your use.

Enforce the Comments protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to comments (w:edit="comments")

Enforce the Filling Forms protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to forms (w:edit="forms")

Enforces the readOnly protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to readOnly (w:edit="readOnly")

Enforce the Tracked Changes protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to trackedChanges (w:edit="trackedChanges")

insertNewParagraph

Add a new paragraph at position of the cursor. The cursor must be on the
XmlCursor.TokenType.START tag of an subelement
of the documents body. When this method is done, the cursor passed as
parameter points to the XmlCursor.TokenType.END
of the newly inserted paragraph.

isEnforcedUpdateFields

public boolean isEnforcedUpdateFields()

enforceReadonlyProtection

public void enforceReadonlyProtection()

Enforces the readOnly protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to readOnly (w:edit="readOnly")

password - the plaintext password, if null no password will be applied

hashAlgo - the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
if null, it will default default to sha1

enforceFillingFormsProtection

public void enforceFillingFormsProtection()

Enforce the Filling Forms protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to forms (w:edit="forms")

password - the plaintext password, if null no password will be applied

hashAlgo - the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
if null, it will default default to sha1

enforceCommentsProtection

public void enforceCommentsProtection()

Enforce the Comments protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to comments (w:edit="comments")

password - the plaintext password, if null no password will be applied

hashAlgo - the hash algorithm - only md2, m5, sha1, sha256, sha384 and sha512 are supported.
if null, it will default default to sha1

enforceTrackedChangesProtection

public void enforceTrackedChangesProtection()

Enforce the Tracked Changes protection.
In the documentProtection tag inside settings.xml file,
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to trackedChanges (w:edit="trackedChanges")

getPart

returns the Part, to which the body belongs, which you need for adding relationship to other parts
Actually it is needed of the class XWPFTableCell. Because you have to know to which part the tableCell
belongs.