public class Location extends Object
Constructor and Description |
---|
Location()
Creates a new instance of Location
|
Location(String sysId,
String pubId,
int line)
Constructs instance using all supplied values.
|
Modifier and Type | Method and Description |
---|---|
int |
getLineNumber()
Returns the line number where the declaration occured within the DTD file.
|
String |
getPublicId()
Returns public identifier for the file containing the declaration.
|
String |
getSystemId()
Returns the system name of the file containing the declaration.
|
void |
setLineNumber(int line)
Sets line number of the declaration in the DTD file.
|
void |
setPublicId(String pubId)
Sets public identifier of the DTD file containing the declaration.
|
void |
setSystemId(String sysId)
Sets value of the filename
|
public String getPublicId()
public int getLineNumber()
public String getSystemId()
public void setLineNumber(int line)
line
- Line number of the declarationpublic void setPublicId(String pubId)
pubId
- Public id of the dtd filepublic void setSystemId(String sysId)
sysId
- Filename of the file containing the declaration