01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * 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: /**
19: * Location in a XmlDocument
20: *
21: * @author ole.matzura
22: */
23:
24: public class XmlLocation {
25: private final int line;
26: private final int column;
27: private XmlObject xmlObject;
28: private final SchemaType schemaType;
29: private String documentation;
30:
31: public XmlLocation(int line, int column) {
32: this (line, column, null, null, null);
33: }
34:
35: public XmlLocation(int line, int column, XmlObject xmlObject,
36: SchemaType schemaType, String documentation) {
37: this .line = line;
38: this .column = column;
39: this .xmlObject = xmlObject;
40: this .schemaType = schemaType;
41: this .documentation = documentation;
42: }
43:
44: public int getColumn() {
45: return column;
46: }
47:
48: public int getLine() {
49: return line;
50: }
51:
52: public SchemaType getSchemaType() {
53: return schemaType;
54: }
55:
56: public XmlObject getXmlObject() {
57: return xmlObject;
58: }
59:
60: public String getDocumentation() {
61: return documentation;
62: }
63:
64: public void setDocumentation(String documentation) {
65: this.documentation = documentation;
66: }
67:
68: }
|