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.panels.request.components.editor;
14  
15  import org.apache.xmlbeans.SchemaType;
16  import org.apache.xmlbeans.XmlObject;
17  
18  public class XmlLocation
19  {
20  	private final int line;
21  	private final int column;
22  	private XmlObject xmlObject;
23  	private final SchemaType schemaType;
24  	private String documentation;
25  
26  	public XmlLocation( int line,  int column)
27  	{
28  		this( line, column, null, null, null );
29  	}
30  
31  	public XmlLocation( int line, int column, XmlObject xmlObject, SchemaType schemaType, String documentation )
32  	{
33  		this.line = line;
34  		this.column = column;
35  		this.xmlObject = xmlObject;
36  		this.schemaType = schemaType;
37  		this.documentation = documentation;
38  	}
39  
40  	public int getColumn()
41  	{
42  		return column;
43  	}
44  
45  	public int getLine()
46  	{
47  		return line;
48  	}
49  
50  	public SchemaType getSchemaType()
51  	{
52  		return schemaType;
53  	}
54  
55  	public XmlObject getXmlObject()
56  	{
57  		return xmlObject;
58  	}
59  
60  	public String getDocumentation()
61  	{
62  		return documentation;
63  	}
64  
65  	public void setDocumentation( String documentation )
66  	{
67  		this.documentation = documentation;
68  	}
69  	
70  	
71  }