Examples of addField()


Examples of org.jboss.errai.codegen.meta.impl.build.BuildMetaClass.addField()

      bmf.setFinal(field.isFinal());
      bmf.setStatic(field.isStatic());
      bmf.setVolatile(field.isVolatile());
      bmf.setTransient(field.isTransient());

      buildMetaClass.addField(bmf);
    }

    for (final MetaConstructor c : clazz.getDeclaredConstructors()) {
      final BuildMetaConstructor newConstructor = new BuildMetaConstructor(buildMetaClass, EmptyStatement.INSTANCE,
          GenUtil.scopeOf(c),
View Full Code Here

Examples of org.jboss.forge.parser.java.JavaClass.addField()

            otherEntity.addImport(HashSet.class);
            if (!otherEntity.getCanonicalName().equals(entity.getCanonicalName()))
            {
               otherEntity.addImport(entity.getQualifiedName());
            }
            Field<JavaClass> otherField = otherEntity.addField("private Set<" + entity.getName() + "> "
                     + inverseFieldName
                     + "= new HashSet<" + entity.getName() + ">();");
            otherField.addAnnotation(ManyToMany.class);
            Refactory.createGetterAndSetter(otherEntity, otherField);
View Full Code Here

Examples of org.jboss.forge.roaster.model.source.JavaClassSource.addField()

      }
      if (entityPackage != null && !entityPackage.isEmpty())
      {
         javaClass.setPackage(entityPackage);
      }
      FieldSource<JavaClassSource> id = javaClass.addField("private Long id;");
      id.addAnnotation(Id.class);
      id.addAnnotation(GeneratedValue.class)
               .setEnumValue("strategy", idStrategy);
      id.addAnnotation(Column.class)
               .setStringValue("name", "id")
View Full Code Here

Examples of org.jibx.binding.classes.ClassFile.addField()

        ClassFile base = ClassCache.requireClassFile(FACTORY_BASE);
        ClassFile cf = new ClassFile(m_factoryName, m_targetRoot, base,
            Constants.ACC_PUBLIC, FACTORY_INTERFACES);
       
        // add static field for instance
        ClassItem inst = cf.addField(FACTORY_INTERFACE,
            FACTORY_INSTNAME, PRIVATESTATIC_ACCESS);
       
        // add private method to return binding classes blob (replaced later)
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
            Type.STRING, new Type[0], cf,
View Full Code Here

Examples of org.jivesoftware.smackx.Form.addField()

                Form form = muc.getConfigurationForm();
                Form answer = form.createAnswerForm();
 
                FormField fieldRoomName = new FormField("muc#roomconfig_roomname");
                fieldRoomName.addValue(roomName);
                answer.addField(fieldRoomName);
 
                FormField fieldMaxUsers = new FormField("muc#roomconfig_maxusers");
                fieldMaxUsers.addValue("0");// 0 means unlimited
                answer.addField(fieldMaxUsers);
 
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DataForm.addField()

                    String[] splitValues = value.split("[\\r\\n]+");
                    for(String splitValue : splitValues) {
                        field.addValue(splitValue);
                    }
                }
                form.addField(field);
            }
        }
       
        commandData.setForm(form);
       
View Full Code Here

Examples of org.lilyproject.hbaseindex.IndexEntry.addField()

    }

    private IndexEntry createForwardEntry(AbsoluteRecordId parentRecordId, SchemaId parentVtagId,
                                          Collection<DependencyEntry> newDependencies) throws IOException {
        final IndexEntry fwdEntry = new IndexEntry(forwardDerefIndex.getDefinition());
        fwdEntry.addField("dependant_recordid", parentRecordId.toBytes());
        fwdEntry.addField("dependant_vtag", parentVtagId.getBytes());

        // we do not really use the identifier... all we are interested in is in the data of the entry
        fwdEntry.setIdentifier(DUMMY_IDENTIFIER);
View Full Code Here

Examples of org.lilyproject.indexer.engine.SolrDocumentBuilder.addField()

                                    String fieldName = evalName(dynField, match, fieldType);

                                    List<String> values = valueEvaluator.format(table.getTableName(), vtRecord.getRecord(), fieldType, dynField.extractContext(),
                                            dynField.getFormatter(), repository);

                                    solrDocumentBuilder.addField(fieldName, values);

                                    if (!dynField.getContinue()) {
                                        // stop on first match, unless continue attribute is true
                                        break;
                                    }
View Full Code Here

Examples of org.milyn.edisax.model.internal.Segment.addField()

        ugh.setXmltag("UGH");
        ugh.addField(new Field("id", UNEdifact41ControlBlockHandlerFactory.NAMESPACE, true));

        ugt.setSegcode("UGT");
        ugt.setXmltag("UGT");
        ugt.addField(new Field("id", UNEdifact41ControlBlockHandlerFactory.NAMESPACE, true));

        definitionModel.getSegments().getSegments().add(ugh);
        definitionModel.getSegments().getSegments().add(ugt);
    }
View Full Code Here

Examples of org.molgenis.model.elements.Entity.addField()

            // create id field to ensure ordering
            Field idField = new Field(mrefEntity, new IntField(), "autoid", "autoid", true, false, false,
                null);
            idField.setHidden(true);
            idField.setDescription("automatic id field to ensure ordering of mrefs");
            mrefEntity.addField(idField);
            mrefEntity.addKey(idField.getName(), "unique auto key to ensure ordering of mrefs");

            // create the fields for the linktable
            Field field;
            Vector<String> unique = new Vector<String>();
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.