com.abra.j2xb.annotations
Annotation Type MOPersistentDependentBean


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface MOPersistentDependentBean

Defines a mapping of a Java Bean to an XML element. The XML element will be defined inline within a parent XML complex type. In order to map a Java bean to a top level element, use the annotation MOPersistentBean annotation instead.

The bean properties can be mapped to XML using the annotations MOProperty and MODelegateProperty.

Support for non-default constructors and factories is provided via the MOConstructionDescriptor annotation.

Declaring a global XML complex type which will be the bean element XML type is possible with the use of the MOXmlGlobalType annotation. If not set, the bean complex type will be inline with the XML element definition.

Control of the namespace the XML element (and XML type) of the bean is provided using the MOXmlNamespace annotation or the MOXmlNamespaceRef annotation. If niether annotation is set, the class package name will be used as the namespace.

Since:
JDK1.5
Version:
1.0, May 1, 2008
Author:
Yoav Abrahami
See Also:
MOProperty, MODelegateProperty, MOConstructionDescriptor, MOXmlGlobalType, MOXmlNamespace, MOXmlNamespaceRef

Optional Element Summary
 java.lang.String xmlTypeName
          the name of the XML element. if not set, the class name is used as the element name.
 

xmlTypeName

public abstract java.lang.String xmlTypeName
the name of the XML element. if not set, the class name is used as the element name.

Default:
""


Copyright © 2008. All Rights Reserved.