|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.liacs.subdisc.Attribute
public class Attribute
Each Column in a Table is identified by its
Attribute. Attributes can be used as PrimaryTarget or SecondaryTarget, but
only when the AttributeType of the Attribute is
appropriate for the TargetConcepts
TargetType. All Attribute constructors and
setters ensure that its AttributeType is never null
(NOMINAL by default).
| Nested Class Summary | |
|---|---|
static class |
Attribute.AttributeType
There is only a limited number of AttributeTypes an Attribute can have. |
| Constructor Summary | |
|---|---|
Attribute(org.w3c.dom.Node theAttributeNode)
Create an Attribute from an XML AttributeNode. |
|
Attribute(java.lang.String theName,
java.lang.String theShort,
Attribute.AttributeType theType)
|
|
Attribute(java.lang.String theName,
java.lang.String theShort,
Attribute.AttributeType theType,
int theIndex)
|
|
| Method Summary | |
|---|---|
void |
addNodeTo(org.w3c.dom.Node theParentNode)
Creates an XMLNode representation of this Attribute. |
int |
getIndex()
|
java.lang.String |
getName()
|
java.lang.String |
getNameAndShort()
|
java.lang.String |
getNameOrShort()
|
java.lang.String |
getShort()
|
Attribute.AttributeType |
getType()
|
java.lang.String |
getTypeName()
|
boolean |
hasShort()
|
boolean |
isBinaryType()
|
boolean |
isNominalType()
|
boolean |
isNumericType()
|
boolean |
isOrdinalType()
|
void |
print()
|
boolean |
setType(Attribute.AttributeType theType)
Sets the AttributeType for this Attribute. |
Attribute.AttributeType |
setType(java.lang.String theType)
Sets the AttributeType for this Attribute. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attribute(java.lang.String theName,
java.lang.String theShort,
Attribute.AttributeType theType,
int theIndex)
public Attribute(java.lang.String theName,
java.lang.String theShort,
Attribute.AttributeType theType)
public Attribute(org.w3c.dom.Node theAttributeNode)
| Method Detail |
|---|
public int getIndex()
public Attribute.AttributeType getType()
public java.lang.String getName()
public java.lang.String getShort()
public boolean hasShort()
public java.lang.String getNameAndShort()
public java.lang.String getNameOrShort()
public java.lang.String getTypeName()
public void print()
public boolean isNominalType()
public boolean isNumericType()
public boolean isOrdinalType()
public boolean isBinaryType()
public Attribute.AttributeType setType(java.lang.String theType)
AttributeType for this Attribute. This is
used for changing the AttributeType of a Column. The
Column is responsible for checking whether its AttributeType can be
changed to this new AttributeType. This method is case insensitive.
theType - the String representation of an valid
AttributeType to set as this Attributes' new AttributeType.
String passed in as a parameter can not be resolved to a
valid AttributeType.public boolean setType(Attribute.AttributeType theType)
AttributeType for this Attribute. This is
used for changing the AttributeType of a Column. The
Column is responsible for checking whether its AttributeType can be
changed to this new AttributeType.
theType - the AttibuteType to set as this Attributes' new
AttributeType.
false if the AttributeType passed in as a parameter
is null, true otherwise.public void addNodeTo(org.w3c.dom.Node theParentNode)
XMLNode representation of this Attribute.
addNodeTo in interface XMLNodeInterfacetheParentNode - the Node of which this Node will be a ChildNode.
// * @return a Node that contains all the information of this Attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||