private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
Map<String, String> typeToLocation = new HashMap<String, String>(); for(String refID : referenceIds) { Location loc = getLocationByReferenceId(refID); Info info = getInfoByReferenceId(refID); typeToLocation.put(info.getType(), loc.getLocation()); }
public void setDocumentLocator(Locator locator) { _location.setLocator(locator); }
Map<String, String> referenceIdToLocation = new HashMap<String, String>(); for(Location loc : locationList) { referenceIdToLocation.put(loc.getReferenceId(), loc.getLocation()); } Map<String, String> typeToLocation = new HashMap<String, String>(); for(Info info : infoList) { typeToLocation.put(info.getType(), referenceIdToLocation.get(info.getReferenceId())); }
private StringBuffer _text = null; private List _comments = null; private Location _location = new Location(); private LexicalHandler _lh = null; private int _depth = -1;
private StringBuffer _text = null; private List<String> _comments = null; private Location _location = new Location(); private LexicalHandler _lh = null; private int _depth = -1;
private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
public void setDocumentLocator(Locator locator) { _location.setLocator(locator); }
private StringBuffer _text = null; private List<String> _comments = null; private Location _location = new Location(); private LexicalHandler _lh = null; private int _depth = -1;
private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
public void setDocumentLocator(Locator locator) { _location.setLocator(locator); }
private StringBuffer _text = null; private List<String> _comments = null; private Location _location = new Location(); private LexicalHandler _lh = null; private int _depth = -1;
private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
public void setDocumentLocator(Locator locator) { _location.setLocator(locator); }
private void startTable(Attributes attrs) { _table = _schema.addTable(attrs.getValue("name")); _table.setSource(getSourceFile(), SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { _table.setLineNumber(locator.getLineNumber()); _table.setColNumber(locator.getColumnNumber()); } }
/** * Return the current location within the source file. */ protected String currentLocation() { return " [" + _loc.get("loc-prefix") + _location.getLocation() + "]"; }
private void startTable(Attributes attrs) { _table = _schema.addTable(attrs.getValue("name")); _table.setSource(getSourceFile(), SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { _table.setLineNumber(locator.getLineNumber()); _table.setColNumber(locator.getColumnNumber()); } }