Package com.eviware.soapui.support.xml.XmlObjectTreeModel

Examples of com.eviware.soapui.support.xml.XmlObjectTreeModel.XmlTreeNode


                }
                treeNodes = model.selectTreeNodes(context.expand(scp.getXpath()));

                if (treeNodes.length > 0) {
                    XmlTreeNode mynode = treeNodes[0];

                    if (mynode.isLeaf()) {
                        if (mynode.getSchemaType() != null && mynode.getSchemaType().getEnumerationValues() != null
                                && mynode.getSchemaType().getEnumerationValues().length > 0) {
                            EnumerationValues nodeInfo = new EnumerationValues(mynode.getSchemaType().getBaseType()
                                    .getShortJavaName());
                            for (XmlAnySimpleType s : mynode.getSchemaType().getEnumerationValues()) {
                                nodeInfo.addValue(s.getStringValue());
                            }
                            updateEnumNodeValue(mynode, nodeInfo);
                            stsmap.put(scp.getLabel(), mynode.getNodeText());
                            // addToUpdated( context, scp.getLabel(),
                            // mynode.getNodeText() );
                            if (strategy.equals(StrategyTypeConfig.ONE_BY_ONE)) {
                                PropertyMutation pm = new PropertyMutation();
                                pm.setPropertyName(scp.getName());
                                pm.setPropertyValue(model.getXmlObject().toString());
                                stsmap = new StringToStringMap();
                                stsmap.put(scp.getLabel(), mynode.getNodeText());
                                pm.setMutatedParameters(stsmap);
                                addMutation(context, pm);
                            }
                        } else {
                            SchemaTypeImpl simpleType = (SchemaTypeImpl) mynode.getSchemaType();
                            XmlObjectTreeModel model2 = new XmlObjectTreeModel(simpleType.getTypeSystem(),
                                    simpleType.getParseObject());
                            extractRestrictions(model2, context, mynode, model, scp, stsmap);
                        }
                    }
View Full Code Here


    private void getNextChild(XmlTreeNode node, SecurityTestRunContext context, XmlTreeNode nodeToUpdate,
                              XmlObjectTreeModel model, SecurityCheckedParameter scp, StringToStringMap stsmap) {
        String baseType = null;
        for (int i = 0; i < node.getChildCount(); i++) {
            XmlTreeNode mynode = node.getChild(i);

            if ("xsd:restriction".equals(mynode.getParent().getNodeName())) {
                if (mynode.getNodeName().equals("@base")) {
                    baseType = mynode.getNodeText();
                } else {
                    createMutation(baseType, mynode, context, nodeToUpdate, model, scp, stsmap);
                }
            }
            getNextChild(mynode, context, nodeToUpdate, model, scp, stsmap);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.xml.XmlObjectTreeModel.XmlTreeNode

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.