javax.xml.bind.annotation

Interface XmlType

public interface XmlType

Nested Class Summary

static class
XmlType.DEFAULT

Method Summary

Class<T>
factoryClass()
String
factoryMethod()
String
name()
String
namespace()
String[]
propOrder()

Method Details

factoryClass

public Class<T> factoryClass()
            throws javax.xml.bind.annotation.XmlType.DEFAULT.class

factoryMethod

public String factoryMethod()
            throws ""

name

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

View More Examples of name()
   1: import javax.xml.bind.annotation.XmlSchema;
   2: import javax.xml.bind.annotation.XmlType;
   3: import javax.xml.bind.annotation.XmlValue;
   4:         ...
   5: 
   6:     if (cl.isAnnotationPresent(XmlType.class)) {
   7:         ...
   8:       XmlType xmlType = (XmlType) cl.getAnnotation(XmlType.class);
   9: 
  10:         ...
  11:       if (! "##default".equals(xmlType.name()))

View Full Code Here

namespace

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

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

View Full Code Here
   1: import javax.xml.bind.annotation.XmlSchema;
   2: import javax.xml.bind.annotation.XmlType;
   3: import javax.xml.bind.annotation.XmlValue;
   4:         ...
   5: 
   6:     if (schema != null && ! "".equals(schema.namespace()))
   7:         ...
   8:       namespace = schema.namespace();
   9: 
  10:         ...
  11:     if (cl.isAnnotationPresent(XmlType.class)) {

View Full Code Here

propOrder

public String[] propOrder()
Usages and Demos :

View More Examples of propOrder()
   1:      
   2:       XmlType xmlType = (XmlType) _class.getAnnotation(XmlType.class);
   3:       HashMap<String,Integer> orderMap = null;
   4:         ...
   5: 
   6:       if (xmlType != null &&
   7:         ...
   8:           (xmlType.propOrder().length != 1 ||
   9:         ...
  10:            ! "".equals(xmlType.propOrder()[0]))) {

View Full Code Here