Package com.eviware.soapui.model.propertyexpansion

Examples of com.eviware.soapui.model.propertyexpansion.PropertyExpansion


              if( xpath != null )
                xpath = PropertyExpansionUtils.shortenXPathForPropertyExpansion( xpath, modelItem.getProperty()
                    .getValue() );
            }

            PropertyExpansion propertyExpansion = new PropertyExpansionImpl( modelItem.getProperty(), xpath );

            Point point = dtde.getLocation();
            int column = getPropertiesTable().columnAtPoint( point );
            int row = getPropertiesTable().rowAtPoint( point );

            if( row == -1 )
            {
              if( holder instanceof MutableTestPropertyHolder )
              {
                MutableTestPropertyHolder mtph = ( MutableTestPropertyHolder )holder;
                String name = UISupport.prompt( "Specify unique name of property", "Add Property", modelItem
                    .getProperty().getName() );
                while( name != null && mtph.hasProperty( name ) )
                {
                  name = UISupport.prompt( "Specify unique name of property", "Add Property", modelItem
                      .getProperty().getName() );
                }

                if( name != null )
                  mtph.addProperty( name ).setValue( propertyExpansion.toString() );
              }
            }
            else
            {
              getPropertiesTable().setValueAt( propertyExpansion.toString(), row, column );
            }

            dtde.dropComplete( true );
          }
        }
View Full Code Here


            if( xpath != null )
              xpath = PropertyExpansionUtils.shortenXPathForPropertyExpansion( xpath, modelItem.getProperty()
                  .getValue() );
          }

          PropertyExpansion propertyExpansion = new PropertyExpansionImpl( modelItem.getProperty(), xpath );

          Point point = dtde.getLocation();
          int column = table.columnAtPoint( point );
          int row = table.rowAtPoint( point );
          table.setValueAt( propertyExpansion.toString(), row, column );

          dtde.dropComplete( true );
        }
      }
      catch( Exception e )
View Full Code Here

      {
        sourceXPath = PropertyExpansionUtils.shortenXPathForPropertyExpansion( sourceXPath, val );
      }

      TestProperty property = sourceStep.getProperty( sourceProperty );
      PropertyExpansion pe = new PropertyExpansionImpl( property, sourceXPath );

      String valueForCreation = target.getValueForCreation();
      target.insertPropertyExpansion( pe, null );

      if( !StringUtils.hasContent( sourceXPath ) && StringUtils.hasContent( valueForCreation )
View Full Code Here

                                xpath = PropertyExpansionUtils.shortenXPathForPropertyExpansion(xpath, modelItem.getProperty()
                                        .getValue());
                            }
                        }

                        PropertyExpansion propertyExpansion = new PropertyExpansionImpl(modelItem.getProperty(), xpath);

                        Point point = dtde.getLocation();
                        int column = getPropertiesTable().columnAtPoint(point);
                        int row = getPropertiesTable().rowAtPoint(point);

                        if (row == -1) {
                            if (holder instanceof MutableTestPropertyHolder) {
                                MutableTestPropertyHolder mtph = (MutableTestPropertyHolder) holder;
                                String name = UISupport.prompt("Specify unique name of property", "Add Property", modelItem
                                        .getProperty().getName());
                                while (name != null && mtph.hasProperty(name)) {
                                    name = UISupport.prompt("Specify unique name of property", "Add Property", modelItem
                                            .getProperty().getName());
                                }

                                if (name != null) {
                                    mtph.addProperty(name).setValue(propertyExpansion.toString());
                                }
                            }
                        } else {
                            getPropertiesTable().setValueAt(propertyExpansion.toString(), row, column);
                        }

                        dtde.dropComplete(true);
                    }
                } catch (Exception e) {
View Full Code Here

                            xpath = PropertyExpansionUtils.shortenXPathForPropertyExpansion(xpath, modelItem.getProperty()
                                    .getValue());
                        }
                    }

                    PropertyExpansion propertyExpansion = new PropertyExpansionImpl(modelItem.getProperty(), xpath);

                    Point point = dtde.getLocation();
                    int column = table.columnAtPoint(point);
                    int row = table.rowAtPoint(point);
                    table.setValueAt(propertyExpansion.toString(), row, column);

                    dtde.dropComplete(true);
                }
            } catch (Exception e) {
                SoapUI.logError(e);
View Full Code Here

            if (StringUtils.hasContent(sourceXPath)) {
                sourceXPath = PropertyExpansionUtils.shortenXPathForPropertyExpansion(sourceXPath, val);
            }

            TestProperty property = sourceStep.getProperty(sourceProperty);
            PropertyExpansion pe = new PropertyExpansionImpl(property, sourceXPath);

            String userSelectedValue = target.getValueForCreation();
            target.insertPropertyExpansion(pe, null);

            if (!StringUtils.hasContent(sourceXPath) && StringUtils.hasContent(userSelectedValue)
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.propertyexpansion.PropertyExpansion

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.