com.dbmain.jidbm
Class DBMElement

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMElement

public class DBMElement
extends DBMGenericObject

The DBMElement class represents element objects of the DB-MAIN repository.

A element can have several element relations and element relations.


Field Summary
static char CTRL_SET_ELEM
          Constant of field type: Origin of control flow.
static char CTRL_TYPE_ELEM
          Constant of field type: Target of control flow.
static char EXTEND_SET_ELEM
          Constant of field type: Origin of entend relationship.
static char EXTEND_TYPE_ELEM
          Constant of field type: Target of entend relationship.
static char GEN_SET_ELEM
          Constant of field type: Origin of generalization relationship.
static char GEN_TYPE_ELEM
          Constant of field type: Target of generalization relationship.
static char INCLUDE_SET_ELEM
          Constant of field type: Origin of include relationship.
static char INCLUDE_TYPE_ELEM
          Constant of field type: Target of include relationship.
 
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
DBMElement(int id)
          Creates a new instance of the DBMElement class representing the element identified by id and the current project in DB-MAIN.
DBMElement(int id, long sysid)
          Creates a new instance of the DBMElement class representing the element identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstMadeOfElementRelation(DBMElementRelation cur)
          Adds a first element relation (cur) to the current element in the DB-MAIN repository.
 void addFirstPartOfElementRelation(DBMElementRelation cur)
          Adds a first element relation (cur) to the current element in the DB-MAIN repository.
 void addNextMadeOfElementRelation(DBMElementRelation cur, DBMElementRelation prev)
          Adds a element relation (cur) following the element relation (prev) to the current element in the DB-MAIN repository.
 void addNextPartOfElementRelation(DBMElementRelation cur, DBMElementRelation prev)
          Adds a element relation (cur) following the element relation (prev) to the current element in the DB-MAIN repository.
static DBMElement createElement(char type, char mode)
          Creates a new instance of element attached to the current element in the DB-MAIN repository.
 DBMElementRelation createElementRelation(java.lang.String name, char type, char mode, DBMElement part_of)
          Creates a new instance of element relation attached to the current element in the DB-MAIN repository.
 void deleteElement()
          Deletes the element of the DB-MAIN repository represented by the current DBMElement instance.
 java.lang.String getDescription()
          Returns the description of the current element.
 DBMElementRelation getFirstMadeOfElementRelation()
          Returns the first element relation of the current element in the DB-MAIN repository.
 DBMElementRelation getFirstPartOfElementRelation()
          Returns the first element relation of the current element in the DB-MAIN repository.
 DBMProcessingUnit getInvokeProcessingUnit()
          Returns the processing unit of the current element.
 DBMElementRelation getLastMadeOfElementRelation()
          Returns the last element relation of the current element in the DB-MAIN repository.
 DBMElementRelation getLastPartOfElementRelation()
          Returns the last element relation of the current element in the DB-MAIN repository.
 DBMProcessingUnit getMadeOfProcessingUnit()
          Returns the processing unit of the current element.
 char getMode()
          Returns the mode of the current element.
 DBMElementRelation getNextMadeOfElementRelation(DBMElementRelation cur)
          Returns the element relation (of the current element) that follows the element relation cur in the DB-MAIN repository.
 DBMElementRelation getNextPartOfElementRelation(DBMElementRelation cur)
          Returns the element relation (of the current element) that follows the element relation cur in the DB-MAIN repository.
 DBMElementRelation getPreviousMadeOfElementRelation(DBMElementRelation cur)
          Returns the element relation (of the current element) that precedes the element relation cur in the DB-MAIN repository.
 DBMElementRelation getPreviousPartOfElementRelation(DBMElementRelation cur)
          Returns the element relation (of the current element) that precedes the element relation cur in the DB-MAIN repository.
 char getType()
          Returns the type of the current element.
 java.lang.String getTypeName()
          Returns the type constant name of the current element.
 void removeInvokeProcessingUnit()
          Removes the processing unit attached to the current element in the DB-MAIN repository.
 void removeMadeOfElementRelation()
          Removes the list of element relation attached to the current element in the DB-MAIN repository.
 void removeMadeOfProcessingUnit()
          Removes the processing unit attached to the current element in the DB-MAIN repository.
 void removePartOfElementRelation()
          Removes the list of element relation attached to the current element in the DB-MAIN repository.
 void setDescription(java.lang.String val)
          Updates the value of description in the current element in the DB-MAIN repository.
 void setMode(char val)
          Updates the value of mode in the current element in the DB-MAIN repository.
 void setType(char val)
          Updates the value of type in the current element in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addFirstUserObject, addNextNoteRelation, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFirstUserObject, getFlag, getLastNoteRelation, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, getPreviousState, getPreviousUserObject, getProjectIdentifier, hashCode, isAttribute, isCluster, isCollection, isCompoundAttribute, isConcreteObject, isConnection, isConstraint, isConstraintMember, isConsumption, isDataObject, isElement, isElementRelation, isEntityRelationshipType, isEntityType, isEnvironment, isFlagConstant, isGroup, isMetaObject, isMetaProperty, isNote, isNoteRelation, isProcessingUnit, isProcessingUnitCardinality, isProduct, isProductSet, isProject, isRelationshipType, isResource, isResourceCardinality, isResourceSubType, isRole, isSchema, isSimpleAttribute, isState, isSubType, isText, isTextLine, isUserObject, isUserView, removeNoteRelation, removeState, removeUserObject, setFlag, setFlagConstant, setMetaPropertyBooleanListValue, setMetaPropertyBooleanValue, setMetaPropertyCharListValue, setMetaPropertyCharValue, setMetaPropertyDoubleListValue, setMetaPropertyDoubleValue, setMetaPropertyIntListValue, setMetaPropertyIntValue, setMetaPropertyListValue, setMetaPropertyStringListValue, setMetaPropertyStringValue, setMetaPropertyValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CTRL_SET_ELEM

