Package com.nwalsh.xalan
Class Callout
java.lang.Object
com.nwalsh.xalan.Callout
- All Implemented Interfaces:
Comparable
Utility class for the Verbatim extension (ignore this).
$Id: Callout.java 5932 2006-05-04 13:23:51Z nwalsh $
Copyright (C) 2000 Norman Walsh.
This class is just for book keeping in the Verbatim class. It stores information about the location of callouts.
Only line/column based callouts are supported. This class implements the Comparable interface so that callouts can be sorted. Callouts are sorted so that they occur in left-to-right, top-to-bottom order based on line/column.
Change Log:
- 1.0
Initial release.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe compareTo method compares this Callout with another.getArea()Access the Callout's area.intAccess the Callout's callout number.intAccess the Callout's column.intgetLine()Access the Callout's line.Access the Callout's otherType.intgetType()Access the Callout's type.
-
Field Details
-
CALS_PAIR
public static final int CALS_PAIR- See Also:
-
LINE_COLUMN
public static final int LINE_COLUMN- See Also:
-
LINE_COLUMN_PAIR
public static final int LINE_COLUMN_PAIR- See Also:
-
LINE_RANGE
public static final int LINE_RANGE- See Also:
-
OTHER
public static final int OTHER- See Also:
-
-
Constructor Details
-
Callout
The constructor; initialize the private data structures. -
Callout
The constructor; initialize the private data structures.
-
-
Method Details
-
compareTo
The compareTo method compares this Callout with another.
Given two Callouts, A and B, A invalid input: '<' B if:
- A.line invalid input: '<' B.line, or
- A.line = B.line invalid input: '&'invalid input: '&' A.col invalid input: '<' B.col, or
- A.line = B.line invalid input: '&'invalid input: '&' A.col = B.col invalid input: '&'invalid input: '&' A.callout invalid input: '<' B.callout
- Otherwise, they're equal.
- Specified by:
compareToin interfaceComparable
-
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. -
getType
public int getType()Access the Callout's type. -
getOtherType
Access the Callout's otherType.
-