Package org.apache.xerces.xs

Examples of org.apache.xerces.xs.XSAnnotation


         binding.setDefaultConstraint(attrUse.getConstraintValue());
      }

      if (ctx.processAnnotations)
      {
         XSAnnotation an = attr.getAnnotation();
         if(an != null)
         {
            if (ctx.trace)
            {
               log.trace(attrName + " attribute annotation");
            }

            XsdAnnotation xsdAn = XsdAnnotation.unmarshal(an.getAnnotationString());
            XsdAppInfo appInfo = xsdAn.getAppInfo();
            if(appInfo != null)
            {
               PropertyMetaData propertyMetaData = appInfo.getPropertyMetaData();
               if(propertyMetaData != null)
View Full Code Here


                  log.trace("created model group " + groupBinding);
               }

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

      binding.setProcessContents(wildcard.getProcessContents());

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

      }

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

            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

      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

            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

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

      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

            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

TOP

Related Classes of org.apache.xerces.xs.XSAnnotation

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.