Examples of addArgument()


Examples of org.apache.uima.cas.impl.LowLevelException.addArgument()

   */
  public final void checkArrayBounds(int fsRef, int pos) {
    if (NULL == fsRef) {
      LowLevelException e = new LowLevelException(LowLevelException.NULL_ARRAY_ACCESS);
      // note - need to add this to ll_runtimeException
      e.addArgument(Integer.toString(pos));
      throw e;
    }
    final int arrayLength = casImpl.ll_getArraySize(fsRef);
    if (pos < 0 || pos >= arrayLength) {
      LowLevelException e = new LowLevelException(LowLevelException.ARRAY_INDEX_OUT_OF_RANGE);
View Full Code Here

Examples of org.apache.uima.cas.impl.XCASParsingException.addArgument()

        source = unknownXMLSource;
      }
      line = Integer.toString(locator.getLineNumber());
      col = Integer.toString(locator.getColumnNumber());
    }
    e.addArgument(source);
    e.addArgument(line);
    e.addArgument(col);
    return e;
  }
View Full Code Here

Examples of org.apache.uima.ducc.transport.cmdline.ICommandLine.addArgument()

        if ( ((ManagedProcess) managedProcess).getDuccProcess().getProcessType().equals(ProcessType.Service) ||
          ((ManagedProcess) managedProcess).getDuccProcess().getProcessType().equals(ProcessType.Pop)) {
                ICommandLine cmdL;
                  if (Utils.isWindows()) {
                    cmdL = new NonJavaCommandLine("taskkill");
                    cmdL.addArgument("/PID");
                } else {
                    cmdL = new NonJavaCommandLine("/bin/kill");
                    if ( ((ManagedProcess) managedProcess).isJd() ) {
                      // kill JD hard.
                      cmdL.addArgument("-9");
View Full Code Here

Examples of org.boris.xlloop.handler.FunctionInformation.addArgument()

            if (name == null || name.trim().length() == 0)
                continue;
            String help = null;
            if (sa.length > i + 1)
                help = sa[i + 1];
            fi.addArgument(name, help);
        }
        return fi;
    }
}
View Full Code Here

Examples of org.codehaus.aspectwerkz.expression.ExpressionInfo.addArgument()

                for (int i = 0; i < parameters.length; i++) {
                    String[] parameterInfo = Strings.splitString(
                            Strings.replaceSubString(parameters[i].trim(), "  ", " "),
                            " "
                    );
                    info.addArgument(parameterInfo[1], parameterInfo[0], aspectDef.getClassInfo().getClassLoader());
                }
            }
        }
        ExpressionNamespace.getNamespace(aspectDef.getQualifiedName()).addExpressionInfo(pointcutName, info);
    }
View Full Code Here

Examples of org.dspace.core.Email.addArgument()

                + File.separatorChar
                + "config"
                + File.separatorChar
                + "emails"
                + File.separatorChar + dto.getTemplate());
        email.addArgument(dto.getRp());
        email.addArgument(dto.getText());
        email.addRecipient(ConfigurationManager
                .getProperty("feedback.recipient"));
        email.setReplyTo(UIUtil.obtainContext(request).getCurrentUser()
                .getEmail());
View Full Code Here

Examples of org.eclipse.persistence.eis.interactions.EISInteraction.addArgument()

        if (!queryManager.hasReadObjectQuery()) {
            MappedInteraction call = new MappedInteraction();
            call.setProperty(MongoPlatform.OPERATION, MongoOperation.FIND);
            call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName());
            for (DatabaseField field : queryManager.getDescriptor().getPrimaryKeyFields()) {
                call.addArgument(field.getName());
            }
            queryManager.setReadObjectCall(call);
        }
       
        // Delete
View Full Code Here

Examples of org.eclipse.persistence.eis.interactions.MappedInteraction.addArgument()

        if (!queryManager.hasReadObjectQuery()) {
            MappedInteraction call = new MappedInteraction();
            call.setProperty(MongoPlatform.OPERATION, MongoOperation.FIND);
            call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName());
            for (DatabaseField field : queryManager.getDescriptor().getPrimaryKeyFields()) {
                call.addArgument(field.getName());
            }
            queryManager.setReadObjectCall(call);
        }
       
        // Delete
View Full Code Here

Examples of org.eclipse.persistence.queries.DataReadQuery.addArgument()

                              DepartmentUtils.departmentCollection(),
                              JDBCTypes.ARRAY_TYPE.getSqlCode());
        call.setProcedureName("HR_DEPARTMENTS.INSERTDEPARTMENTS");

        DataReadQuery databaseQuery = new DataReadQuery();
        databaseQuery.addArgument("P_RECORDS",ArrayList.class);
        databaseQuery.setCall(call);
        Vector args=new Vector();
        args.add(dept);

        ServerSession session =
View Full Code Here

Examples of org.eclipse.persistence.queries.DatabaseQuery.addArgument()

                            if (xdesc != null) {
                                dq.addArgumentByTypeName(arg.getName(), xdesc.getJavaClassName());
                            }
                            else {
                                if (databaseType instanceof PLSQLCollection) {
                                    dq.addArgument(arg.getName(), Array.class);
                                }
                                else if (databaseType instanceof PLSQLrecord) {
                                    dq.addArgument(arg.getName(), Struct.class);
                                }
                                else {
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.