1
2
3
4
5
6
7
8
9
10
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 }