Home | History | Annotate | Download | only in helpers

Lines Matching defs:locator

1 // SAX default implementation for Locator.
8 import org.xml.sax.Locator;
12 * Provide an optional convenience implementation of Locator.
22 * can use it to make a persistent snapshot of a locator at any
26 * Locator locator;
27 * Locator startloc;
29 * public void setLocator (Locator locator)
31 * // note the locator
32 * this.locator = locator;
39 * Locator startloc = new LocatorImpl(locator);
45 * requested, rather than constantly updating a Locator object.</p>
50 * @see org.xml.sax.Locator Locator
52 public class LocatorImpl implements Locator
60 * of this class is to make a snapshot of an existing Locator.</p>
70 * <p>Create a persistent copy of the current state of a locator.
71 * When the original locator changes, this copy will still keep
75 * @param locator The locator to copy.
77 public LocatorImpl (Locator locator)
79 setPublicId(locator.getPublicId());
80 setSystemId(locator.getSystemId());
81 setLineNumber(locator.getLineNumber());
82 setColumnNumber(locator.getColumnNumber());
89 // Implementation of org.xml.sax.Locator
98 * @see org.xml.sax.Locator#getPublicId
112 * @see org.xml.sax.Locator#getSystemId
125 * @see org.xml.sax.Locator#getLineNumber
138 * @see org.xml.sax.Locator#getColumnNumber
150 // Setters for the properties (not in org.xml.sax.Locator)
155 * Set the public identifier for this locator.
168 * Set the system identifier for this locator.
181 * Set the line number for this locator (1-based).
193 * Set the column number for this locator (1-based).