Exemplo n.º 1
0
  /* (non-Javadoc)
   * @see javax.servlet.jsp.tagext.TagExtraInfo#getVariableInfo(javax.servlet.jsp.tagext.TagData)
   */
  public VariableInfo[] getVariableInfo(TagData data) {
    String type = data.getAttributeString("type");
    String s = data.getAttributeString("id");
    boolean declare = true;

    if (s == null) {
      s = data.getAttributeString("ref");
      declare = false;
    }

    VariableInfo vinfo =
        new VariableInfo(
            s,
            type == null ? "org.synthful.util.HashTreeNode" : type,
            declare,
            VariableInfo.AT_END);
    VariableInfo[] info = {vinfo};
    return info;
  }
 public VariableInfo[] getVariableInfo(TagData data) {
   VariableInfo info = new VariableInfo(data.getId(), "AttachmentInfo", true, VariableInfo.NESTED);
   VariableInfo[] varInfo = {info};
   return varInfo;
 }