if (eventType == XMLStreamConstants.START_ELEMENT) {
QName elementQName = reader.getName();
String elementName = elementQName.toString();
if (ELEMENT_COLUMN_ENTRY.equals(elementName)) {
ColumnEntry colEntry = new ColumnEntry();
colEntry.setName(reader.getAttributeValue(null, ATTRIBUTE_NAME));
String width = reader.getAttributeValue(null, ATTRIBUTE_WIDTH);
try {
colEntry.setWidth(Integer.valueOf(width));
}
catch (NumberFormatException e) {
// just don't set the width
}
colEntry.setResizable(Boolean.valueOf(reader.getAttributeValue(null,
ATTRIBUTE_RESIZABLE)));
colEntry.setEnable(Boolean.valueOf(reader
.getAttributeValue(null, ATTRIBUTE_ENABLE)));
phase.getColumnEntry().add(colEntry);
}
}