public static final char CTRL_SET_ELEM
Constant of field type: Origin of control flow.

See Also:
Constant Field Values

CTRL_TYPE_ELEM

public static final char CTRL_TYPE_ELEM
Constant of field type: Target of control flow.

See Also:
Constant Field Values

EXTEND_SET_ELEM

public static final char EXTEND_SET_ELEM
Constant of field type: Origin of entend relationship.

See Also:
Constant Field Values

EXTEND_TYPE_ELEM

public static final char EXTEND_TYPE_ELEM
Constant of field type: Target of entend relationship.

See Also:
Constant Field Values

INCLUDE_SET_ELEM

public static final char INCLUDE_SET_ELEM
Constant of field type: Origin of include relationship.

See Also:
Constant Field Values

INCLUDE_TYPE_ELEM

public static final char INCLUDE_TYPE_ELEM
Constant of field type: Target of include relationship.

See Also:
Constant Field Values

GEN_SET_ELEM

public static final char GEN_SET_ELEM
Constant of field type: Origin of generalization relationship.

See Also:
Constant Field Values

GEN_TYPE_ELEM

public static final char GEN_TYPE_ELEM
Constant of field type: Target of generalization relationship.

See Also:
Constant Field Values
Constructor Detail

DBMElement

public DBMElement(int id,
                  long sysid)
Creates a new instance of the DBMElement class representing the element identified by id and sysid in the DB-MAIN repository.

Parameters:
id - the object identifier of a element.
sysid - the system identifier of a element.

DBMElement

public DBMElement(int id)
Creates a new instance of the DBMElement class representing the element identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a element.
Method Detail

getType

public char getType()
Returns the type of the current element.

Returns:
the char value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current element.

Returns:
the string representation of the field type.

setType

public void setType(char val)
Updates the value of type in the current element in the DB-MAIN repository.

Parameters:
val - the new char value of the field Type.

getMode

public char getMode()
Returns the mode of the current element.

Returns:
the char value of the field mode.

setMode

public void setMode(char val)
Updates the value of mode in the current element in the DB-MAIN repository.

Parameters:
val - the new char value of the field Mode.

getDescription

public java.lang.String getDescription()
Returns the description of the current element.

Returns:
the String value of the field description.

setDescription

public void setDescription(java.lang.String val)
Updates the value of description in the current element in the DB-MAIN repository.

Parameters:
val - the new String value of the field Description.

deleteElement

public void deleteElement()
Deletes the element of the DB-MAIN repository represented by the current DBMElement instance.


createElementRelation

public DBMElementRelation createElementRelation(java.lang.String name,
                                                char type,
                                                char mode,
                                                DBMElement part_of)
Creates a new instance of element relation attached to the current element in the DB-MAIN repository.

Parameters:
name - the value of the field name.
type - the value of the field type.
mode - the value of the field mode.
part_of - the element linked to the created object.
Returns:
the DBMElementRelation instance representing the new element relation.

createElement

