Annotation Interface AnyAttribute


@Target({METHOD,PARAMETER}) @Retention(RUNTIME) @Documented public @interface AnyAttribute
Call this method, when an attribute is encountered which does not have any specific Attribute mapping. The method signature has to have 2 parameters: - String attributeName - T attributeValue Type conversion for T: Usually, if you map a specific attribute using the @Attribute annotation, the attribute value is transformed into the method parameter type (e.g. String, int, boolean). For this method, the attribute value is also transformed into the declared method parameter type. So, if you expect all attributes handled by this method to be of the same type (e.g. int or boolean), you can use this specific type in the method signature. However, if you expect the attribute values to be of various different types, the unmarshaller can't do the parsing for you. In this case, you should read the values as `String` and then parse them by yourself where needed.