Layout
implementations
insteadpublic class LocationTracker extends Object
Point
s where this node may be found. This class is deprecated since version 1.1, as it has been
replaced with a more integrated and efficient mechanism for preserving the layout of IDF, SDRF and ADF files.
IDFLayout
,
SDRFLayout
,
ADFLayout
Constructor and Description |
---|
LocationTracker(MAGETABInvestigation investigation)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getIDFLocations(String idfTag)
Deprecated.
since version 1.1, use IDF.getLayout().getLineNumberForHeader() instead
|
Set<Point> |
getSDRFLocations(SDRFNode sdrfNode)
Deprecated.
since version 1.1, use SDRF.getLayout().getLocationsForNode() instead
|
void |
trackLocation(Handler handler,
Point p)
Deprecated.
since version 1.1
|
public LocationTracker(MAGETABInvestigation investigation)
@Deprecated public void trackLocation(Handler handler, Point p)
Point
in the original source document
where the given handler has taken it's data. Note that the point, p, contains x and y co-ordinates, where the x
co-ordinate is the column number and the y co-ordinate the line number in the source document.
If handlers refer to an entire line or column, then the other co-ordinate will default to zero: so, for example,
IDF handlers should always pass a location with a zero x co-ordinate and a y co-ordinate indicating the line.handler
- the handler to storep
- the point in the source document, where x = column and y = line@Deprecated public int getIDFLocations(String idfTag)
idfTag
- the tag to find the line number for@Deprecated public Set<Point> getSDRFLocations(SDRFNode sdrfNode)
sdrfNode
- the SDRFNode to identify locations forCopyright © 2014. All rights reserved.