|
||||||||
| 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.DBMResource
public class DBMResource
The DBMResource class represents resource objects of the DB-MAIN repository.
A resource can have several resource sub-types, resource sub-types and resource cardinalitys.
| Field Summary |
|---|
| 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 | |
|---|---|
DBMResource(int id)
Creates a new instance of the DBMResource class representing the resource identified by id and the current project in DB-MAIN. |
|
DBMResource(int id,
long sysid)
Creates a new instance of the DBMResource class representing the resource identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
void |
addFirstGeneralizeResourceSubType(DBMResourceSubType cur)
Adds a first resource sub-type (cur) to the current resource in the DB-MAIN repository. |
void |
addFirstResourceCardinality(DBMResourceCardinality cur)
Adds a first resource cardinality (cur) to the current resource in the DB-MAIN repository. |
void |
addFirstSpecializeResourceSubType(DBMResourceSubType cur)
Adds a first resource sub-type (cur) to the current resource in the DB-MAIN repository. |
void |
addNextGeneralizeResourceSubType(DBMResourceSubType cur,
DBMResourceSubType prev)
Adds a resource sub-type (cur) following the resource sub-type (prev) to the current resource in the DB-MAIN repository. |
void |
addNextResourceCardinality(DBMResourceCardinality cur,
DBMResourceCardinality prev)
Adds a resource cardinality (cur) following the resource cardinality (prev) to the current resource in the DB-MAIN repository. |
void |
addNextSpecializeResourceSubType(DBMResourceSubType cur,
DBMResourceSubType prev)
Adds a resource sub-type (cur) following the resource sub-type (prev) to the current resource in the DB-MAIN repository. |
DBMResourceCardinality |
createResourceCardinality(java.lang.String name,
int min_card,
int max_card,
DBMConsumption consumption)
Creates a new instance of resource cardinality attached to the current resource in the DB-MAIN repository. |
DBMResourceSubType |
createResourceSubType(java.lang.String name,
DBMResource re_spec)
Creates a new instance of resource sub-type attached to the current resource in the DB-MAIN repository. |
void |
deleteResource()
Deletes the resource of the DB-MAIN repository represented by the current DBMResource instance. |
DBMResourceSubType |
getFirstGeneralizeResourceSubType()
Returns the first resource sub-type of the current resource in the DB-MAIN repository. |
DBMResourceCardinality |
getFirstResourceCardinality()
Returns the first resource cardinality of the current resource in the DB-MAIN repository. |
DBMResourceSubType |
getFirstSpecializeResourceSubType()
Returns the first resource sub-type of the current resource in the DB-MAIN repository. |
DBMResourceSubType |
getLastGeneralizeResourceSubType()
Returns the last resource sub-type of the current resource in the DB-MAIN repository. |
DBMResourceCardinality |
getLastResourceCardinality()
Returns the last resource cardinality of the current resource in the DB-MAIN repository. |
DBMResourceSubType |
getLastSpecializeResourceSubType()
Returns the last resource sub-type of the current resource in the DB-MAIN repository. |
DBMResourceSubType |
getNextGeneralizeResourceSubType(DBMResourceSubType cur)
Returns the resource sub-type (of the current resource) that follows the resource sub-type cur in the DB-MAIN repository. |
DBMResourceCardinality |
getNextResourceCardinality(DBMResourceCardinality cur)
Returns the resource cardinality (of the current resource) that follows the resource cardinality cur in the DB-MAIN repository. |
DBMResourceSubType |
getNextSpecializeResourceSubType(DBMResourceSubType cur)
Returns the resource sub-type (of the current resource) that follows the resource sub-type cur in the DB-MAIN repository. |
DBMResourceSubType |
getPreviousGeneralizeResourceSubType(DBMResourceSubType cur)
Returns the resource sub-type (of the current resource) that precedes the resource sub-type cur in the DB-MAIN repository. |
DBMResourceCardinality |
getPreviousResourceCardinality(DBMResourceCardinality cur)
Returns the resource cardinality (of the current resource) that precedes the resource cardinality cur in the DB-MAIN repository. |
DBMResourceSubType |
getPreviousSpecializeResourceSubType(DBMResourceSubType cur)
Returns the resource sub-type (of the current resource) that precedes the resource sub-type cur in the DB-MAIN repository. |
char |
getType()
Returns the type of the current resource. |
void |
removeGeneralizeResourceSubType()
Removes the list of resource sub-type attached to the current resource in the DB-MAIN repository. |
void |
removeResourceCardinality()
Removes the list of resource cardinality attached to the current resource in the DB-MAIN repository. |
void |
removeSpecializeResourceSubType()
Removes the list of resource sub-type attached to the current resource in the DB-MAIN repository. |
void |
setType(char val)
Updates the value of type in the current resource in the DB-MAIN repository. |
| 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 |
| Constructor Detail |
|---|
public DBMResource(int id,
long sysid)
id - the object identifier of a resource.sysid - the system identifier of a resource.public DBMResource(int id)
id - the object identifier of a resource.| Method Detail |
|---|
public char getType()
public void setType(char val)
val - the new char value of the field Type.public void deleteResource()
public DBMResourceSubType createResourceSubType(java.lang.String name,
DBMResource re_spec)
name - the value of the field name.re_spec - the resource linked to the created object.
public DBMResourceCardinality createResourceCardinality(java.lang.String name,
int min_card,
int max_card,
DBMConsumption consumption)
name - the value of the field name.min_card - the value of the field minimum cardinality.max_card - the value of the field maximum cardinality.consumption - the consumption linked to the created object.
public DBMResourceSubType getFirstSpecializeResourceSubType()
public DBMResourceSubType getLastSpecializeResourceSubType()
public DBMResourceSubType getNextSpecializeResourceSubType(DBMResourceSubType cur)
cur - the current resource sub-type.
public DBMResourceSubType getPreviousSpecializeResourceSubType(DBMResourceSubType cur)
cur - the current resource sub-type.
public void addFirstSpecializeResourceSubType(DBMResourceSubType cur)
cur - the added resource sub-type.
public void addNextSpecializeResourceSubType(DBMResourceSubType cur,
DBMResourceSubType prev)
cur - the added resource sub-type.prev - the resource sub-type after which the resource sub-type cur is inserted.public void removeSpecializeResourceSubType()
public DBMResourceSubType getFirstGeneralizeResourceSubType()
public DBMResourceSubType getLastGeneralizeResourceSubType()
public DBMResourceSubType getNextGeneralizeResourceSubType(DBMResourceSubType cur)
cur - the current resource sub-type.
public DBMResourceSubType getPreviousGeneralizeResourceSubType(DBMResourceSubType cur)
cur - the current resource sub-type.
public void addFirstGeneralizeResourceSubType(DBMResourceSubType cur)
cur - the added resource sub-type.
public void addNextGeneralizeResourceSubType(DBMResourceSubType cur,
DBMResourceSubType prev)
cur - the added resource sub-type.prev - the resource sub-type after which the resource sub-type cur is inserted.public void removeGeneralizeResourceSubType()
public DBMResourceCardinality getFirstResourceCardinality()
public DBMResourceCardinality getLastResourceCardinality()
public DBMResourceCardinality getNextResourceCardinality(DBMResourceCardinality cur)
cur - the current resource cardinality.
public DBMResourceCardinality getPreviousResourceCardinality(DBMResourceCardinality cur)
cur - the current resource cardinality.
public void addFirstResourceCardinality(DBMResourceCardinality cur)
cur - the added resource cardinality.
public void addNextResourceCardinality(DBMResourceCardinality cur,
DBMResourceCardinality prev)
cur - the added resource cardinality.prev - the resource cardinality after which the resource cardinality cur is inserted.public void removeResourceCardinality()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||