|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DSRG.MKB.Attribute
represents an attribute in some relation.
This is
meta-knowledge, so the attribute knows only its name, type, and
some performance parameters for the QC-Model (size).
Field Summary | |
private java.lang.String |
attName
the name of this attribute |
private int |
attSize
this is the WIDTH of the column, to go with the type. |
private java.lang.String |
attType
the type of this attribute (as a String) |
private Relation |
parent
my parent relation object |
Constructor Summary | |
Attribute(Relation rel,
java.lang.String name,
int size)
Construct an Attribute Object. |
|
Attribute(Relation myRel,
java.lang.String myName,
java.lang.String myType,
int mySize)
These should eventually be the only remaining constructors. |
Method Summary | |
boolean |
changeName(java.lang.String newName)
renames attribute in MKB only |
java.lang.String |
displayAll()
returns a string representation of this attribute |
java.lang.String |
getFullName()
get name in the form "ISName.RelName.AttName" |
IS |
getIS()
returns the IS object that is this attribute's parent relation's IS |
java.lang.String |
getName()
get name. |
java.lang.String |
getNoIS()
Return Attribute Name in the form RelName.AttName. |
Relation |
getRelation()
return the relation object that is this attribute's parent |
int |
getSize()
return size (which is just a number passed in the constructor) of this attribute |
java.lang.String |
getType()
return attribute's type as String |
TypeConstraint |
getTypeConstraint()
return a TypeConstraint Object. |
java.lang.String |
getTypeConstraintAsString()
return a string of the form "attType(attName)". |
void |
setSize(int newSize)
set size of this attribute |
void |
setType(java.lang.String myType)
set attribute's type as String |
java.lang.String |
toString()
Dump the Attribute Object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String attName
private java.lang.String attType
private int attSize
private Relation parent
Constructor Detail |
public Attribute(Relation rel, java.lang.String name, int size)
public Attribute(Relation myRel, java.lang.String myName, java.lang.String myType, int mySize)
Method Detail |
public java.lang.String displayAll()
public java.lang.String toString()
public java.lang.String getTypeConstraintAsString()
public TypeConstraint getTypeConstraint()
public java.lang.String getName()
public java.lang.String getFullName()
public java.lang.String getNoIS()
public java.lang.String getType()
public void setType(java.lang.String myType)
public int getSize()
public void setSize(int newSize)
public Relation getRelation()
public IS getIS()
public boolean changeName(java.lang.String newName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |