readAttributes( input, obj );
readElements( input, obj );
}
private void readAttributes( final javolution.xml.XMLFormat.InputElement input, final T obj ) throws XMLStreamException {
final Attributes attributes = input.getAttributes();
for ( int i = 0; i < attributes.getLength(); i++ ) {
final CharArray name = attributes.getLocalName( i );
if ( !name.equals( "class" ) && !name.equals( JavolutionTranscoder.REFERENCE_ATTRIBUTE_ID ) ) {
final Field field = _attributesMap.get( name.toString() );
if ( field != null ) {
setFieldFromAttribute( obj, field, input );
} else {
LOG.warn( "Did not find field " + name + ", attribute value is " + attributes.getValue( i ) );
}
}
}
}