Annotation Type XmlValueExtension


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface XmlValueExtension
Purpose: Provide a way to allow classes, which contain property annotated with XmlValue to extend classes other than java.lang.Object. By default, all classes containing property annotated with XmlValue annotation are restricted to extends java.lang.Object type.

If XmlValueExtension annotation is used, there is no inheritance restriction.

Using XmlValueExtension provides a way how to achieve backward compatibility with EclipseLink 2.5.x and before.

When using xml bindings with XmlValue property, it has same behavior as when XmlValueExtension is used. It means that there is no need to specify XmlValueExtension in xml, because the behavior is provided by default.

See Also:
  • XmlValue