Examples of ifnull()


Examples of com.jeecms.cms.web.WebErrors.ifNull()

      return errors;
    }
    if (errors.ifMaxLength(tagStr, "tagStr", 255)) {
      return errors;
    }
    if (errors.ifNull(channelId, "channelId")) {
      return errors;
    }
    if (vldChannel(errors, site, user, channelId)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifNull()

  }

  private WebErrors validatePasswordReset(Integer uid, String key,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(uid, "uid")) {
      return errors;
    }
    if (errors.ifBlank(key, "key", 50)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifNull()

  }

  private WebErrors validateUpload(MultipartFile file,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(file, "file")) {
      return errors;
    }
    return errors;
  }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifNull()

  private WebErrors validateSave(Content bean, Integer channelId,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    CmsSite site = CmsUtils.getSite(request);
    bean.setSite(site);
    if (errors.ifNull(channelId, "channelId")) {
      return errors;
    }
    Channel channel = channelMng.findById(channelId);
    if (errors.ifNotExist(channel, Channel.class, channelId)) {
      return errors;
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifNull()

  }

  private WebErrors validateUpload(MultipartFile file,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(file, "file")) {
      return errors;
    }
    return errors;
  }
View Full Code Here

Examples of ma.glasnost.orika.impl.generator.MultiOccurrenceVariableRef.ifNull()

           
            if (fieldMap.getInverse().isCollection()) {
                append(out,
                          format("for (java.util.Iterator orikaIterator = %s.iterator(); orikaIterator.hasNext();) { ", newDest),
                          format("    %s orikaCollectionItem = (%s) orikaIterator.next();", d.elementTypeName(), d.elementTypeName()),
                          format("    %s { %s; }", inverse.ifNull(), inverse.assignIfPossible(inverse.newCollection())),
                          format("    %s.add(%s)", inverse, d.owner()),
                          "}");
               
            } else if (fieldMap.getInverse().isArray()) {
                out.append(" // TODO support array");
View Full Code Here

Examples of ma.glasnost.orika.impl.generator.VariableRef.ifNull()

        if (fieldMap.getInverse() != null) {
            VariableRef inverse = new VariableRef(fieldMap.getInverse(), destination);
           
            if (inverse.isCollection()) {
                MultiOccurrenceVariableRef inverseCollection = MultiOccurrenceVariableRef.from(inverse);
                ipStmt += inverse.ifNull() + inverse.assign(inverseCollection.newCollection()) + ";";
                ipStmt += format("%s.add(%s);", inverse, destination.owner());
            } else if (inverse.isArray()) {
                ipStmt += "/* TODO Orika source code does not support Arrays */";
            } else {
                ipStmt += statement(inverse.assign(destination.owner()));
View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.ifnull()

/*     */
/* 121 */     e.load_this();
/* 122 */     e.dup();
/* 123 */     e.invoke_interface(ENABLED, ENABLED_GET);
/* 124 */     Label skip = e.make_label();
/* 125 */     e.ifnull(skip);
/*     */
/* 127 */     e.load_this();
/* 128 */     e.invoke_interface(ENABLED, ENABLED_GET);
/* 129 */     e.load_this();
/* 130 */     e.push(name);
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifNull()

    mv.storeLocal( l_ds );

    // ~ if (ds != null) {
    final Label isNull = mv.newLabel();
    mv.loadLocal( l_ds );
    mv.ifNull( isNull );

    int l_di;
    if (inputContainerClass.isArray()) {
      l_di = compileInitFromArray( sub, mv, l_ds );
    }
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifNull()

   
    //if (reference != null)
    //    reference.removeEL(pagecontext);
    Label removeEnd=new Label();
    adapter.loadLocal(lRef);
    adapter.ifNull(removeEnd);
      adapter.loadLocal(lRef);
      adapter.loadArg(0);
      adapter.invokeInterface(Types.REFERENCE, REMOVE_EL);
      adapter.pop();
    adapter.visitLabel(removeEnd);
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.