@Override public String toString(){
  StringBuffer buf=new StringBuffer();
  buf.append("[");
  buf.append(attributeId);
  buf.append(": ");
  if (hasValue()) {
    buf.append(textValue);
  }
  if (hasSubElements()) {
    buf.append(subElements.toString());
  }
  if (hasSubAttributes()) {
    buf.append(subAttributes.toString());
  }
  buf.append("]");
  return buf.toString();
}

@ Override public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( "[" ) ; buf . append ( attributeId ) ; buf . append ( ": " ) ; if ( hasValue ( ) ) { buf . append ( textValue ) ; } if ( hasSubElements ( ) ) { buf . append ( subElements . toString ( ) ) ; } if ( hasSubAttributes ( ) ) { buf . append ( subAttributes . toString ( ) ) ; } buf . append ( "]" ) ; return buf . toString ( ) ; }
generates a string representation of this attribute . the output of this method is in no particular format .
