javax.xml.bind.annotation

Interface XmlAttribute

public interface XmlAttribute

Method Summary

String
name()
String
namespace()
boolean
required()

Method Details

name

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

View More Examples of name()
   1: 
   2: import javax.xml.bind.annotation.XmlAttribute;
   3: import javax.xml.bind.annotation.XmlSchema;
   4:         ...
   5:         super(parent,seed);
   6:         XmlAttribute att = seed.readAnnotation(XmlAttribute.class);
   7:         assert att!=null;
   8:         ...
   9:         uri = att.namespace();
  10:         local = att.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.XmlAttribute;
   3: import javax.xml.bind.annotation.XmlID;
   4:         ...
   5: 
   6:     XmlAttribute attribute = accessor.getAnnotation(XmlAttribute.class);
   7: 
   8:         ...
   9: 
  10:       if (! attribute.namespace().equals("##default"))
  11:         ...
  12:         namespace = attribute.namespace();

View Full Code Here

required

public boolean required()
            throws false