Exemplo n.º 1
0
  public String stringify() {
    StringBuffer sb = new StringBuffer();

    try {
      if (!this.loaded) load();

      sb.append(super.stringify());

      sb.append("Tag ID   : " + this.tagID + linesep);
      sb.append("Tag Type : " + this.tagType + linesep);
      sb.append("Tag OID  : " + this.OID + linesep);

      sb.append("From obj : " + this.getTagEntity().toString() + linesep);

      sb.append("Entries  : " + keyval.size() + " ");
      Iterator<Entry<String, String>> it = keyval.entrySet().iterator();
      while (it.hasNext()) {
        Map.Entry<String, String> entry = (Map.Entry<String, String>) it.next();
        sb.append("(" + entry.getKey() + " = " + entry.getValue() + ")");
        if (it.hasNext()) sb.append(", ");
      }
    } catch (Exception e) {

    } finally {
      // sb.append( super.stringify() );
      sb.insert(0, super.stringify());
    }

    return sb.toString();
  }