|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.xml.XMLParser
org.stanwood.media.source.xbmc.XBMCExtension
public abstract class XBMCExtension
All types of XBMC extension classes should inherit from this class as it implements methods generic to all XBMC extensions.
Field Summary |
---|
Fields inherited from class org.stanwood.media.xml.XMLParser |
---|
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION |
Constructor Summary | |
---|---|
XBMCExtension(XBMCAddon addon,
java.io.File scraperFile,
java.lang.String point)
The constructor |
Method Summary | |
---|---|
java.lang.String |
executeXBMCFunction(org.w3c.dom.Element functionNode,
java.util.Map<java.lang.Integer,java.lang.String> params)
Used to execute a XBMC function |
abstract java.lang.String |
executeXBMCScraperFunction(java.lang.String functionName,
java.util.Map<java.lang.Integer,java.lang.String> params)
Used to execute a XBMC 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()
|
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 |
---|
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 extensionMethod Detail |
---|
protected org.w3c.dom.Document getDocument() throws XBMCException
XBMCException
public java.lang.String executeXBMCFunction(org.w3c.dom.Element functionNode, java.util.Map<java.lang.Integer,java.lang.String> params) throws XBMCException, XMLParserException
functionNode
- The node of the functionparams
- The parameters been passed to the function
XBMCException
- Thrown if their is a XBMC problem
XMLParserException
- Thrown if their is a XML problempublic java.io.File getFile()
public abstract java.lang.String executeXBMCScraperFunction(java.lang.String functionName, java.util.Map<java.lang.Integer,java.lang.String> params) throws XBMCException, XMLParserException
functionName
- The name of the functionparams
- The parameters been passed to the function
XBMCException
- Thrown if their is a XBMC problem
XMLParserException
- Thrown if their is a XML problemprotected XBMCAddon getAddon()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |