Package uk.ac.starlink.ttools.votlint
Class TableHandler
java.lang.Object
uk.ac.starlink.ttools.votlint.ElementHandler
uk.ac.starlink.ttools.votlint.TableHandler
ElementHandler for TABLE elements.
- Since:
- 7 Apr 2005
- Author:
- Mark Taylor (Starlink)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAttribute checker which checks a TABLE's nrows attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the element has ended.voidfoundRow()Called to register that a row in this table has been seen.longReturns the index of the row currently being read.Returns a list of the fields currently found.voidregisterField(FieldHandler field) Called by a child FIELD element to indicate that a column has been seen, and to describe how to check the contents of that column.Methods inherited from class uk.ac.starlink.ttools.votlint.ElementHandler
characters, configure, error, getAncestry, getAttribute, getContext, getName, getRef, info, registerChildName, setAncestry, setAttributes, startElement, toString, warning
-
Constructor Details
-
TableHandler
public TableHandler()
-
-
Method Details
-
endElement
public void endElement()Description copied from class:ElementHandlerCalled when the element has ended. The default implementation does nothing.- Overrides:
endElementin classElementHandler
-
foundRow
public void foundRow()Called to register that a row in this table has been seen. Used to keep track of how many rows there are. -
getCurrentRowIndex
public long getCurrentRowIndex()Returns the index of the row currently being read.- Returns:
- zero-based row index
-
registerField
Called by a child FIELD element to indicate that a column has been seen, and to describe how to check the contents of that column. If no working parser can be made, this method should be called withparser=null.- Parameters:
field- parser for the newly added field
-
getFields
Returns a list of the fields currently found. There will be one for each FIELD child so far encountered.- Returns:
- parser list
-