public class XLinkProcessorImpl extends java.lang.Object implements XLinkProcessor, java.io.Serializable
ARC, CUSTOM_LINK, EXTENDED_LINK, LOCATOR, NOT_XLINK, RESOURCE, SIMPLE_LINK, TITLE
Constructor and Description |
---|
XLinkProcessorImpl(XLinkHandler xlinkHandler)
constructor
|
XLinkProcessorImpl(XLinkHandler xlinkHandler,
CustomLinkRecogniser recogniser)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Respond to the end of an element, examining the element
for XLink features.
|
boolean |
equals(java.lang.Object obj) |
XLinkHandler |
getXLinkHandler()
Provides access to the XLink handler being used by the XLink processor.
|
int |
hashCode() |
void |
setCustomLinkRecogniser(CustomLinkRecogniser customLinkRecogniser)
Set the custom link recogniser
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Respond to the start of an element,
examining the element for XLink features
|
void |
titleCharacters(char[] buf,
int offset,
int len)
Handles the character content for a title element
|
public XLinkProcessorImpl(XLinkHandler xlinkHandler)
xlinkHandler
- The XLink Handlerpublic XLinkProcessorImpl(XLinkHandler xlinkHandler, CustomLinkRecogniser recogniser)
xlinkHandler
- The XLink Handler.recogniser
- The Custom link recogniser.public void setCustomLinkRecogniser(CustomLinkRecogniser customLinkRecogniser)
setCustomLinkRecogniser
in interface XLinkProcessor
customLinkRecogniser
- The class that indicates if a custom link
has been recognised.public void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws XLinkException
XLinkProcessor
startElement
in interface XLinkProcessor
XLinkException
XLinkProcessor.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws XLinkException
XLinkProcessor
endElement
in interface XLinkProcessor
namespaceURI
- The namespace of the element being ended.lName
- The local name of the element being ended.qName
- The QName of the element being ended.attrs
- The attributes of the element being ended.XLinkException
XLinkProcessor.endElement(String, String, String, Attributes)
public void titleCharacters(char[] buf, int offset, int len) throws XLinkException
XLinkProcessor
titleCharacters
in interface XLinkProcessor
XLinkException
XLinkProcessor.titleCharacters(char[], int, int)
public XLinkHandler getXLinkHandler()
getXLinkHandler
in interface XLinkProcessor
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)