Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringList


            return System.getenv().size();
        }

        public String[] getPropertyNames() {
            Set<String> keys = System.getenv().keySet();
            StringList result = new StringList();
            for (Object key : keys) {
                result.add(key.toString());
            }
            return result.toStringArray();
        }
View Full Code Here


            return result;
        }

        public String[] getPropertyNames() {
            Set<Object> keys = System.getProperties().keySet();
            StringList result = new StringList();
            for (Object key : keys) {
                result.add(key.toString());
            }
            return result.toStringArray();
        }
View Full Code Here

        return writer;
    }

    public static StringList readSeparatedRow(String row, char separator, char quote) {
        StringList result = new StringList();

        while (row != null && row.length() > 0) {
            if (row.startsWith(String.valueOf(quote))) {
                StringBuilder buf = new StringBuilder();
                char last = row.charAt(0);
                int ix = 1;
                while (ix < row.length()) {
                    char ch = row.charAt(ix);
                    if (ch == quote && last != '\\') {
                        result.add(buf.toString());
                        row = row.length() > ix + 1 ? row.substring(ix + 1) : null;
                        if (row != null && row.length() > 1 && row.charAt(0) == separator) {
                            row = row.substring(1);
                            ix = -1;
                        }
                        break;
                    } else if (ch != '\\' || last == '\\') {
                        buf.append(ch);
                    }

                    last = ch;
                    ix++;
                }

                if (row != null && ix == row.length()) {
                    result.add(row);
                    row = null;
                }
            } else {
                int ix = row.indexOf(separator);
                if (ix == -1) {
                    result.add(row);
                    row = null;
                } else {
                    result.add(row.substring(0, ix));
                    row = row.substring(ix + 1);
                }
            }
        }
View Full Code Here

        char firstCharacter = str.charAt(0);
        return Character.isLetter(firstCharacter) || firstCharacter == '_';
    }

    public static String[] merge(String[] incomingNames, String string) {
        StringList result = new StringList(incomingNames);
        result.add(string);
        return result.toStringArray();
    }
View Full Code Here

        }
        return result;
    }

    public static List<String> toStringList(Object[] selectedOptions) {
        StringList result = new StringList();

        for (Object o : selectedOptions) {
            result.add(o.toString());
        }

        return result;
    }
View Full Code Here

    }

    @Override
    protected void populateBasicForm(SimpleBindingForm basicForm) {
        super.populateBasicForm(basicForm);
        StringList outgoingNames = getOutgoingNames(request);
        StringList incomingNames = getIncomingNames(request);

        basicForm.addSpace(GROUP_SPACING);
        basicForm.appendComboBox("outgoingWss", "Outgoing WSS", outgoingNames.toStringArray(),
                "The outgoing WS-Security configuration to use");
        basicForm.appendComboBox("incomingWss", "Incoming WSS", incomingNames.toStringArray(),
                "The incoming WS-Security configuration to use");
    }
View Full Code Here

        basicForm.appendComboBox("incomingWss", "Incoming WSS", incomingNames.toStringArray(),
                "The incoming WS-Security configuration to use");
    }

    private StringList getIncomingNames(WsdlRequest request) {
        StringList incomingNames = new StringList(request.getOperation().getInterface().getProject()
                .getWssContainer().getIncomingWssNames());
        incomingNames.add("");
        return incomingNames;
    }
View Full Code Here

        incomingNames.add("");
        return incomingNames;
    }

    private StringList getOutgoingNames(WsdlRequest request) {
        StringList outgoingNames = new StringList(request.getOperation().getInterface().getProject()
                .getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        return outgoingNames;
    }
View Full Code Here

    public void setValue(String value) {
        String[] oldData = getData();
        listModel.clear();

        try {
            StringList stringList = StringList.fromXml(value);

            String[] files = stringList.toStringArray();
            for (String file : files) {
                if (file.trim().length() > 0) {
                    listModel.addElement(file);
                }
            }
View Full Code Here

            SoapUI.logError(e);
        }
    }

    public String getValue() {
        StringList result = new StringList(listModel.toArray());
        return result.toXml();
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringList

Copyright © 2018 www.massapicom. 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.