- All Implemented Interfaces:
- ITool, IVariable, java.io.Serializable, java.lang.Cloneable
public class DocumentRelationshipTool
extends Tool
Tool to handle relationship file of DOCX template.
$documentRelationshipTool.generateID(sectionID, originalID)
The id and target path that refer to relationship file of child template will be changed.
In case the relationship file is static file (image, object, none-xml file, etc.),
The new id and new target path will be updated
Then the new id and DocumentRelationship will be added to StaticRelationshipMap of child DocumentInfo.
In case the relationship file is dynamic file (The xml file that contain velocity syntax),
The file will be evaluated and the content after evaluated will be added to dynamic DocumentRelationship
Then the new id and dynamic DocumentRelationship will be added to DynamicRelationshipMap of child DocumentInfo.
- Author:
- uraiwan_i
- See Also:
- Serialized Form