public final class EmptyLocator extends Object implements Locator
Constructor and Description |
---|
EmptyLocator() |
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Returns the column number for the sink event (starting from 1).
|
int |
getLineNumber()
Returns the line number for the sink event (starting from 1).
|
String |
getReference()
Returns the underlying source reference (for file based documents a relative file path, otherwise an arbitrary string or
null ). |
public EmptyLocator()
public int getLineNumber()
Locator
-1
.getLineNumber
in interface Locator
public int getColumnNumber()
Locator
-1
.getColumnNumber
in interface Locator
public String getReference()
Locator
null
).getReference
in interface Locator
null
)Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.