public class RtfMapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) RtfDocument |
rtfDoc
The RtfDocument this RtfMapper belongs to
|
Constructor and Description |
---|
RtfMapper(RtfDocument doc)
Constructs a RtfMapper for a RtfDocument
|
Modifier and Type | Method and Description |
---|---|
RtfBasicElement |
mapElement(Element element)
Takes an Element subclass and returns the correct RtfBasicElement
subclass, that wraps the Element subclass.
|
RtfDocument rtfDoc
public RtfMapper(RtfDocument doc)
doc
- The RtfDocument this RtfMapper belongs topublic RtfBasicElement mapElement(Element element) throws DocumentException
element
- The Element to wrapDocumentException