|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.Attribute
public class Attribute
An attribute of the domain model. Is essentially a name and type.
Constructor Summary | |
---|---|
Attribute(java.lang.String name,
int ty)
Constructor for Attribute |
|
Attribute(java.lang.String name,
Type ty)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getName()
|
java.lang.String[] |
getPotentialOperators()
Returns all the operators that are valid for this attribute Returns an array of string, since it's intended for the JTables in the KnowledgeAcquisition GUI |
int |
getType()
This returns the actual type code for this attribute. |
java.lang.String |
getTypeName()
Gets a textual representation of the type of this object. |
Type |
getTypeObject()
Returns the actual Type object for this attribute |
void |
setName(java.lang.String name)
Gives the attribute a new, specified name. |
void |
setType(int ty)
Sets the type of this attribute using the type code |
java.lang.String |
toString()
Turns this attribute into a string representation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attribute(java.lang.String name, int ty)
name
- the name of the attribute i.e. "age" or "sex"ty
- the type of the attribute i.e. Type.NOMINAL or Type.NUMERICpublic Attribute(java.lang.String name, Type ty)
name
- ty
- Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name you would like the attribute to havepublic int getType()
public Type getTypeObject()
public java.lang.String getTypeName()
public void setType(int ty)
ty
- the type code - i.e. Type.NOMINAL or Type.NUMERIC or others, see Type class.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getPotentialOperators()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |