View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.impl.wsdl.support.assertions;
14  
15  import org.apache.xmlbeans.XmlObject;
16  
17  import com.eviware.soapui.model.testsuite.AssertedXPath;
18  import com.eviware.soapui.model.testsuite.TestAssertion;
19  
20  public class AssertedXPathImpl implements AssertedXPath
21  {
22     private final TestAssertion assertion;
23  	private final String path;
24  	private final XmlObject assertedContent;
25  	
26  	public AssertedXPathImpl( TestAssertion assertion, String path, XmlObject assertedContent )
27  	{
28  	   this.assertion = assertion;
29  		this.path = path;
30  		this.assertedContent = assertedContent;
31  	}
32  	
33  	public TestAssertion getAssertion()
34  	{
35  	   return assertion;
36  	}
37  
38  	public String getLabel()
39  	{
40  		return assertion.getName();
41  	}
42  
43  	public String getPath()
44  	{
45  		return path;
46  	}
47  	
48  	public XmlObject getAssertedContent()
49  	{
50  	   return assertedContent;
51  	}
52  }