com.abra.j2xb.annotations.xmlAnnotations
Annotation Type MOXmlNamespace


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface MOXmlNamespace

Defines the namespace for a global XML element or global XML type. When mapping a bean or a property that results in a XML element or global XML type, this annotation can be used to indicate the XML namespace where the XML element / type is created.

Since:
JDK1.5
Version:
1.0, Dec 10, 2007
Author:
Yoav Abrahami
See Also:
MOXmlNamespaceRef, MOXmlGlobalType

Required Element Summary
 java.lang.String value
          The namespace the XML element or XML type belongs too.
 
Optional Element Summary
 java.lang.String preferedPrefix
          A suggested prefix for the namespace.
 

Element Detail

value

public abstract java.lang.String value
The namespace the XML element or XML type belongs too.

preferedPrefix

public abstract java.lang.String preferedPrefix
A suggested prefix for the namespace. If not specified, a namespace prefix will be generated authomatically when required. If two different namespaces suggest the same prefix, one of the two will be changed authomatically.

Default:
""


Copyright © 2008. All Rights Reserved.