Example #1
0
 /** {@inheritDoc} */
 public Content getTagletOutput(Tag tag, TagletWriter writer) {
   ArrayList inlineTags = new ArrayList();
   inlineTags.add(new TextTag(tag.holder(), "<b>"));
   inlineTags.addAll(Arrays.asList(tag.inlineTags()));
   inlineTags.add(new TextTag(tag.holder(), "</b>"));
   return writer.commentTagsToOutput(tag, (Tag[]) inlineTags.toArray(new Tag[] {}));
 }
Example #2
0
  public TagletOutput getTagletOutput(Tag tag, TagletWriter writer)
      throws IllegalArgumentException {

    TagletOutput out = writer.getTagletOutputInstance();
    out.setOutput(toString(tag));
    return out;
  }
Example #3
0
  public TagletOutput getTagletOutput(Doc holder, TagletWriter writer)
      throws IllegalArgumentException {

    TagletOutput out = writer.getTagletOutputInstance();
    Tag[] tags = holder.tags(getName());
    if (tags.length == 0) {
      return null;
    }
    out.setOutput(toString(tags[0]));
    return out;
  }