text.append(key);
return text.toString();
}
private void setLocation(Map.Entry<?, ?> entry) {
XmlSourceLocation location = null;
Object key = entry.getKey();
if (key instanceof BeanMetadataElement) {
Object source = ((BeanMetadataElement) key).getSource();
if (source instanceof XmlSourceLocation) {
location = new XmlSourceLocation((XmlSourceLocation) source);
}
}
Object value = entry.getValue();
if (value instanceof BeanMetadataElement) {
Object source = ((BeanMetadataElement) value).getSource();
if (source instanceof XmlSourceLocation) {
if (location == null) {
location = new XmlSourceLocation((XmlSourceLocation)
source);
} else {
location.setEndLine(((XmlSourceLocation) source)
.getEndLine());
}
}
}
if (location != null) {
location.setLocalName("<entry");
setElementSourceLocation(location);
}
}