示例#1
0
  public TagletOutput getTagletOutput(Tag tag, TagletWriter writer)
      throws IllegalArgumentException {

    TagletOutput out = writer.getTagletOutputInstance();
    out.setOutput(toString(tag));
    return out;
  }
示例#2
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;
  }