|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.dbmain.jidbm.DBMGenericObject
com.dbmain.jidbm.DBMConcreteObject
com.dbmain.jidbm.DBMDataObject
com.dbmain.jidbm.DBMAttribute
public class DBMAttribute
The DBMAttribute class represents attribute objects of the DB-MAIN repository.
A attribute can have several groups.
| Field Summary | |
|---|---|
static char |
ARRAY_ATT
Constant of field setType: Array type (indexed sequence of cells that can each contain an element). |
static char |
BAG_ATT
Constant of field setType: Bag type (unstructured collection of elements). |
static char |
LIST_ATT
Constant of field setType: List type (sequenced collection of elements). |
static int |
N_CARD
Constant of field maximumCardinality: Infinity value (N). |
static char |
SET_ATT
Constant of field setType: Set type (unstructured collection of distinct elements). |
static char |
UARRAY_ATT
Constant of field setType: Unique array type (indexed sequence of cells that can each contain a distinct element). |
static char |
ULIST_ATT
Constant of field setType: Unique list type (sequenced collection of distinct elements). |
| Fields inherited from class com.dbmain.jidbm.DBMGenericObject |
|---|
ALLPARENTS, CLUSTER, CO_ATTRIBUTE, COLLECTION, CONNECTION, CONS_PU, CONS_RES, CONSTRAINT, CONSUMPTION, ELEMENT, ENTITY_TYPE, ENVIRONMENT, ETROUND, ETSHADOW, ETSQUARE, GRAPHCOUPLE, GROUP, HAVESEL, HIDEASSOCIATION, HIDEATT, HIDECTRLFLOW, HIDEEXTEND, HIDEGENACT, HIDEGENUC, HIDEGR, HIDEINCLUDE, HIDENEWADD, HIDENOTE, HIDEOBJFLOW, HIDEPRIMID, HIDEPROD, HIDEPU, HIDESTEREOTYPE, ISASTRAIGHT, LOCK_USED, MARK1, MARK2, MARK3, MARK4, MARK5, MEMBER_CST, META_OBJECT, META_PROPERTY, METH_USED, NN_NOTE, NOTE, PROC_UNIT, PROCESS_TITLE, PROD_SET, RE_ISA, REJECTED, REL_ELEMENT, REL_TYPE, RESOURCE, ROLE, RTROUND, RTSHADOW, RTSQUARE, SCHEMA, SELECT, SHOWTYPEATT, SI_ATTRIBUTE, STATE, SUB_TYPE, SYSTEM, TEXT, TEXT_LINE, UMLCENTER, UMLCENTERDOWN, UMLCENTERUP, UMLLEFTCENTER, UMLLEFTDOWN, UMLLEFTUP, UMLRIGHTCENTER, UMLRIGHTDOWN, UMLRIGHTUP, USER_OBJECT, USER_VIEW, WITHOUT_SELECT |
| Constructor Summary | |
|---|---|
DBMAttribute(int id)
Creates a new instance of the DBMAttribute class representing the attribute identified by id and the current project in DB-MAIN. |
|
DBMAttribute(int id,
long sysid)
Creates a new instance of the DBMAttribute class representing the attribute identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
DBMAttribute |
convertAttribute(boolean show)
Convert the collection type of current multivalued attribute. |
DBMAttribute |
convertAttribute(char coltype,
boolean loss,
boolean show)
Convert the collection type of current multivalued attribute into coltype with or without semantic loss. |
void |
deleteAttribute()
Deletes the attribute of the DB-MAIN repository represented by the current DBMAttribute instance. |
DBMGenericObject |
getAttributeOwner()
Returns the generic object of the current attribute. |
DBMGroup |
getFirstMemberOfGroup()
Returns the first group of the current attribute in the DB-MAIN repository. |
DBMGroup |
getLastMemberOfGroup()
Returns the last group of the current attribute in the DB-MAIN repository. |
int |
getMaximumCardinality()
Returns the maximum cardinality of the current attribute. |
int |
getMinimumCardinality()
Returns the minimum cardinality of the current attribute. |
DBMGroup |
getNextMemberOfGroup(DBMGroup cur)
Returns the group (of the current attribute) that follows the group cur in the DB-MAIN repository. |
DBMGroup |
getPreviousMemberOfGroup(DBMGroup cur)
Returns the group (of the current attribute) that precedes the group cur in the DB-MAIN repository. |
char |
getSetType()
Returns the set type of the current attribute. |
java.lang.String |
getSetTypeName()
Returns the set type constant name of the current attribute. |
boolean |
isBoolean()
Verifies if the current attribute has the boolean type. |
boolean |
isCharacter()
Verifies if the current attribute has the character type. |
boolean |
isCompound()
Verifies if the current attribute has the compound type. |
boolean |
isDate()
Verifies if the current attribute has the date type. |
boolean |
isFloat()
Verifies if the current attribute has the float type. |
boolean |
isIndex()
Verifies if the current attribute has the index type. |
boolean |
isNumeric()
Verifies if the current attribute has the numeric type. |
boolean |
isObject()
Verifies if the current attribute has the object type. |
boolean |
isSequence()
Verifies if the current attribute has the sequence type. |
boolean |
isUserDefined()
Verifies if the current attribute has the user-defined type. |
boolean |
isVariableCharacter()
Verifies if the current attribute has the variable character type. |
DBMAttribute |
materializeAttribute(boolean show)
Materialize the current user-defined attribute. |
void |
removeAttributeOwner()
Removes the generic object attached to the current attribute in the DB-MAIN repository. |
void |
removeMemberOfGroup()
Removes the list of group attached to the current attribute in the DB-MAIN repository. |
void |
removeMemberOfGroup(DBMGroup cur)
Removes a group attached to the current attribute in the DB-MAIN repository. |
void |
setMaximumCardinality(int val)
Updates the value of maximum cardinality in the current attribute in the DB-MAIN repository. |
void |
setMinimumCardinality(int val)
Updates the value of minimum cardinality in the current attribute in the DB-MAIN repository. |
void |
setSetType(char val)
Updates the value of set type in the current attribute in the DB-MAIN repository. |
DBMEntityType |
transformIntoEntityType(boolean show)
Transform the current attribute into an entity type. |
DBMRelationshipType |
transformIntoRelationshipType(boolean show)
Transform the current object attribute into a relationship type. |
DBMAttribute |
transformMonovaluedIntoMultivaluedAttribute(boolean show)
Transform the current monovalued attribute into a multivalued attribute. |
java.lang.Object[] |
transformMultivaluedIntoAttributeList(boolean show)
Transform the current multivalued attribute into a list of attributes. |
DBMAttribute |
transformMultivaluedIntoMonovaluedAttribute(boolean show)
Transform the current multivalued attribute into a monovalued attribute. |
| Methods inherited from class com.dbmain.jidbm.DBMConcreteObject |
|---|
deleteConcreteObject, getName, getQualifiedName, getSemanticDescription, getShortName, getTechnicalDescription, setName, setSemanticDescription, setShortName, setTechnicalDescription, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int N_CARD
public static final char SET_ATT
public static final char BAG_ATT
public static final char ULIST_ATT
public static final char LIST_ATT
public static final char UARRAY_ATT
public static final char ARRAY_ATT
| Constructor Detail |
|---|
public DBMAttribute(int id,
long sysid)
id - the object identifier of a attribute.sysid - the system identifier of a attribute.public DBMAttribute(int id)
id - the object identifier of a attribute.| Method Detail |
|---|
public int getMinimumCardinality()
public void setMinimumCardinality(int val)
val - the new int value of the field MinimumCardinality.public int getMaximumCardinality()
public void setMaximumCardinality(int val)
val - the new int value of the field MaximumCardinality.public char getSetType()
public java.lang.String getSetTypeName()
public void setSetType(char val)
val - the new char value of the field SetType.public void deleteAttribute()
public DBMGroup getFirstMemberOfGroup()
public DBMGroup getLastMemberOfGroup()
public DBMGroup getNextMemberOfGroup(DBMGroup cur)
cur - the current group.
public DBMGroup getPreviousMemberOfGroup(DBMGroup cur)
cur - the current group.
public void removeMemberOfGroup()
public void removeMemberOfGroup(DBMGroup cur)
cur - the group to detach.public DBMGenericObject getAttributeOwner()
public void removeAttributeOwner()
public DBMEntityType transformIntoEntityType(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMAttribute transformMultivaluedIntoMonovaluedAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMAttribute transformMonovaluedIntoMultivaluedAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
public java.lang.Object[] transformMultivaluedIntoAttributeList(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMAttribute convertAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMAttribute convertAttribute(char coltype,
boolean loss,
boolean show)
coltype - the new collection type.loss - indicate if semantic is preserved (false) or not (true).show - indicate if the transformation dialogs must be displayed.
public DBMAttribute materializeAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMRelationshipType transformIntoRelationshipType(boolean show)
show - indicate if the transformation dialogs must be displayed.
public boolean isCharacter()
att - The attribute for which the type must be verified.
public boolean isNumeric()
att - The attribute for which the type must be verified.
public boolean isVariableCharacter()
att - The attribute for which the type must be verified.
public boolean isBoolean()
att - The attribute for which the type must be verified.
public boolean isFloat()
att - The attribute for which the type must be verified.
public boolean isDate()
att - The attribute for which the type must be verified.
public boolean isObject()
att - The attribute for which the type must be verified.
public boolean isSequence()
att - The attribute for which the type must be verified.
public boolean isIndex()
att - The attribute for which the type must be verified.
public boolean isUserDefined()
att - The attribute for which the type must be verified.
public boolean isCompound()
att - The attribute for which the type must be verified.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||