|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.AttributeFactory
public class AttributeFactory
This class is used to create and clone attributes. It should be used to create attributes instead of directly creating them by using constructors. Additionally, it provides some helper methods for attribute creation purposes (name creation, block numbers,...).
| Constructor Summary | |
|---|---|
AttributeFactory()
|
|
| Method Summary | |
|---|---|
static Attribute |
changeValueType(Attribute attribute,
int valueType)
Changes the value type of the given attribute and returns a new attribute with the same properties but the new value type. |
static Attribute |
createAttribute(Attribute attribute)
Simple clone factory method for attributes. |
static Attribute |
createAttribute(Attribute attribute,
java.lang.String functionName)
Simple clone factory method for attributes. |
static Attribute |
createAttribute(int valueType)
Creates a simple single attribute depending on the given value type. |
static Attribute |
createAttribute(int valueType,
int blockType,
java.lang.String constructionDescription)
Creates a simple attribute depending on the given value type. |
static Attribute |
createAttribute(java.lang.String name,
int valueType)
Creates a simple single attribute depending on the given value type. |
static Attribute |
createAttribute(java.lang.String name,
int valueType,
int blockType)
Creates a simple attribute depending on the given value type. |
static java.lang.String |
createName()
Creates a new unsused attribute name. |
static java.lang.String |
createName(java.lang.String prefix)
Creates a new unsused attribute name with a given prefix. |
static void |
resetNameCounters()
Resets the counters for the generated attribute names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeFactory()
| Method Detail |
|---|
public static Attribute createAttribute(java.lang.String name,
int valueType)
public static Attribute createAttribute(int valueType)
public static Attribute createAttribute(int valueType,
int blockType,
java.lang.String constructionDescription)
public static Attribute createAttribute(java.lang.String name,
int valueType,
int blockType)
public static Attribute createAttribute(Attribute attribute)
createAttribute(Attribute att, String name) with name = null.
public static Attribute createAttribute(Attribute attribute,
java.lang.String functionName)
public static Attribute changeValueType(Attribute attribute,
int valueType)
public static void resetNameCounters()
public static java.lang.String createName()
public static java.lang.String createName(java.lang.String prefix)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||