Examples of trim()


Examples of java.util.List.trim()

            String list = "";
            Iterator i = alias.keySet().iterator();
            while (i.hasNext()) {
               list += ", " + i.next();
            }
            list = list.startsWith(", ") ? list.substring(2) : list.trim();
            sendMessage("All aliases:");
            sendMessage(list.equalsIgnoreCase("") ? "None found" : list);
            return;
         } else if (split.length < 3 && split[1].equalsIgnoreCase("all")) {
            sendError(ERRMSG_PARAM);
View Full Code Here

Examples of javax.naming.Context.trim()

        // look at the env var next
        for (String name : HOME_NAMES) {
            String env = EnvVars.masterEnvVars.get(name);
            if(env!=null)
                return new FileAndDescription(new File(env.trim()).getAbsoluteFile(),"EnvVars.masterEnvVars.get(\""+name+"\")");
        }

        // otherwise pick a place by ourselves

        String root = event.getServletContext().getRealPath("/WEB-INF/workspace");
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.trim()

    List<Predicate> filters = new LinkedList<>();
    // alc2
    filters.add(cb.equal(root.get("alc2"), HpEKConstants.EK_ALC2));
    // fltn
    if (HpUfisUtils.isNotEmptyStr(params.getFltn())) {
      filters.add(cb.equal(cb.trim(root.<String> get("fltn")),
          params.getFltn()));
    }
    // regn
    filters.add(cb.equal(cb.trim(root.<String> get("regn")),
        params.getRegn()));
View Full Code Here

Examples of net.rim.device.api.util.DataBuffer.trim()

                db.write( data, 0, chunk );
            }

            // trim the array - the buffer in DataBuffer grows
            // past the size and fills with empty chars
            db.trim();

            // synchronize this block to avoid race conditions with the queue
            synchronized( messageQueue ) {
                // Create push object, add to queue for callback thread
                PushData pd = new PushData( conn, inputStream, db.getArray() );
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.trim()

                        if (it.hasNext())
                            fieldInfo.append(",");
                    }
                    fieldInfo.append("]");
                }
                if (data.trim())
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("trim:").append(
                            data.trim());
                if (data.mask() != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("mask:")
                            .append("/^").append(data.mask()).append("$/");
View Full Code Here

Examples of opennlp.tools.util.Span.trim()

          Span entitySpan = entity.getSpan();

          if (sentence.contains(entitySpan)) {
            entityIdSet.remove(ann.getId());

            entitySpan = entitySpan.trim(sample.getText());

            Integer nameBeginIndex = tokenIndexMap.get(-entitySpan.getStart());
            Integer nameEndIndex = tokenIndexMap.get(entitySpan.getEnd());

            if (nameBeginIndex != null && nameEndIndex != null) {
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.annotation.DataField.trim()

            // Get DataField from model
            DataField dataField = dataFields.get(pos);
            ObjectHelper.notNull(dataField, "No position " + pos + " defined for the field: " + data + ", line: " + line);

            if (dataField.trim()) {
                data = data.trim();
            }

            if (dataField.required()) {
                // Increment counter of mandatory fields
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.annotation.DataField.trim()

                    // Get field value
                    Object value = field.get(obj);

                    result = formatString(format, value);

                    if (datafield.trim()) {
                        result = result.trim();
                    }

                    if (datafield.clip() && result.length() > datafield.length()) {
                        result = result.substring(0, datafield.length());
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.annotation.DataField.trim()

            // Get DataField from model
            DataField dataField = dataFields.get(pos);
            ObjectHelper.notNull(dataField, "No position " + pos + " defined for the field: " + data + ", line: " + line);

            if (dataField.trim()) {
                data = data.trim();
            }

            if (dataField.required()) {
                // Increment counter of mandatory fields
View Full Code Here

Examples of org.apache.camel.dataformat.bindy.annotation.DataField.trim()

                    // Get field value
                    Object value = field.get(obj);

                    result = formatString(format, value);

                    if (datafield.trim()) {
                        result = result.trim();
                    }

                    if (datafield.clip() && result.length() > datafield.length()) {
                        result = result.substring(0, datafield.length());
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.