org.stanwood.media.source.xbmc
Class XBMCLibrary

java.lang.Object
  extended by org.stanwood.media.xml.XMLParser
      extended by org.stanwood.media.source.xbmc.XBMCExtension
          extended by org.stanwood.media.source.xbmc.XBMCLibrary

public class XBMCLibrary
extends XBMCExtension

A library type of XBMC extensions


Field Summary
 
Fields inherited from class org.stanwood.media.xml.XMLParser
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
 
Constructor Summary
XBMCLibrary(XBMCAddon addon, java.io.File scraperFile, java.lang.String point)
          The constructor
 
Method Summary
 java.lang.String executeXBMCScraperFunction(java.lang.String functionName, java.util.Map<java.lang.Integer,java.lang.String> params)
          Used to execute a XBMC function
 
Methods inherited from class org.stanwood.media.source.xbmc.XBMCExtension
executeXBMCFunction, getAddon, getDocument, getFile, toString
 
Methods inherited from class org.stanwood.media.xml.XMLParser
createDocBuilder, createFactory, deleteNode, domToStr, encodeAttributeValue, firstChild, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XBMCLibrary

public XBMCLibrary(XBMCAddon addon,
                   java.io.File scraperFile,
                   java.lang.String point)
The constructor

Parameters:
addon - the addon
scraperFile - The scraper file the extension is been read from
point - The extension point been used for the extension
Method Detail

executeXBMCScraperFunction

public java.lang.String executeXBMCScraperFunction(java.lang.String functionName,
                                                   java.util.Map<java.lang.Integer,java.lang.String> params)
                                            throws XBMCException,
                                                   XMLParserException
Used to execute a XBMC function

Specified by:
executeXBMCScraperFunction in class XBMCExtension
Parameters:
functionName - The name of the function
params - The parameters been passed to the function
Returns:
The result of executing the function
Throws:
XBMCException - Thrown if their is a XBMC problem
XMLParserException - Thrown if their is a XML problem