|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
SDLLocator.java | - | 100% | 100% | 100% |
|
1 |
// Copyright 2004 The Apache Software Foundation
|
|
2 |
//
|
|
3 |
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4 |
// you may not use this file except in compliance with the License.
|
|
5 |
// You may obtain a copy of the License at
|
|
6 |
//
|
|
7 |
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8 |
//
|
|
9 |
// Unless required by applicable law or agreed to in writing, software
|
|
10 |
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12 |
// See the License for the specific language governing permissions and
|
|
13 |
// limitations under the License.
|
|
14 |
|
|
15 |
package org.apache.hivemind.sdl.parser;
|
|
16 |
|
|
17 |
import org.xml.sax.Locator;
|
|
18 |
|
|
19 |
/**
|
|
20 |
* Implementation of {@link org.xml.sax.Locator} where the values
|
|
21 |
* (just the line number and column number)
|
|
22 |
* are provided by the {@link org.apache.hivemind.sdl.parser.SimpleDataLanguageParser}.
|
|
23 |
*
|
|
24 |
* @author Howard Lewis Ship
|
|
25 |
*/
|
|
26 |
public class SDLLocator implements Locator |
|
27 |
{ |
|
28 |
private int _columnNumber; |
|
29 |
private int _lineNumber; |
|
30 |
|
|
31 | 50076 |
void update(int lineNumber, int columnNumber) |
32 |
{ |
|
33 | 50076 |
_lineNumber = lineNumber; _columnNumber = columnNumber; |
34 |
|
|
35 |
} |
|
36 |
|
|
37 | 24639 |
public int getColumnNumber() |
38 |
{ |
|
39 | 24639 |
return _columnNumber;
|
40 |
} |
|
41 |
|
|
42 | 24639 |
public int getLineNumber() |
43 |
{ |
|
44 | 24639 |
return _lineNumber;
|
45 |
} |
|
46 |
|
|
47 |
/**
|
|
48 |
* @return null always
|
|
49 |
*/
|
|
50 | 2 |
public String getPublicId()
|
51 |
{ |
|
52 | 2 |
return null; |
53 |
} |
|
54 |
|
|
55 |
/**
|
|
56 |
* @return null always
|
|
57 |
*/
|
|
58 | 2 |
public String getSystemId()
|
59 |
{ |
|
60 | 2 |
return null; |
61 |
} |
|
62 |
|
|
63 |
} |
|
64 |
|
|