javax.xml.bind.annotation

Interface XmlElementDecl

public interface XmlElementDecl

Nested Class Summary

static class
XmlElementDecl.GLOBAL

Method Summary

String
defaultValue()
String
name()
String
namespace()
Class<T>
scope()
String
substitutionHeadName()
String
substitutionHeadNamespace()

Method Details

defaultValue

public String defaultValue()
            throws "\u0000"

name

public String name()
Usages and Demos :

View More Examples of name()
   1:       if (method.getName().startsWith("create")) {
   2:         XmlElementDecl decl = method.getAnnotation(XmlElementDecl.class);
   3:         Class cl = method.getReturnType();
   4:         ...
   5:         if (decl != null) {
   6:           String localName = decl.name();
   7: 
   8:           if (! "##default".equals(decl.namespace()))
   9:             namespace = decl.namespace();

View Full Code Here
   1: import javax.xml.bind.Unmarshaller;
   2: import javax.xml.bind.annotation.XmlElementDecl;
   3: import javax.xml.namespace.QName;
   4:         ...
   5:                     
   6:                     XmlElementDecl elementDecl = method.getAnnotation(XmlElementDecl.class);
   7:                     if (null != elementDecl) {
   8:         ...
   9:                         QName elementType = new QName(elementDecl.namespace(), elementDecl.name());
  10:                         registry.registerDeserializer(parentType, elementType, helper); 

View Full Code Here
   1:       if (method.getName().startsWith("create")) {
   2:         XmlElementDecl decl = method.getAnnotation(XmlElementDecl.class);
   3:         Class cl = method.getReturnType();
   4:         ...
   5:         if (decl != null) {
   6:           String localName = decl.name();
   7: 
   8:           if (! "##default".equals(decl.namespace()))
   9:             namespace = decl.namespace();

View Full Code Here

namespace

public String namespace()
            throws "##default"
Usages and Demos :

View More Examples of namespace()
   1: import javax.xml.bind.Unmarshaller;
   2: import javax.xml.bind.annotation.XmlElementDecl;
   3: import javax.xml.namespace.QName;
   4:         ...
   5:                     
   6:                     XmlElementDecl elementDecl = method.getAnnotation(XmlElementDecl.class);
   7:                     if (null != elementDecl) {
   8:         ...
   9:                         QName elementType = new QName(elementDecl.namespace(), elementDecl.name());
  10:                         registry.registerDeserializer(parentType, elementType, helper); 

View Full Code Here
   1: 
   2:       if (! "".equals(schema.namespace()))
   3:         ...
   4:         namespace = schema.namespace();
   5:     }
   6:         ...
   7:       if (method.getName().startsWith("create")) {
   8:         XmlElementDecl decl = method.getAnnotation(XmlElementDecl.class);
   9:         Class cl = method.getReturnType();
  10:         ...
  11: 
  12:           if (! "##default".equals(decl.namespace()))

View Full Code Here

scope

public Class<T> scope()
            throws javax.xml.bind.annotation.XmlElementDecl.GLOBAL.class

substitutionHeadName

public String substitutionHeadName()
            throws ""

substitutionHeadNamespace

public String substitutionHeadNamespace()
            throws "##default"