com.rapidminer.tools.att
Class AttributeDataSource

java.lang.Object
  extended by 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 $

Constructor Summary
AttributeDataSource(Attribute attribute, java.io.File file, int column, java.lang.String attributeType)
           
 
Method Summary
static AttributeDataSources createAttributeDataSources(java.io.File attributeDescriptionFile, boolean sourceColRequired, LoggingHandler logging)
          Returns a list of AttributeDataSources read from the file.
 Attribute getAttribute()
           
 int getColumn()
           
 java.io.File getFile()
           
 java.lang.String getType()
           
 void setAttribute(Attribute attribute)
           
 void setSource(java.io.File file, int column)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
           
 void writeXML(java.io.PrintWriter out, java.io.File defaultSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDataSource

public AttributeDataSource(Attribute attribute,
                           java.io.File file,
                           int column,
                           java.lang.String attributeType)
Method Detail

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