org.codehaus.enunciate.qname
Annotation Type XmlQNameEnumValue


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface XmlQNameEnumValue

Customize how an enum constant is mapped to a QName. See QName Enums.

Author:
Ryan Heaton

Optional Element Summary
 boolean exclude
          Exclude this enum constant from the known QName enums.
 java.lang.String localPart
          The QName local part.
 java.lang.String namespace
          The namespace for this QName enum value.
 

namespace

public abstract java.lang.String namespace
The namespace for this QName enum value. If left unspecified (i.e. the value is "##default"), then standard JAXB namespacing applies, which looks like this:
  1. If the enclosing class has XmlQNameEnum annotation and its namespace value is not "##default", then the namespace of the enclosing class.
  2. If the enclosing package has XmlSchema annotation, and its elementFormDefault is QUALIFIED, then the namespace of the enclosing package.
  3. Otherwise "" (which produces unqualified element in the default namespace).

Returns:
The namespace for this QName enumeration.
Default:
"##default"

localPart

public abstract java.lang.String localPart
The QName local part. If the value is "##default" the local part will be the name of the enum constant.

Returns:
The QName local part.
Default:
"##default"

exclude

public abstract boolean exclude
Exclude this enum constant from the known QName enums.

Returns:
Whether this enum constant should be excluded from the list of known QName constants.
Default:
false