|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fi.iki.hsivonen.xml.checker.table.Cell
final class Cell
A table cell for table integrity checking.
Field Summary | |
---|---|
private int |
bottom
The first row in the row group onto which this cell does not span. |
private int |
columnNumber
Source column. |
private ErrorHandler |
errorHandler
The error handler. |
private boolean |
header
Whether this is a th cell. |
private String[] |
headers
The value of the headers attribute split on white space. |
private int |
left
The column in which this cell starts. |
private int |
lineNumber
Source line. |
private static int |
MAX_COLSPAN
Magic number from Gecko. |
private static int |
MAX_ROWSPAN
Magic number from Gecko. |
private String |
publicId
Source public id. |
private int |
right
The first column into which this cell does not span. |
private String |
systemId
Source system id. |
Constructor Summary | |
---|---|
Cell(int colspan,
int rowspan,
String[] headers,
boolean header,
Locator locator,
ErrorHandler errorHandler)
|
Method Summary | |
---|---|
String |
elementName()
|
void |
err(String message)
|
void |
errIfNotRowspanZero(String rowGroupType)
|
void |
errOnHorizontalOverlap(Cell laterCell)
Emit errors if this cell and the argument overlap horizontally. |
int |
freeSlot(int potentialSlot)
|
int |
getBottom()
Returns the bottom. |
int |
getColumnNumber()
Returns the columnNumber. |
String[] |
getHeadings()
Returns the headers. |
(package private) int |
getLeft()
Returns the left. |
int |
getLineNumber()
Returns the lineNumber. |
String |
getPublicId()
Returns the publicId. |
(package private) int |
getRight()
Returns the right. |
String |
getSystemId()
Returns the systemId. |
boolean |
isHeader()
Returns the header. |
void |
setPosition(int top,
int left)
|
boolean |
shouldBeCulled(int row)
|
void |
warn(String message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int MAX_COLSPAN
private static final int MAX_ROWSPAN
private int left
private int bottom
However, Integen.MAX_VALUE
is a magic value that means
rowspan=0
.
private int right
private final String[] headers
headers
attribute split on white space.
private final boolean header
th
cell.
private final int columnNumber
private final int lineNumber
private final String publicId
private final String systemId
private final ErrorHandler errorHandler
Constructor Detail |
---|
Cell(int colspan, int rowspan, String[] headers, boolean header, Locator locator, ErrorHandler errorHandler) throws SAXException
SAXException
Method Detail |
---|
public String[] getHeadings()
public boolean isHeader()
public void warn(String message) throws SAXException
SAXException
public void err(String message) throws SAXException
SAXException
public void errOnHorizontalOverlap(Cell laterCell) throws SAXException
laterCell
- another cell
SAXException
- if the ErrorHandler
throwspublic void setPosition(int top, int left) throws SAXException
SAXException
public boolean shouldBeCulled(int row)
public int freeSlot(int potentialSlot)
public int getBottom()
int getLeft()
int getRight()
public void errIfNotRowspanZero(String rowGroupType) throws SAXException
SAXException
public int getColumnNumber()
getColumnNumber
in interface Locator
public int getLineNumber()
getLineNumber
in interface Locator
public String getPublicId()
getPublicId
in interface Locator
public String getSystemId()
getSystemId
in interface Locator
public String elementName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |