javax.xml.bind.annotation

Interface XmlMimeType

public interface XmlMimeType

Method Summary

String
value()

Method Details

value

public String value()
Usages and Demos :

View More Examples of value()
   1: import javax.activation.DataHandler;
   2: import javax.xml.bind.annotation.XmlMimeType;
   3: import javax.xml.transform.Source;
   4:         ...
   5:          {
   6:             if(field.isAnnotationPresent(XmlMimeType.class))
   7:             {
   8:         ...
   9:                XmlMimeType mimeTypeDecl = field.getAnnotation(XmlMimeType.class);
  10:         ...
  11:                mimeType = mimeTypeDecl.value();

View Full Code Here
   1: import javax.activation.DataHandler;
   2: import javax.xml.bind.annotation.XmlMimeType;
   3: import javax.xml.bind.annotation.XmlType;
   4:         ...
   5: 
   6:             else if(field.isAnnotationPresent(XmlMimeType.class))
   7:             {
   8:         ...
   9:                XmlMimeType mimeTypeDecl = field.getAnnotation(XmlMimeType.class);
  10:         ...
  11:                result = new AttachmentScanResult(mimeTypeDecl.value(), AttachmentScanResult.Type.XOP);

View Full Code Here
   1: import javax.xml.bind.annotation.XmlList;
   2: import javax.xml.bind.annotation.XmlMimeType;
   3: 
   4:         ...
   5: 
   6:     XmlMimeType xmlMimeType = accessor.getAnnotation(XmlMimeType.class);
   7:     String mimeType = null;
   8:         ...
   9:     if (xmlMimeType != null)
  10:       mimeType = xmlMimeType.value();

View Full Code Here
   1: import javax.xml.bind.annotation.XmlList;
   2: import javax.xml.bind.annotation.XmlMimeType;
   3: import javax.xml.bind.annotation.XmlNsForm;
   4:         ...
   5: 
   6:     XmlMimeType xmlMimeType = accessor.getAnnotation(XmlMimeType.class);
   7:     String mimeType = null;
   8:         ...
   9:     if (xmlMimeType != null)
  10:       mimeType = xmlMimeType.value();
  11: 
  12:         ...
  13:         if (xmlSchemaTypes != null) {
  14:           XmlSchemaType[] array = xmlSchemaTypes.value();

View Full Code Here