javax.xml.bind.annotation

Interface XmlRootElement

public interface XmlRootElement

Method Summary

String
name()
String
namespace()

Method Details

name

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

View More Examples of name()
   1:       
   2:       XmlRootElement xre = _class.getAnnotation(XmlRootElement.class);
   3: 
   4:         ...
   5:         
   6:         if ("##default".equals(xre.name()))
   7:           localName = JAXBUtil.identifierToXmlName(_class);
   8:         ...
   9:         else
  10:           localName = xre.name();

View Full Code Here

namespace

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

View More Examples of namespace()
   1: 
   2: import javax.xml.bind.annotation.XmlRootElement;
   3: import javax.xml.bind.annotation.XmlSchema;
   4:         ...
   5:     protected final QName parseElementName(ClassDeclT clazz) {
   6:         XmlRootElement e = reader().getClassAnnotation(XmlRootElement.class,clazz,this);
   7:         if(e==null)
   8:         ...
   9:         }
  10:         String nsUri = e.namespace();
  11:         if(nsUri.equals("##default")) {
  12:         ...
  13:             if(xs!=null)
  14:                 nsUri = xs.namespace();

View Full Code Here
   1: 
   2:       if (schema != null && ! "".equals(schema.namespace()))
   3:         ...
   4:         namespace = schema.namespace();
   5:       
   6:         ...
   7:       XmlRootElement xre = _class.getAnnotation(XmlRootElement.class);
   8: 
   9:         ...
  10: 
  11:         if (! "##default".equals(xre.namespace()))

View Full Code Here