Class VotLintEntityResolver
java.lang.Object
uk.ac.starlink.ttools.votlint.VotLintEntityResolver
- All Implemented Interfaces:
EntityResolver, LexicalHandler
Provides entity resolution for the VOTable linter.
In particular, when registered as a LexicalHandler during the VOTable
parse, this resolver will make sure that whatever entity is declared
as the external DTD in fact resolves to the (locally held) text of
one of the VOTable DTDs (according to the context's version).
This both ensures that we're using a known, correct copy of the DTD,
and prevents the necessity for making external network connections.
- Since:
- 8 Apr 2005
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomment(char[] ch, int start, int length) voidendCDATA()voidendDTD()voidresolveEntity(String publicId, String systemId) voidvoidvoidstartEntity(String name)
-
Constructor Details
-
VotLintEntityResolver
Constructor.- Parameters:
context- lint context
-
-
Method Details
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver
-
endDTD
public void endDTD()- Specified by:
endDTDin interfaceLexicalHandler
-
startCDATA
public void startCDATA()- Specified by:
startCDATAin interfaceLexicalHandler
-
endCDATA
public void endCDATA()- Specified by:
endCDATAin interfaceLexicalHandler
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler
-
comment
public void comment(char[] ch, int start, int length) - Specified by:
commentin interfaceLexicalHandler
-