|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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.
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. |
public abstract java.lang.String xmlTypeName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||