Examples of Annotation


Examples of org.eclipse.persistence.internal.oxm.schema.model.Annotation

        String sequencedValue = (String) complexType.getAttributesMap().get(SDOConstants.SDOXML_SEQUENCE_QNAME);
        if (sequencedValue != null) {
            Boolean sequencedBoolean = new Boolean(sequencedValue);
            currentType.setSequenced(sequencedBoolean.booleanValue());
        }
        Annotation annotation = complexType.getAnnotation();
        if (annotation != null) {
            java.util.List documentation = annotation.getDocumentation();
            if ((documentation != null) && (documentation.size() > 0)) {
                currentType.setInstanceProperty(SDOConstants.DOCUMENTATION_PROPERTY, documentation);
            }
        }
        currentType.preInitialize(packageName, namespaceResolvers);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.contentmodel.annotation.Annotation

      }
      else if (localName.equals(TAG_ID_ANNOTATION)) {
        currentAnnotation = null;
        String specValue = attributes.getValue("spec"); //$NON-NLS-1$
        if (specValue != null) {
          currentAnnotation = new Annotation();
          currentAnnotation.setSpec(specValue);
        }
        annotationMap.addAnnotation(currentAnnotation);
      }
      else if (localName.equals(TAG_ID_PROPERTY)) {
View Full Code Here

Examples of org.exist.xquery.Annotation

            final Iterator<UserDefinedFunction> itFunctions = compiled.getContext().localFunctions();

            final Set<URI> xqueryLocations = new HashSet<URI>();
            while(itFunctions.hasNext()) {
                final UserDefinedFunction function = itFunctions.next();
                final Annotation annotations[] = function.getSignature().getAnnotations();

                Set<org.exquery.xquery3.Annotation> functionRestAnnotations = null;

                //process the function annotations
                for(final Annotation annotation : annotations) {
View Full Code Here

Examples of org.exolab.castor.xml.schema.Annotation

       // declarations in XML DTD, so we convert each General Entity declaration
       // to Documentation subelement of XML Schema document annotaion.
       Enumeration dtdGeneralEntities = dtd.getGeneralEntities();
       if (dtdGeneralEntities.hasMoreElements()) {
          GeneralEntity ge;
          Annotation annotation = new Annotation();
          Documentation documentation;
          String text;

          while (dtdGeneralEntities.hasMoreElements()) {
             ge = (GeneralEntity)dtdGeneralEntities.nextElement();
             documentation = new Documentation();

             text = "General Entity Declaration";
             documentation.add(text);
             documentation.add(ge);
             annotation.addDocumentation(documentation);
          }

          schema.addAnnotation(annotation);
       }
       //-- convert General Entity declarations
View Full Code Here

Examples of org.exquery.xquery3.Annotation

    @Test(expected=ExQueryException.class)
    public void create_failsForNonRESTXQAnnotation() throws URISyntaxException, ExQueryException {
       
        final QName badName = new QName("http://fake", "fake");
       
        final Annotation mckAnnotation = mock(Annotation.class);
        when(mckAnnotation.getName()).thenReturn(badName);
       
        final Set<Annotation> annotations = new HashSet<Annotation>();
        annotations.add(mckAnnotation);
               
        ResourceFunctionFactory.create(new URI("/fake.xquery"), annotations);
View Full Code Here

Examples of org.gjt.jclasslib.structures.Annotation

        typePathEntries = new TypePathEntry[typePathLength];
        for (int i = 0; i < typePathLength; i++) {
            typePathEntries[i] = new TypePathEntry();
            typePathEntries[i].read(in);
        }
        annotation = new Annotation();
        annotation.read(in);
        if (debug) {
            debug("read ");
        }
    }
View Full Code Here

Examples of org.jboss.jca.common.spi.annotations.repository.Annotation

      Collection<Annotation> values = annotationRepository.getAnnotation(javax.resource.spi.Connector.class);
      if (values != null)
      {
         if (values.size() == 1)
         {
            Annotation annotation = values.iterator().next();
            String raClass = annotation.getClassName();
            javax.resource.spi.Connector connectorAnnotation = (javax.resource.spi.Connector)annotation.getAnnotation();

            if (trace)
               log.trace("Processing: " + connectorAnnotation + " for " + raClass);

            connector = attachConnector(raClass, classLoader, connectorAnnotation, connectionDefinitions,
View Full Code Here

Examples of org.jboss.papaki.Annotation

      Collection<Annotation> values = annotationRepository.getAnnotation(Connector.class);
      if (values != null)
      {
         if (values.size() == 1)
         {
            Annotation annotation = values.iterator().next();
            String raClass = annotation.getClassName();
            Connector c = (Connector)annotation.getAnnotation();

            if (trace)
               log.trace("Processing: " + c + " for " + raClass);

            md = attachConnector(md, raClass, c);
View Full Code Here

Examples of org.jf.dexlib2.iface.Annotation

public abstract class BaseMethodParameter extends BaseTypeReference implements MethodParameter {
    @Nullable
    @Override
    public String getSignature() {
        Annotation signatureAnnotation = null;
        for (Annotation annotation: getAnnotations()) {
            if (annotation.getType().equals("Ldalvik/annotation/Signature;")) {
                signatureAnnotation = annotation;
                break;
            }
        }
        if (signatureAnnotation == null) {
            return null;
        }

        ArrayEncodedValue signatureValues = null;
        for (AnnotationElement annotationElement: signatureAnnotation.getElements()) {
            if (annotationElement.getName().equals("value")) {
                EncodedValue encodedValue = annotationElement.getValue();
                if (encodedValue.getValueType() != ValueType.ARRAY) {
                    return null;
                }
View Full Code Here

Examples of org.jfree.chart.annotations.Annotation

      if (lstAnnotations != null)
      {
         for (int i = 0; i < lstAnnotations.size(); i++)
         {
            Annotation ant = lstAnnotations.get(i);

            if (ant instanceof IGfrDepthMetersAndFeet)
               ((IGfrDepthMetersAndFeet) ant).setUnitDepthMeter(bln);
         }
      }
     
     lstAnnotations = super.getRenderer().getAnnotations();

      if (lstAnnotations != null)
      {
         for (int i = 0; i < lstAnnotations.size(); i++)
         {
            Annotation ant = lstAnnotations.get(i);

            if (ant instanceof IGfrDepthMetersAndFeet)
               ((IGfrDepthMetersAndFeet) ant).setUnitDepthMeter(bln);
         }
      }
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.