public abstract class XBMCExtension extends XMLParser
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
Constructor and Description |
---|
XBMCExtension(XBMCAddon addon,
java.io.File scraperFile,
java.lang.String point)
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
executeXBMCFunction(XBMCAddon rootAddon,
org.w3c.dom.Element functionNode)
Used to execute a XBMC function
|
abstract java.lang.String |
executeXBMCScraperFunction(XBMCAddon rootAddon,
java.lang.String functionName)
Used to execute a XBMC function
|
abstract org.w3c.dom.Element |
findXBMCScraperFunction(XBMCAddon rootAddon,
java.lang.String functionName)
Used to find the scraper function
|
protected XBMCAddon |
getAddon() |
protected org.w3c.dom.Document |
getDocument() |
java.io.File |
getFile()
Used to get the XML scraper file been used
|
java.lang.String |
toString() |
createDocBuilder, createFactory, deleteNode, domToStr, domToStrNoXMLProlog, encodeAttributeValue, firstChild, fixXMl, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML
public XBMCExtension(XBMCAddon addon, java.io.File scraperFile, java.lang.String point)
addon
- the addonscraperFile
- The scraper file the extension is been read frompoint
- The extension point been used for the extensionprotected org.w3c.dom.Document getDocument() throws XBMCException
XBMCException
public java.lang.String executeXBMCFunction(XBMCAddon rootAddon, org.w3c.dom.Element functionNode) throws XBMCException, XMLParserException
rootAddon
- The root addon that required all the othersfunctionNode
- The node of the functionXBMCException
- Thrown if their is a XBMC problemXMLParserException
- Thrown if their is a XML problempublic java.io.File getFile()
public abstract java.lang.String executeXBMCScraperFunction(XBMCAddon rootAddon, java.lang.String functionName) throws XBMCException, XMLParserException
rootAddon
- The root addon that required all the othersfunctionName
- The name of the functionXBMCException
- Thrown if their is a XBMC problemXMLParserException
- Thrown if their is a XML problempublic abstract org.w3c.dom.Element findXBMCScraperFunction(XBMCAddon rootAddon, java.lang.String functionName) throws XBMCException, XMLParserException
rootAddon
- The root addon that required all the othersfunctionName
- The name of the function to executeXBMCException
- Thrown if their is a XBMC problemXMLParserException
- Thrown if their is a XML problemprotected XBMCAddon getAddon()
public java.lang.String toString()
toString
in class java.lang.Object