Examples of addField()


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

            // return null;
          }

          try
          {
            index.addField(elem.getAttribute("name"));
          }
          catch (Exception e)
          {
            throw new MolgenisModelException(e.getMessage());
          }
View Full Code Here

Examples of org.mozilla.classfile.ClassFileWriter.addField()

                cfw.addInterface(clazz.getName());
            }
            Collections.addAll(methods, clazz.getMethods());
        }

        cfw.addField("events", adapterSignature, (short) (ACC_PRIVATE | ACC_FINAL));

        cfw.startMethod("<init>", "(" + adapterSignature + ")V", ACC_PUBLIC);
        // Invoke base class constructor
        cfw.addLoadThis();
        cfw.addInvoke(ByteCode.INVOKESPECIAL, superName, "<init>", "()V");
View Full Code Here

Examples of org.mybatis.generator.api.dom.java.InnerClass.addField()

    Field field = new Field();
    field.setVisibility(JavaVisibility.PRIVATE);
    field.setType(FullyQualifiedJavaType.getObjectInstance());
    field.setName("record"); //$NON-NLS-1$
    innerClass.addField(field);

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setReturnType(FullyQualifiedJavaType.getObjectInstance());
    method.setName("getRecord"); //$NON-NLS-1$
View Full Code Here

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

    type = new FullyQualifiedJavaType(serviceInterfaceFullName);
    importedTypes.add(type);
    field.setType(type);
    field.setName(serviceObjName); //$NON-NLS-1$
    field.addAnnotation("@Resource");
    topLevelClass.addField(field);

    // private Pagination page;
    field = new Field();
    field.setVisibility(JavaVisibility.PRIVATE);
    type = new FullyQualifiedJavaType("com.eatle.utils.Pagination");
View Full Code Here

Examples of org.nutz.ioc.meta.IocObject.addField()

    if (!isIocObject(map)) {
      for (Entry<String, Object> en : map.entrySet()) {
        IocField ifld = new IocField();
        ifld.setName(en.getKey());
        ifld.setValue(object2value(en.getValue()));
        iobj.addField(ifld);
      }
      if(log.isWarnEnabled()) //TODO 移除这种兼容性
        log.warn("Using *Declared* ioc-define (without type or events)!!! Pls use Standard Ioc-Define!!" +
            " Bean will define as:\n"+Json.toJson(iobj));
    } else {
View Full Code Here

Examples of org.objectweb.celtix.tools.common.model.JavaExceptionClass.addField()

            }
            if (!fType.equals(ProcessorUtil.resolvePartType(part))) {
                fField.setClassName(ProcessorUtil.resolvePartType(part, jaxbModel, true));
            }

            expClass.addField(fField);
        }
        model.addExceptionClass(name, expClass);
    }
}
View Full Code Here

Examples of org.objectweb.speedo.metadata.SpeedoFetchGroup.addField()

            SpeedoFetchGroup sfg = (SpeedoFetchGroup) mo;
            if (logger.isLoggable(BasicLevel.DEBUG)) {
                logger.log(BasicLevel.DEBUG, "add field '" + f.name
                    + "' into the fetchgroup '" + sfg.name +"'");
            }
            sfg.addField(f);
        }
        return f;
    }
    private Object treatMap(Node node, Object mo) throws SpeedoException {
        SpeedoField f = (SpeedoField) mo;
View Full Code Here

Examples of org.onesocialweb.model.vcard4.Profile.addField()

        final Profile profile = profileFactory.profile();

        try {
          // prepare for updating and check for empty values
          if (avatarF.getAvatarUri().length() > 0)
            profile.addField(profileFactory.photo(avatarF.getAvatarUri()));
          if (displaynameF.getText().length() > 0)
            profile.addField(profileFactory.fullname(displaynameF.getText()));
          if (nameF.getFirstName().length() > 0 || nameF.getLastName().length() > 0)
            profile.addField(profileFactory.name(null, nameF.getFirstName(), nameF.getLastName(), null));
          if (birthdayF.getDate() != null)
View Full Code Here

Examples of org.onesocialweb.openfire.model.vcard4.PersistentProfile.addField()

       
        profile.removeAll();       
        try{
          for (Field f: canSeefields){           
            f.setAclRules(new ArrayList<AclRule>());         
            profile.addField(f);
          }       
        }catch (CardinalityException ce){
        }catch (UnsupportedFieldException ufe){         
        }         
        return profile;
View Full Code Here

Examples of org.openqa.jetty.http.HttpRequest.addField()

                    int h=packet.getInt();
                    for (int i=0; i<h; i++)
                    {
                        String hdr=packet.getHeader();
                        String val=packet.getString();
                        request.addField(hdr,val);
                        if (!_keepAlive&&hdr.equalsIgnoreCase(HttpFields.__Connection)&&val.equalsIgnoreCase(HttpFields.__KeepAlive))
                            _keepAlive=true;
                    }

                    // Handler other attributes
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.