|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XLinkProcessor
The XLink processor is responsible for taking the input from a SAX event and recognising any XLink events resulting from that SAX event and then passing the XLink event through to the chosen XLinkHandler. This makes the job of the XLink handler simplify down to one of Syntax recognition and XLink state tracking to ensure that only actual XLink are triggering XLink events. Note that the XLink specification is pretty persnicketty regarding nested XLink structures.
| Field Summary | |
|---|---|
static Integer |
ARC
|
static Integer |
CUSTOM_LINK
|
static Integer |
EXTENDED_LINK
|
static Integer |
LOCATOR
|
static Integer |
NOT_XLINK
|
static Integer |
RESOURCE
|
static Integer |
SIMPLE_LINK
|
static Integer |
TITLE
|
| Method Summary | |
|---|---|
void |
endElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
Respond to the end of an element, examining the element for XLink features. |
XLinkHandler |
getXLinkHandler()
Provides access to the XLink handler being used by the XLink processor. |
void |
setCustomLinkRecogniser(CustomLinkRecogniser customLinkRecogniser)
Set the custom link recogniser |
void |
startElement(String namespaceURI,
String lName,
String qName,
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 |
| Field Detail |
|---|
static final Integer SIMPLE_LINK
static final Integer EXTENDED_LINK
static final Integer CUSTOM_LINK
static final Integer RESOURCE
static final Integer LOCATOR
static final Integer ARC
static final Integer TITLE
static final Integer NOT_XLINK
| Method Detail |
|---|
void setCustomLinkRecogniser(CustomLinkRecogniser customLinkRecogniser)
customLinkRecogniser - The class that indicates if a custom link
has been recognised.
void startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
throws XLinkException
namespaceURI - lName - qName - attrs -
XLinkException
void endElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
throws XLinkException
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.
XLinkExceptionElementState.ElementState(ElementState, Attributes)
void titleCharacters(char[] buf,
int offset,
int len)
throws XLinkException
buf - offset - len -
XLinkExceptionXLinkHandler getXLinkHandler()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||