}
if(this.elementName.equals("subject")){
doc.addSubject(this.text);
}
} else {
RtfDocument rtfDoc = this.rtfParser.getRtfDocument();
if(rtfDoc != null) {
if(this.elementName.equals("author")){
Meta meta = new Meta(this.elementName, this.text);
RtfInfoElement elem = new RtfInfoElement(rtfDoc, meta);
rtfDoc.getDocumentHeader().addInfoElement(elem);
}
if(this.elementName.equals("title")){
Meta meta = new Meta(this.elementName, this.text);
RtfInfoElement elem = new RtfInfoElement(rtfDoc, meta);
rtfDoc.getDocumentHeader().addInfoElement(elem);
}
if(this.elementName.equals("subject")){
Meta meta = new Meta(this.elementName, this.text);
RtfInfoElement elem = new RtfInfoElement(rtfDoc, meta);
rtfDoc.getDocumentHeader().addInfoElement(elem);
}
}
}
this.setToDefaults();
}