com.rapidminer.tools.att
Class AttributeDataSource
java.lang.Object
com.rapidminer.tools.att.AttributeDataSource
public class AttributeDataSource
- extends java.lang.Object
Reference to source of an attribute, i.e. file, column number (token number).
Statics methods of this class can be used to parse an attribute description
file.
- Author:
- Ingo Mierswa, Simon Fischer
Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeDataSource
public AttributeDataSource(Attribute attribute,
java.io.File file,
int column,
java.lang.String attributeType)
setAttribute
public void setAttribute(Attribute attribute)
getAttribute
public Attribute getAttribute()
getColumn
public int getColumn()
getFile
public java.io.File getFile()
setType
public void setType(java.lang.String type)
getType
public java.lang.String getType()
setSource
public void setSource(java.io.File file,
int column)
writeXML
public void writeXML(java.io.PrintWriter out,
java.io.File defaultSource)
throws java.io.IOException
- Throws:
java.io.IOException
createAttributeDataSources
public static AttributeDataSources createAttributeDataSources(java.io.File attributeDescriptionFile,
boolean sourceColRequired,
LoggingHandler logging)
throws XMLException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
- Returns a list of
AttributeDataSources read from the file.
- Throws:
XMLException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2001-2009 by Rapid-I