com.abra.j2xb.annotations
Annotation Type MOPersistentBean


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

Defines a mapping of a Java Bean to a top level XML element.

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

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

Element Detail

xmlName

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



Copyright © 2008. All Rights Reserved.