Code example for Locator

Methods: getLineNumber, getSystemId

0
        return throwSyntaxErrorException;
    } 
 
    public void addError(String message)
    { 
        errors.add(message + " at " + locator.getSystemId() + " line " + locator.getLineNumber());
    } 
 
    public List getErrors()
    { 
        return errors;
    } 
 
    public void addMessage(String message)
    { 
        messages.add(message + " at " + locator.getSystemId() + " line " + locator.getLineNumber());
    } 
 
    public List getMessages()
    { 
        return messages;