public static DBMElement createElement(char type,
                                       char mode)
Creates a new instance of element attached to the current element in the DB-MAIN repository.

Parameters:
type - the value of the field type.
mode - the value of the field mode.
Returns:
the DBMElement instance representing the new element.

getFirstPartOfElementRelation

public DBMElementRelation getFirstPartOfElementRelation()
Returns the first element relation of the current element in the DB-MAIN repository.

Returns:
the DBMElementRelation instance representing the first element relation.

getLastPartOfElementRelation

public DBMElementRelation getLastPartOfElementRelation()
Returns the last element relation of the current element in the DB-MAIN repository.

Returns:
the DBMElementRelation instance representing the last element relation.

getNextPartOfElementRelation

public DBMElementRelation getNextPartOfElementRelation(DBMElementRelation cur)
Returns the element relation (of the current element) that follows the element relation cur in the DB-MAIN repository.

Parameters:
cur - the current element relation.
Returns:
the DBMElementRelation instance representing the next element relation.

getPreviousPartOfElementRelation

public DBMElementRelation getPreviousPartOfElementRelation(DBMElementRelation cur)
Returns the element relation (of the current element) that precedes the element relation cur in the DB-MAIN repository.

Parameters:
cur - the current element relation.
Returns:
the DBMElementRelation instance representing the previous element relation.

addFirstPartOfElementRelation

public void addFirstPartOfElementRelation(DBMElementRelation cur)
Adds a first element relation (cur) to the current element in the DB-MAIN repository.

Parameters:
cur - the added element relation.

addNextPartOfElementRelation

public void addNextPartOfElementRelation(DBMElementRelation cur,
                                         DBMElementRelation prev)
Adds a element relation (cur) following the element relation (prev) to the current element in the DB-MAIN repository.

Parameters:
cur - the added element relation.
prev - the element relation after which the element relation cur is inserted.

removePartOfElementRelation

public void removePartOfElementRelation()
Removes the list of element relation attached to the current element in the DB-MAIN repository.


getFirstMadeOfElementRelation

public DBMElementRelation getFirstMadeOfElementRelation()
Returns the first element relation of the current element in the DB-MAIN repository.

Returns:
the DBMElementRelation instance representing the first element relation.

getLastMadeOfElementRelation

public DBMElementRelation getLastMadeOfElementRelation()
Returns the last element relation of the current element in the DB-MAIN repository.

Returns:
the DBMElementRelation instance representing the last element relation.

getNextMadeOfElementRelation

public DBMElementRelation getNextMadeOfElementRelation(DBMElementRelation cur)
Returns the element relation (of the current element) that follows the element relation cur in the DB-MAIN repository.

Parameters:
cur - the current element relation.
Returns:
the DBMElementRelation instance representing the next element relation.

getPreviousMadeOfElementRelation

public DBMElementRelation getPreviousMadeOfElementRelation(DBMElementRelation cur)
Returns the element relation (of the current element) that precedes the element relation cur in the DB-MAIN repository.

Parameters:
cur - the current element relation.
Returns:
the DBMElementRelation instance representing the previous element relation.

addFirstMadeOfElementRelation

public void addFirstMadeOfElementRelation(DBMElementRelation cur)
Adds a first element relation (cur) to the current element in the DB-MAIN repository.

Parameters:
cur - the added element relation.

addNextMadeOfElementRelation

public void addNextMadeOfElementRelation(DBMElementRelation cur,
                                         DBMElementRelation prev)
Adds a element relation (cur) following the element relation (prev) to the current element in the DB-MAIN repository.

Parameters:
cur - the added element relation.
prev - the element relation after which the element relation cur is inserted.

removeMadeOfElementRelation

public void removeMadeOfElementRelation()
Removes the list of element relation attached to the current element in the DB-MAIN repository.


getMadeOfProcessingUnit

public DBMProcessingUnit getMadeOfProcessingUnit()
Returns the processing unit of the current element.

Returns:
the DBMProcessingUnit instance representing the processing unit.

removeMadeOfProcessingUnit

public void removeMadeOfProcessingUnit()
Removes the processing unit attached to the current element in the DB-MAIN repository.


getInvokeProcessingUnit

public DBMProcessingUnit getInvokeProcessingUnit()
Returns the processing unit of the current element.

Returns:
the DBMProcessingUnit instance representing the processing unit.

removeInvokeProcessingUnit

public void removeInvokeProcessingUnit()
Removes the processing unit attached to the current element in the DB-MAIN repository.