|
|||||||||
| Home >> All >> com >> nwalsh >> [ saxon overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.nwalsh.saxon
Class Callout

java.lang.Objectcom.nwalsh.saxon.Callout
- All Implemented Interfaces:
- java.lang.Comparable
- public class Callout
- extends java.lang.Object
- implements java.lang.Comparable
- extends java.lang.Object
A class for maintaining information about callouts.
To make processing callouts easier, they are parsed out of the input structure and stored in a sorted array. (The array is sorted according to the order in which the callouts occur.)
This class is just the little record that we store in the array for each callout.
| Field Summary | |
private org.w3c.dom.Element |
area
The area Element item that generated this callout. |
private int |
callout
The callout number. |
private int |
col
The column in which this callout appears. |
private int |
line
The line on which this callout occurs. |
| Constructor Summary | |
Callout(int callout,
org.w3c.dom.Element area,
int line,
int col)
The constructor; initialize the private data structures. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
The compareTo method compares this Callout with another. |
org.w3c.dom.Element |
getArea()
Access the Callout's area. |
int |
getCallout()
Access the Callout's callout number. |
int |
getColumn()
Access the Callout's column. |
int |
getLine()
Access the Callout's line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
callout
private int callout
- The callout number.
area
private org.w3c.dom.Element area
- The area Element item that generated this callout.
line
private int line
- The line on which this callout occurs.
col
private int col
- The column in which this callout appears.
| Constructor Detail |
Callout
public Callout(int callout,
org.w3c.dom.Element area,
int line,
int col)
- The constructor; initialize the private data structures.
| Method Detail |
compareTo
public int compareTo(java.lang.Object o)
The compareTo method compares this Callout with another.
Given two Callouts, A and B, A < B if:
- A.line < B.line, or
- A.line = B.line && A.col < B.col, or
- A.line = B.line && A.col = B.col && A.callout < B.callout
- Otherwise, they're equal.
- Specified by:
compareToin interfacejava.lang.Comparable
getArea
public org.w3c.dom.Element getArea()
- Access the Callout's area.
getLine
public int getLine()
- Access the Callout's line.
getColumn
public int getColumn()
- Access the Callout's column.
getCallout
public int getCallout()
- Access the Callout's callout number.
|
|||||||||
| Home >> All >> com >> nwalsh >> [ saxon overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.nwalsh.saxon.Callout