Examples of addAnnotation()


Examples of org.mindswap.pellet.KnowledgeBase.addAnnotation()

    ATermAppl o = ATermUtils.makeTermAppl( "o" );

    kb.addIndividual( s );
    kb.addAnnotationProperty( p );

    assertTrue( kb.addAnnotation( s, p, o ) );

    Set<ATermAppl> actual = kb.getIndividualsWithAnnotation( p, o );
    Set<ATermAppl> expected = new HashSet<ATermAppl>();
    expected.add( s );
View Full Code Here

Examples of org.mongodb.morphia.mapping.MappedField.addAnnotation()

            for (final MappedField mf : sourceMC.getPersistenceFields()) {
                final Map<Class<? extends Annotation>, Annotation> annMap = mf.getAnnotations();
                final MappedField destMF = destMC.getMappedFieldByJavaField(mf.getJavaFieldName());
                if (destMF != null && annMap != null && !annMap.isEmpty()) {
                    for (final Entry<Class<? extends Annotation>, Annotation> e : annMap.entrySet()) {
                        destMF.addAnnotation(e.getKey(), e.getValue());
                    }
                }
            }

        }
View Full Code Here

Examples of org.mybatis.generator.api.dom.java.Field.addAnnotation()

    {
      mapper = mapper.substring(idx + 1);
    }
    mapper = mapper.substring(0, 1).toLowerCase() + mapper.substring(1);
    field.setName(mapper);
    field.addAnnotation("@Resource");
    topLevelClass.addField(field);
    importedTypes.add(type);
    topLevelClass.addImportedTypes(importedTypes);

    // add Method....
View Full Code Here

Examples of org.mybatis.generator.api.dom.java.Method.addAnnotation()

    FullyQualifiedJavaType returnType = new FullyQualifiedJavaType("java.util.LinkedHashMap");
    returnType.addTypeArgument(new FullyQualifiedJavaType("java.lang.String"));
    returnType.addTypeArgument(new FullyQualifiedJavaType("java.util.List"));
    importedTypes.add(returnType);
    Method method = new Method();
    method.addAnnotation("@Override");
    method.addSuppressTypeWarningsAnnotation();
    method.setReturnType(returnType);
    topLevelClass.addImportedTypes(importedTypes);
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("getExportData");
View Full Code Here

Examples of org.mybatis.generator.api.dom.java.Parameter.addAnnotation()

        if (annotate) {
          sb.setLength(0);
          sb.append("@Param(\""); //$NON-NLS-1$
          sb.append(introspectedColumn.getJavaProperty());
          sb.append("\")"); //$NON-NLS-1$
          parameter.addAnnotation(sb.toString());
        }
        method.addParameter(parameter);
      }
    }
View Full Code Here

Examples of org.mybatis.generator.api.dom.java.TopLevelClass.addAnnotation()

    type = new FullyQualifiedJavaType(serviceImplFullName);
    TopLevelClass topLevelClass = new TopLevelClass(type);
    topLevelClass.setVisibility(JavaVisibility.PUBLIC);
    type = new FullyQualifiedJavaType(serviceInterfaceFullName);
    topLevelClass.addSuperInterface(type);
    topLevelClass.addAnnotation("@Service(\"" + recordLowCaseFullType + "Service\")");
    type = new FullyQualifiedJavaType("org.springframework.stereotype.Service");
    importedTypes.add(type);

    // add field, getter, setter for orderby clause
    // @Resource private UserMapper userMapper;
View Full Code Here

Examples of org.objectweb.celtix.tools.common.model.JavaInterface.addAnnotation()

            if (hasHandlerConfig(intf)) {
                HandlerConfigGenerator handlerGen = new HandlerConfigGenerator(intf, getEnvironment());
                handlerGen.generate();

                if (handlerGen.getHandlerAnnotation() != null) {
                    intf.addAnnotation(handlerGen.getHandlerAnnotation().toString());
                    intf.addImport("javax.jws.HandlerChain");
                }
            }
            clearAttributes();
            setAttributes("intf", intf);
View Full Code Here

Examples of org.objectweb.celtix.tools.common.model.JavaMethod.addAnnotation()

        JavaReturn future = new JavaReturn();
        future.setClassName("Future<?>");
        pollingMethod.setReturn(future);

        addWebMethodAnnotation(pollingMethod, method.getOperationName());
        pollingMethod.addAnnotation("ResponseWrapper", method.getAnnotationMap().get("ResponseWrapper"));
        pollingMethod.addAnnotation("RequestWrapper", method.getAnnotationMap().get("RequestWrapper"));
        pollingMethod.addAnnotation("SOAPBinding", method.getAnnotationMap().get("SOAPBinding"));
       
        for (Iterator iter = method.getParameters().iterator(); iter.hasNext();) {
            pollingMethod.addParameter((JavaParameter)iter.next());
View Full Code Here

Examples of org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetailsBuilder.addAnnotation()

                final CommentStructure commentStructure = new CommentStructure();
                JavaParserCommentMetadataBuilder.updateCommentsToRoo(
                        commentStructure, candidate);
                md.setCommentStructure(commentStructure);

                cidBuilder.addAnnotation(md);
            }
        }

        if (members != null) {
            // Now we've finished declaring the type, we should introspect for
View Full Code Here

Examples of org.springframework.roo.classpath.details.ConstructorMetadataBuilder.addAnnotation()

    bodyBuilder.appendFormalLine("this." + CS_FIELD + " = " + CS_FIELD
        + ";");

    final ConstructorMetadataBuilder constructorBuilder = new ConstructorMetadataBuilder(
        getId());
    constructorBuilder.addAnnotation(new AnnotationMetadataBuilder(
        AUTOWIRED));
    constructorBuilder.addParameterType(AnnotatedJavaType
        .convertFromJavaType(CONVERSION_SERVICE));
    constructorBuilder.addParameterName(CS_FIELD);
    constructorBuilder.setModifier(Modifier.PUBLIC);
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.