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  /***
    19   * Location in a XmlDocument
    20   *
    21   * @author ole.matzura
    22   */
    23
    24  public class XmlLocation
    25  {
    26  	private final int line;
    27  	private final int column;
    28  	private XmlObject xmlObject;
    29  	private final SchemaType schemaType;
    30  	private String documentation;
    31
    32  	public XmlLocation( int line,  int column)
    33  	{
    34  		this( line, column, null, null, null );
    35  	}
    36
    37  	public XmlLocation( int line, int column, XmlObject xmlObject, SchemaType schemaType, String documentation )
    38  	{
    39  		this.line = line;
    40  		this.column = column;
    41  		this.xmlObject = xmlObject;
    42  		this.schemaType = schemaType;
    43  		this.documentation = documentation;
    44  	}
    45
    46  	public int getColumn()
    47  	{
    48  		return column;
    49  	}
    50
    51  	public int getLine()
    52  	{
    53  		return line;
    54  	}
    55
    56  	public SchemaType getSchemaType()
    57  	{
    58  		return schemaType;
    59  	}
    60
    61  	public XmlObject getXmlObject()
    62  	{
    63  		return xmlObject;
    64  	}
    65
    66  	public String getDocumentation()
    67  	{
    68  		return documentation;
    69  	}
    70
    71  	public void setDocumentation( String documentation )
    72  	{
    73  		this.documentation = documentation;
    74  	}
    75
    76
    77  }