org.knime.core.data.xml
Class PMMLCellContent
java.lang.Object
org.knime.core.data.xml.XMLCellContent
org.knime.core.data.xml.PMMLCellContent
- All Implemented Interfaces:
- DataValue, PMMLValue, XMLValue
public class PMMLCellContent
- extends XMLCellContent
- implements PMMLValue
- Author:
- morent
PMMLCellContent
PMMLCellContent(String xmlString)
throws IOException,
ParserConfigurationException,
SAXException,
XMLStreamException
- Creates a
Document by parsing the passed string. It must
contain a valid XML document.
- Parameters:
xmlString - an XML document
- Throws:
IOException - If any IO errors occur.
ParserConfigurationException - If DocumentBuilder cannot
be created.
SAXException - If xmlString cannot be parsed
XMLStreamException
PMMLCellContent
PMMLCellContent(InputStream is)
throws IOException,
ParserConfigurationException,
SAXException,
XMLStreamException
- Creates a
Document by parsing the contents of the passed
InputStream. It must contain a valid XML document.
- Parameters:
is - an XML document
- Throws:
IOException - If any IO errors occur.
ParserConfigurationException - If DocumentBuilder cannot
be created.
SAXException - If xmlString cannot be parsed.
XMLStreamException
PMMLCellContent
PMMLCellContent(Document doc)
- Creates a new instance which encapsulates the passed XML document.
- Parameters:
doc - an XML document
getPMMLVersion
public String getPMMLVersion()
-
- Specified by:
getPMMLVersion in interface PMMLValue
- Returns:
- the PMML Version
getModelTypes
public Set<org.knime.core.pmml.PMMLModelType> getModelTypes()
-
- Specified by:
getModelTypes in interface PMMLValue
- Returns:
- the types of the contained PMML models
- See Also:
PMMLModelType
getModels
public List<Node> getModels(org.knime.core.pmml.PMMLModelType type)
-
- Specified by:
getModels in interface PMMLValue
- Parameters:
type - the model type of the models
- Returns:
- a list with all nodes of the specified model type or an empty
list if there is no model of such a type
getModels
public List<Node> getModels()
-
- Specified by:
getModels in interface PMMLValue
- Returns:
- a list with all pmml models
getStringValue
String getStringValue()
- Description copied from class:
XMLCellContent
- Returns the XML Document as a string.
- Overrides:
getStringValue in class XMLCellContent
- Returns:
- The XML Document as a string.
Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.