public virtual string ToXml(int offset) { StringBuilder buffer = new StringBuilder(); AceElement.AppendOffset(buffer, offset); buffer.Append("<" + mentionType + "_mention_argument REFID=\"" + mContent.GetId() + "\" ROLE=\"" + mRole + "\">\n"); //buffer.append(getContent().toXml(offset + 2)); AceCharSeq ext = GetContent().GetExtent(); buffer.Append(ext.ToXml("extent", offset + 2)); buffer.Append("\n"); AceElement.AppendOffset(buffer, offset); buffer.Append("</" + mentionType + "_mention_argument>"); return(buffer.ToString()); }
public virtual void AddEntityMention(AceEntityMention em) { mEntityMentions[em.GetId()] = em; }