com.abra.j2xb.annotations
Annotation Type MODelegateProperty


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface MODelegateProperty

Defines a Bean property that is flattened in the XML representation.

A property that is mapped with this annotation is considered as a delegate - the property itself is not written to any XML element, but the properties of the Bean contained by the property are mapped. All the properties of the child object are added as properties of the parent object.

Any annotation such as MOPersistentBean or MOXmlGlobalType at the property type Bean are ignored.

The ordering of the properties of the delegate is internally determined by the annotations on the delegate class (ordering between the properties of the delegate). The location where the delegate properties are included in the enclusing class are determined by the xmlOrder() member.

Note that nested delegates are supported (delegate bean who itself has delegate beans).

Since:
JDK1.5
Version:
1.0, May 1, 2008
Author:
Yoav Abrahami

Required Element Summary
 int xmlOrder
          The XML ordering of the delegate properties in the parent bean XML representation
 

Element Detail

xmlOrder

public abstract int xmlOrder
The XML ordering of the delegate properties in the parent bean XML representation



Copyright © 2008. All Rights Reserved.