Package javax.xml.bind.annotation

Examples of javax.xml.bind.annotation.XmlMimeType


      {
         if(method.getName().equalsIgnoreCase(getterMethodName))
         {
            if(method.isAnnotationPresent(XmlMimeType.class))
            {
               XmlMimeType mimeTypeDecl = method.getAnnotation(XmlMimeType.class);
               return new AttachmentScanResult(mimeTypeDecl.value(), AttachmentScanResult.Type.XOP);
            }
            else if(method.isAnnotationPresent(XmlAttachmentRef.class))
            {
               return new AttachmentScanResult("application/octet-stream", AttachmentScanResult.Type.SWA_REF);
            }
View Full Code Here


                        if (annotations != null) {
                            for (int j = 0; j < annotations.length; j++) {
                                java.lang.annotation.Annotation nextAnnotation = annotations[j];
                                if (nextAnnotation != null) {
                                    if (nextAnnotation instanceof XmlMimeType) {
                                        XmlMimeType javaAnnotation = (XmlMimeType) nextAnnotation;
                                        xmlMimeType = javaAnnotation.value();
                                    } else if (nextAnnotation instanceof XmlAttachmentRef) {
                                        xmlAttachmentRef = true;
                                        if (!this.hasSwaRef) {
                                            this.hasSwaRef = true;
                                        }
View Full Code Here

                declaration.setJavaType(helper.getJavaClass(declJavaType));
                declaration.setAdaptedJavaType(type);
            }
            if (helper.isAnnotationPresent(next, XmlMimeType.class)) {
                XmlMimeType mimeType = (XmlMimeType)helper.getAnnotation(next, XmlMimeType.class);
                declaration.setXmlMimeType(mimeType.value());
            }
            if (helper.isAnnotationPresent(next, XmlAttachmentRef.class)) {
                declaration.setXmlAttachmentRef(true);
            }
            HashMap<QName, ElementDeclaration> elements = getElementDeclarationsForScope(scopeClass.getName());
View Full Code Here

          webFault.getQualifiedName() + "'. " + e.getMessage());
      }
    }

    public String getMimeType() {
      XmlMimeType mimeType = property.getAnnotation(XmlMimeType.class);
      return mimeType == null ? null : mimeType.value();
    }
View Full Code Here

      throw new ValidationException(getPosition(), "Parameter " + getSimpleName() + ": " + e.getMessage());
    }
  }

  public String getMimeType() {
    XmlMimeType mimeType = getAnnotation(XmlMimeType.class);
    return mimeType == null ? null : mimeType.value();
  }
View Full Code Here

                        if (annotations != null) {
                            for (int j = 0; j < annotations.length; j++) {
                                java.lang.annotation.Annotation nextAnnotation = annotations[j];
                                if (nextAnnotation != null) {
                                    if (nextAnnotation instanceof XmlMimeType) {
                                        XmlMimeType javaAnnotation = (XmlMimeType) nextAnnotation;
                                        xmlMimeType = javaAnnotation.value();
                                    } else if (nextAnnotation instanceof XmlAttachmentRef) {
                                        xmlAttachmentRef = true;
                                        if (!this.hasSwaRef) {
                                            this.hasSwaRef = true;
                                        }
View Full Code Here

                declaration.setJavaType(helper.getJavaClass(declJavaType));
                declaration.setAdaptedJavaType(type);
            }
            if (helper.isAnnotationPresent(next, XmlMimeType.class)) {
                XmlMimeType mimeType = (XmlMimeType)helper.getAnnotation(next, XmlMimeType.class);
                declaration.setXmlMimeType(mimeType.value());
            }
            if (helper.isAnnotationPresent(next, XmlAttachmentRef.class)) {
                declaration.setXmlAttachmentRef(true);
            }
            HashMap<QName, ElementDeclaration> elements = getElementDeclarationsForScope(scopeClass.getName());
View Full Code Here

                    if (annotations != null) {
                        for (int j = 0; j < annotations.length; j++) {
                            java.lang.annotation.Annotation nextAnnotation = annotations[j];
                            if(nextAnnotation != null){
                                if (nextAnnotation instanceof XmlMimeType){                  
                                    XmlMimeType javaAnnotation = (XmlMimeType)nextAnnotation;
                                    xmlMimeType = javaAnnotation.value();
                                }else if (nextAnnotation instanceof XmlAttachmentRef){
                                    xmlAttachmentRef = true;
                                }
                            }
                        }
View Full Code Here

                    if (annotations != null) {
                        for (int j = 0; j < annotations.length; j++) {
                            java.lang.annotation.Annotation nextAnnotation = annotations[j];
                            if (nextAnnotation != null) {
                                if (nextAnnotation instanceof XmlMimeType) {
                                    XmlMimeType javaAnnotation = (XmlMimeType) nextAnnotation;
                                    xmlMimeType = javaAnnotation.value();
                                } else if (nextAnnotation instanceof XmlAttachmentRef) {
                                    xmlAttachmentRef = true;
                                }
                            }
                        }
View Full Code Here

                        if (annotations != null) {
                            for (int j = 0; j < annotations.length; j++) {
                                java.lang.annotation.Annotation nextAnnotation = annotations[j];
                                if (nextAnnotation != null) {
                                    if (nextAnnotation instanceof XmlMimeType) {
                                        XmlMimeType javaAnnotation = (XmlMimeType) nextAnnotation;
                                        xmlMimeType = javaAnnotation.value();
                                    } else if (nextAnnotation instanceof XmlAttachmentRef) {
                                        xmlAttachmentRef = true;
                                        if (!this.hasSwaRef) {
                                            this.hasSwaRef = true;
                                        }
View Full Code Here

TOP

Related Classes of javax.xml.bind.annotation.XmlMimeType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.