|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.knime.core.node.port.pmml.PMMLContentHandler
@Deprecated public abstract class PMMLContentHandler
This class should no longer be used. PMML support is handled now with the
help of XMLBeans. A PMMLTranslator should be implemented to provide
the translation from PMML to KNIME and vice versa.
| Constructor Summary | |
|---|---|
PMMLContentHandler()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addPMMLModel(DocumentFragment fragment,
PMMLPortObjectSpec spec)
Deprecated. |
protected void |
addPMMLModelContent(TransformerHandler handler,
PMMLPortObjectSpec spec)
Deprecated. Derived classes should override this method to add the model content. |
boolean |
canReadPMMLVersion(String version)
Deprecated. Checks whether the PMML version is supported. |
abstract void |
characters(char[] ch,
int start,
int length)
Deprecated. |
abstract void |
endDocument()
Deprecated. |
abstract void |
endElement(String uri,
String localName,
String name)
Deprecated. |
void |
endPrefixMapping(String prefix)
Deprecated. |
ByteArrayInputStream |
getPMMLModelFragment(PMMLPortObjectSpec spec)
Deprecated. |
protected String |
getPreferredWriteVersion()
Deprecated. Returns the PMML version that this content handler prefers to write. |
protected Set<String> |
getSupportedVersions()
Deprecated. Returns the supported PMML versions. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Deprecated. |
void |
parse(Node node)
Deprecated. Parses the given node. |
void |
processingInstruction(String target,
String data)
Deprecated. |
void |
setDocumentLocator(Locator locator)
Deprecated. |
void |
skippedEntity(String name)
Deprecated. |
void |
startDocument()
Deprecated. |
abstract void |
startElement(String uri,
String localName,
String name,
Attributes atts)
Deprecated. |
void |
startPrefixMapping(String prefix,
String uri)
Deprecated. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMMLContentHandler()
| Method Detail |
|---|
public abstract void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXException
public abstract void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException
public abstract void endElement(String uri,
String localName,
String name)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXException
public abstract void startElement(String uri,
String localName,
String name,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class DefaultHandlerSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandler
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class DefaultHandlerSAXException
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerSAXExceptionpublic boolean canReadPMMLVersion(String version)
version - The PMML version to be tested.
protected Set<String> getSupportedVersions()
PMMLPortObject.PMML_V3_1 or PMMLPortObject.PMML_V3_2.
protected String getPreferredWriteVersion()
PMMLPortObject#getSupportedPMMLVersions().
public void parse(Node node)
throws SAXException
node - the node to be parsed
SAXException - if something with the parsing goes wrong
public final void addPMMLModel(DocumentFragment fragment,
PMMLPortObjectSpec spec)
throws SAXException
fragment - the document fragment to add the model tospec - the pmml port object spec
SAXException - if the model cannot be added
public final ByteArrayInputStream getPMMLModelFragment(PMMLPortObjectSpec spec)
throws SAXException
spec - the pmml port object spec
SAXException - if the model cannot be added
protected void addPMMLModelContent(TransformerHandler handler,
PMMLPortObjectSpec spec)
throws SAXException
handler - the transformer handlerspec - the port object spec
SAXException - if the model cannot be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||