Examples of AnnotationAttribute


Examples of com.caucho.config.attribute.AnnotationAttribute

      boolean isEL = ! isAnnotationPresent(method.getAnnotations(),
                                           NonEL.class);

      _attributeMap.put(method.getName(),
                        new AnnotationAttribute(method.getName(),
                                                method.getReturnType(),
                                                isEL));
    }

    // createProxy(annClass);
View Full Code Here

Examples of org.apache.beehive.netui.compiler.schema.annotations.AnnotationAttribute

    {
        AnnotationAttribute[] attrs = ann.getAnnotationAttributeArray();
       
        for ( int i = 0; i < attrs.length; i++ )
        {
            AnnotationAttribute attr = attrs[i];
           
            if ( attr.getAttributeName().equals( attrName ) )
            {
                String value = attr.getStringValue1();
                assert value != null : "attribute " + attrName + " did not have a String value";
                return value;
            }
        }
       
View Full Code Here

Examples of org.apache.beehive.netui.compiler.schema.annotations.AnnotationAttribute

    {
        AnnotationAttribute[] attrs = ann.getAnnotationAttributeArray();
       
        for ( int i = 0; i < attrs.length; i++ )
        {
            AnnotationAttribute attr = attrs[i];
           
            if ( attr.getAttributeName().equals( attrName ) )
            {
                ProcessedAnnotation[] array = attr.getAnnotationValueArray();
                assert array != null : "attribute " + attrName + " did not have an array of annotations.";
                return array;
            }
        }
       
View Full Code Here

Examples of org.apache.beehive.netui.compiler.schema.annotations.AnnotationAttribute

            AnnotationTypeElementDeclaration elementDecl = ( AnnotationTypeElementDeclaration ) entry.getKey();
            AnnotationValue annotationValue = ( AnnotationValue ) entry.getValue();
           
            String name = elementDecl.getSimpleName();
            Object value = annotationValue.getValue();
            AnnotationAttribute xmlAttr = xmlAnnotation.addNewAnnotationAttribute();
            xmlAttr.setAttributeName( name );
           
            if ( value instanceof List )
            {
                for ( Iterator j = ( ( List ) value ).iterator(); j.hasNext(); )
                {
                    Object o = j.next();
                    assert o instanceof AnnotationValue : o.getClass().getName();
                    Object listVal = ( ( AnnotationValue ) o ).getValue();
                   
                    // we only handle lists of annotations at the moment
                    assert listVal instanceof AnnotationInstance : listVal.getClass().getName();
                    include( xmlAttr.addNewAnnotationValue(), ( AnnotationInstance ) listVal );
                }
            }
            else
            {
                // we only support a few types at the moment
                assert value instanceof TypeInstance || value instanceof String : value.getClass().getName();
                xmlAttr.setStringValue1( value.toString() );
            }
        }
    }
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.AnnotationAttribute

    {
        AnnotationAttribute[] attrs = ann.getAnnotationAttributes();

        for ( int i = 0; i < attrs.length; i++ )
        {
            AnnotationAttribute attr = attrs[i];

            if ( attr.getAttributeName().equals( attrName ) )
            {
                String value = attr.getStringValue();
                assert value != null : "attribute " + attrName + " did not have a String value";
                return value;
            }
        }
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.AnnotationAttribute

    {
        AnnotationAttribute[] attrs = ann.getAnnotationAttributes();

        for ( int i = 0; i < attrs.length; i++ )
        {
            AnnotationAttribute attr = attrs[i];

            if ( attr.getAttributeName().equals( attrName ) )
            {
                ProcessedAnnotation[] array = attr.getAnnotationValues();
                assert array != null : "attribute " + attrName + " did not have an array of annotations.";
                return array;
            }
        }
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.AnnotationAttribute

    {
        AnnotationAttribute[] attrs = ann.getAnnotationAttributes();

        for ( int i = 0; i < attrs.length; i++ )
        {
            AnnotationAttribute attr = attrs[i];

            if ( attr.getAttributeName().equals( attrName ) )
            {
                String value = attr.getStringValue();
                assert value != null : "attribute " + attrName + " did not have a String value";
                return value;
            }
        }
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.AnnotationAttribute

    {
        AnnotationAttribute[] attrs = ann.getAnnotationAttributes();

        for ( int i = 0; i < attrs.length; i++ )
        {
            AnnotationAttribute attr = attrs[i];

            if ( attr.getAttributeName().equals( attrName ) )
            {
                ProcessedAnnotation[] array = attr.getAnnotationValues();
                assert array != null : "attribute " + attrName + " did not have an array of annotations.";
                return array;
            }
        }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute

          }
        }
      }
      for (EntityType entityType : schema.getEntityTypes()) {
        assertEquals(1, entityType.getAnnotationAttributes().size());
        AnnotationAttribute attr = entityType.getAnnotationAttributes().get(0);
        assertEquals("href", attr.getName());
        assertEquals("prefix1", attr.getPrefix());
        assertEquals("namespaceForAnno", attr.getNamespace());
        assertEquals("http://foo", attr.getText());
        for (Property property : entityType.getProperties()) {
          if ("EmployeeName".equals(property.getName())) {
            assertEquals(2, property.getAnnotationElements().size());
            for (AnnotationElement anElement : property.getAnnotationElements()) {
              if ("propertyAnnoElement".equals(anElement.getName())) {
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute

    final List<AnnotationElement> childElements = new ArrayList<AnnotationElement>();
    childElements.add(new AnnotationElement().setName("schemaElementTest2").setText("text2").setNamespace(NAMESPACE_1));
    childElements.add(new AnnotationElement().setName("schemaElementTest3").setText("text3").setPrefix("prefix")
        .setNamespace("namespace"));
    final List<AnnotationAttribute> elementAttributes = new ArrayList<AnnotationAttribute>();
    elementAttributes.add(new AnnotationAttribute().setName("rel").setText("self"));
    elementAttributes.add(new AnnotationAttribute().setName("href").setText("http://foo").setPrefix("pre")
        .setNamespace("namespaceForAnno"));
    childElements.add(new AnnotationElement().setName("schemaElementTest4").setText("text4").setAttributes(
        elementAttributes));

    final List<AnnotationElement> schemaElements = new ArrayList<AnnotationElement>();
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.