}
// Run the query, and display results:
System.out.println("+ attributes: ");
AttributeDescription attrs[] = getAttributes();
for (int i = 0 ; i < attrs.length ; i++) {
Attribute att = attrs[i].getAttribute();
if (att.checkFlag(Attribute.EDITABLE)) {
Object value = attrs[i].getValue();
if (value != null) {
if (att instanceof SimpleAttribute) {
SimpleAttribute sa = (SimpleAttribute) att;
prt.println("\t"+att.getName()+"="+
sa.pickle(attrs[i].getValue()));
} else if (att instanceof ArrayAttribute) {
ArrayAttribute aa = (ArrayAttribute) att;
String values[] = aa.pickle(attrs[i].getValue());
prt.print("\t"+att.getName()+"=");
for (int j = 0 ; j < values.length ; j++) {
if (j != 0)
prt.print(" | ");
prt.print(values[j]);
}
}
}
else
prt.println("\t"+att.getName()+" <undef>");
}
}
}