@Override
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("name: ").append(this.getName()).append(", code: ").append(this.getCode()).append(", vendor: ").append(this.getVendorId()).append(", weak: ")
.append(this.isWeak()).append(", grouped: ").append(this.isGrouped()).append(", type: ").append(this.getType()).append(", multiplicity: ")
.append(this.getMultiplicityIndicator());
if (this.isGrouped()) {
for (AvpRepresentation child : this.getChildren()) {
String childStr = child.toString().replace("\n", "\n---");
sb.append("\n---" + childStr);
}
}
return sb.toString();
}