Examples of XSAnnotation


Examples of org.apache.xerces.xs.XSAnnotation

      binding.setProcessContents(wildcard.getProcessContents());

      if (ctx.processAnnotations)
      {
         XSAnnotation annotation = wildcard.getAnnotation();
         if(annotation != null)
         {
            customizeTerm(annotation, binding, ctx.trace);
         }
      }
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

      }

      // customize element with annotations
      if (ctx.processAnnotations)
      {
         XSAnnotation an = elementDec.getAnnotation();
         if(an != null)
         {
            customizeTerm(an, element, ctx.trace);
         }
      }
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

            this.annotationsListModel.add(NO_ANNOTATIONS);
            return;
        }
        // update and display annotations
        for (int i = 0; i < annotations.getLength(); ++i) {
            XSAnnotation annotation = (XSAnnotation) annotations.item(i);
            logger.debug("Annotation #" + i + " [" + annotation + "]");
            logger.debug("Annotation #" + i + " type=[" + annotation.getType() + "], value=[" + annotation.getAnnotationString() + "]");
            AnnotationContentHandler contentHandler = new AnnotationContentHandler();
            annotation.writeAnnotation(contentHandler, XSAnnotation.SAX_CONTENTHANDLER);

            List<XmlSchemaAnnotation> annotationsList = contentHandler.getAnnotations();
            this.annotationsListModel.clear();
            if (null == annotationsList || annotationsList.isEmpty()) {
                this.annotationsListModel.add(NO_ANNOTATIONS);
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

      len = xo != null ? xo.getLength() : 0;
      //len = xsmp != null ? xsmp.getLength() : 0;
      for (int i = 0; i < len; i++)
      {
         //XSAnnotation xa = (XSAnnotation)xsmp.item(i);
         XSAnnotation xa = (XSAnnotation)xo.item(i);
         jb.addXSAnnotation(xa);
      }
   }
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

            buffer.append(sElemDesc);
         }

         for (int i = 0; i < annotationList.getLength(); ++i)
         {
            XSAnnotation annotation = (XSAnnotation)annotationList.item(i);
        
            String sDescription = parseDescription(annotation);
           
            if (sDescription != null)
            {
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

      if (elemDecl == null)
      {
         return "";
      }
     
      XSAnnotation annotation = elemDecl.getAnnotation();
     
      if (annotation == null)
      {
         return "";     
      }
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

      XSObjectList xo = xc.getAnnotations();
      assertTrue("There is one annotation", xo.getLength() == 1);
     
      //Test Annotation at the Global Element Level
      XSElementDeclaration xe = xsmodel.getElementDeclaration("myAddress","http://org.jboss.ws/types");
      XSAnnotation xa = xe.getAnnotation();
      assertNotNull("Annotation at element level is not null?",xa);
   }
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

            log.trace("Schema annotations: " + annotations.getLength());
         }

         for(int i = 0; i < annotations.getLength(); ++i)
         {
            XSAnnotation annotation = (XSAnnotation)annotations.item(i);
            XsdAnnotation an = XsdAnnotation.unmarshal(annotation.getAnnotationString());
            XsdAppInfo appinfo = an.getAppInfo();
            if(appinfo != null)
            {
               SchemaMetaData schemaBindings = appinfo.getSchemaMetaData();
               if(schemaBindings != null)
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

            {
               log.trace(typeName + " annotations " + annotations.getLength());
            }
            for(int i = 0; i < annotations.getLength(); ++i)
            {
               XSAnnotation an = (XSAnnotation)annotations.item(i);
               XsdAnnotation xsdAn = XsdAnnotation.unmarshal(an.getAnnotationString());
               XsdAppInfo appInfo = xsdAn.getAppInfo();
               if(appInfo != null)
               {
                  ClassMetaData classMetaData = appInfo.getClassMetaData();
                  if(classMetaData != null)
View Full Code Here

Examples of org.apache.xerces.xs.XSAnnotation

         {
            if (trace)
               log.trace(typeName + " annotations " + annotations.getLength());
            for(int i = 0; i < annotations.getLength(); ++i)
            {
               XSAnnotation an = (XSAnnotation)annotations.item(i);
               XsdAnnotation xsdAn = XsdAnnotation.unmarshal(an.getAnnotationString());
               XsdAppInfo appInfo = xsdAn.getAppInfo();
               if(appInfo != null)
               {
                  ClassMetaData classMetaData = appInfo.getClassMetaData();
                  if(classMetaData != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.