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