blob: 89e859a47d239b744f603c5cf4a8023f7e3b1f63 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 by SAP AG, Walldorf.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.jaxws.utils.internal.annotations.impl;
import org.eclipse.jst.ws.jaxws.utils.annotations.ILocator;
/**
* Implementor of {@link ILocator} interface
*/
public class LocatorImpl implements ILocator
{
private int lineNumber;
private int startPosition;
private int length;
public LocatorImpl(final int lineNumber, final int startPosition, final int length)
{
this.length = length;
this.startPosition = startPosition;
this.lineNumber = lineNumber;
}
public int getLength()
{
return this.length;
}
public int getStartPosition()
{
return this.startPosition;
}
public int getLineNumber()
{
return lineNumber;
}
}