javax.xml.bind.annotation

Interface XmlSchema

public interface XmlSchema

Method Summary

XmlNsForm
attributeFormDefault()
XmlNsForm
elementFormDefault()
String
namespace()
XmlNs[]
xmlns()

Method Details

attributeFormDefault

public XmlNsForm attributeFormDefault()
            throws javax.xml.bind.annotation.XmlNsForm.UNSET
Usages and Demos :

View More Examples of attributeFormDefault()
   1: import javax.xml.bind.annotation.XmlAttribute;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.namespace.QName;
   4:         ...
   5:         if(uri.equals("##default")) {
   6:             XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
   7:             if(xs!=null) {
   8:         ...
   9:                 switch(xs.attributeFormDefault()) {
  10:                 case QUALIFIED:

View Full Code Here

elementFormDefault

public XmlNsForm elementFormDefault()
            throws javax.xml.bind.annotation.XmlNsForm.UNSET
Usages and Demos :

View More Examples of elementFormDefault()
   1: import javax.xml.bind.annotation.XmlNsForm;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.XmlSchemaType;
   4:         ...
   5:     else {
   6:       XmlSchema xmlSchema = accessor.getPackageAnnotation(XmlSchema.class);
   7: 
   8:         ...
   9:       if (xmlSchema != null &&
  10:           xmlSchema.elementFormDefault() == XmlNsForm.QUALIFIED)
  11:         _qname = new QName(xmlSchema.namespace(), accessor.getName());

View Full Code Here
   1: import javax.xml.bind.annotation.XmlNsForm;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.XmlSchemaType;
   4:         ...
   5: 
   6:     XmlSchema xmlSchema = _accessor.getPackageAnnotation(XmlSchema.class);
   7: 
   8:         ...
   9:     if (xmlSchema != null &&
  10:         xmlSchema.elementFormDefault() == XmlNsForm.QUALIFIED)
  11:       namespace = xmlSchema.namespace();

View Full Code Here
   1: import javax.xml.bind.annotation.XmlMimeType;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
   4:         ...
   5:         if(uri.equals("##default")) {
   6:             XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
   7:             if(xs!=null) {
   8:         ...
   9:                 switch(xs.elementFormDefault()) {
  10:                 case QUALIFIED:

View Full Code Here

namespace

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

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

View Full Code Here
   1: import javax.xml.bind.annotation.XmlNsForm;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.XmlSchemaType;
   4:         ...
   5:     else {
   6:       XmlSchema xmlSchema = accessor.getPackageAnnotation(XmlSchema.class);
   7: 
   8:         ...
   9:           xmlSchema.elementFormDefault() == XmlNsForm.QUALIFIED)
  10:         _qname = new QName(xmlSchema.namespace(), accessor.getName());
  11:       else
  12:         ...
  13:       if (xmlSchemaType != null) {
  14:         QName typeQName = new QName(xmlSchemaType.namespace(),

View Full Code Here
   1: import javax.xml.bind.annotation.XmlNsForm;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.XmlSchemaType;
   4:         ...
   5: 
   6:     XmlSchema xmlSchema = _accessor.getPackageAnnotation(XmlSchema.class);
   7: 
   8:         ...
   9:         xmlSchema.elementFormDefault() == XmlNsForm.QUALIFIED)
  10:       namespace = xmlSchema.namespace();
  11: 
  12:         ...
  13: 
  14:     if (! element.namespace().equals("##default"))

View Full Code Here
   1: import javax.xml.bind.annotation.XmlRegistry;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.XmlTransient;
   4:         ...
   5:             for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
   6:                 XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
   7:                 if(xs==null)
   8:         ...
   9: 
  10:                 String uri = xs.namespace();
  11:                 Map<String,String> m = xmlNsCache.get(uri);
  12:         ...
  13: 
  14:             r.put(xs.namespace(),loc);

View Full Code Here
   1: import javax.xml.bind.annotation.XmlInlineBinaryData;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
   4:         ...
   5:         String local = e.name();
   6:         String nsUri = e.namespace();
   7:         if(nsUri.equals("##default")) {
   8:         ...
   9:             XmlSchema xs = reader().getPackageAnnotation(XmlSchema.class,
  10:                 nav().getDeclaringClassForMethod(method),this);
  11:         ...
  12:             if(xs!=null)
  13:                 nsUri = xs.namespace();

View Full Code Here

xmlns

public XmlNs[] xmlns()
Usages and Demos :

View More Examples of xmlns()
   1: import javax.xml.bind.annotation.XmlRegistry;
   2: import javax.xml.bind.annotation.XmlSchema;
   3: import javax.xml.bind.annotation.XmlTransient;
   4:         ...
   5:             for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
   6:                 XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
   7:                 if(xs==null)
   8:         ...
   9: 
  10:                 for( XmlNs xns : xs.xmlns() ) {
  11:                     m.put(xns.prefix(),xns.namespaceURI());

View Full Code Here