public class TitleHandler extends XLinkHandlerDefaultImpl
Constructor and Description |
---|
TitleHandler(TitleTestCase test)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
endTitle(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
Test the handling of title starts
|
void |
error(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
java.lang.String message)
Ignore any XLink parsing errors
|
void |
startTitle(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Test the handling of title ends
|
void |
titleCharacters(char[] buf,
int offset,
int len)
Test the handling of title content
|
endArc, endExtendedLink, endLocator, endResource, endSimpleLink, equals, hashCode, startArc, startExtendedLink, startLocator, startResource, startSimpleLink, warning, xmlBaseEnd, xmlBaseStart
public TitleHandler(TitleTestCase test)
test
- The test case that uses this handlerpublic void startTitle(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws XLinkException
startTitle
in interface XLinkHandler
startTitle
in class XLinkHandlerDefaultImpl
XLinkException
XLinkHandler.startTitle(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endTitle(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName) throws XLinkException
endTitle
in interface XLinkHandler
endTitle
in class XLinkHandlerDefaultImpl
XLinkException
XLinkHandler.endTitle(java.lang.String, java.lang.String, java.lang.String)
public void titleCharacters(char[] buf, int offset, int len) throws XLinkException
titleCharacters
in interface XLinkHandler
titleCharacters
in class XLinkHandlerDefaultImpl
XLinkException
XLinkHandler.titleCharacters(char[], int, int)
public void error(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs, java.lang.String message) throws XLinkException
error
in interface XLinkHandler
error
in class XLinkHandlerDefaultImpl
namespaceURI
- Namespace of the element generating the errorlName
- local name of the element generating the errorqName
- qName of the element generating the errorattrs
- attributes of the element generating the errormessage
- The text of the error messageXLinkException
- if the handler does not deal with
the XLink problem internallyXLinkHandler.error(java.lang.String,java.lang.String, java.lang.String, org.xml.sax.Attributes, java.lang.String)