// this method every time we add a field.
StringBuffer results = new StringBuffer();
Iterator attributes = attributeList().iterator();
while (attributes.hasNext()) {
Attribute attribute = (Attribute) attributes.next();
if (attribute instanceof Parameter) {
StringBuffer value = new StringBuffer("\n Value: ");
try {
value.append(((Parameter) attribute).getToken().toString());
} catch (Exception ex) {
value.append(ex.toString());
}
String className = "Parameter";
if (attribute instanceof StringParameter) {
className = "StringParameter";
}
results.append(className + ": " + attribute.getName()
+ "\n Expression: "
+ ((Parameter) attribute).getExpression()
+ value.toString());
} else {
results.append("Attribute: " + attribute.getName());
}
Attribute tooltipAttribute = ((NamedObj) attribute)
.getAttribute("tooltip");
if ((tooltipAttribute != null)
&& tooltipAttribute instanceof Documentation) {
results