org.devaki.nextobjects.workspace.models
Class ConceptualModel

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.BaseModel
      extended byorg.devaki.nextobjects.workspace.models.ConceptualModel
All Implemented Interfaces:
java.io.Serializable

public class ConceptualModel
extends BaseModel
implements java.io.Serializable

The Conceptual Data Model

Author:
Emmanuel Florent
See Also:
Serialized Form

Field Summary
static int ASSO_01
          cards
static int ASSO_0N
          cards
static int ASSO_11
          cards
static int ASSO_1N
          cards
static int ASSO_NM
          cards (for a model only)
 
Constructor Summary
ConceptualModel(java.lang.String pName)
          Construct a new 'ConceptualModel' object
 
Method Summary
 int countAssociation()
          Return the number of associations in the model
 int countAssociationLinks()
          Return the number of association links in the model
 int countEntities()
          Return the number of entities in the model
 Association getAssociationAt(int at)
          Return the association identified by the parameter in the list of associations.
 AssociationLink getAssociationLinkAt(int at)
          Return the association link identified by the parameter in the list of entities.
 java.util.Vector getAssociationLinks()
          Return the association links of the model
 java.util.Vector getAssociations()
          Return the associations of the model
 java.lang.String getBestFilename()
          Return the best possible filename for save
 java.util.Vector getEntities()
          Return the entities of the model
 Entity getEntity(java.lang.String pString)
          Return a entity for code
 Entity getEntityAt(int at)
          Return the entity identified by the parameter in the list of entities.
 LineView[] getModelLinks()
          Conveniency method wich return all the links to draw in this models.
 BaseObject[] getModelObjects()
          Conveniency method wich return all the objects in the models in this models.
 BaseModelView getModelView()
          Return the graphics view of the model
 void setConceptualView(ConceptualView pConceptualView)
          Set the conceptual view of the model
 
Methods inherited from class org.devaki.nextobjects.workspace.models.BaseModel
getAlternateProjectId, getAuthorEmail, getBaseClass, getBasePeer, getBuild, getBuildDatabaseUrl, getClasses, getCompany, getContributors, getCountInstance, getCreateDatabaseUrl, getCurrentVersion, getDatabaseDriver, getDatabaseHost, getDatabasePassword, getDatabaseUser, getDbType, getDefaultIdMethod, getDefaultJavaNamingMethod, getDefaultJavaType, getDependencies, getDescription, getDevelopers, getDistributionDirectory, getDynamicTreeNode, getFileForSave, getGroupId, getHeavyIndexing, getId, getInceptionYear, getInheritanceLinkAt, getInheritanceLinks, getIssueTrackingUrl, getLabels, getLicenses, getLinks, getLocalDirectory, getLogo, getMailingLists, getName, getNotes, getOrganizationLogo, getOrganizationName, getOrganizationUrl, getPackageName, getPanel, getParentProject, getProjectProperties, getProjectURL, getProperties, getRedoLog, getRepositoryConnection, getRepositoryUrl, getSchema, getShortDescription, getSiteAddress, getSiteAdress, getSiteDirectory, isSaved, isVerified, setAlternateProjectId, setBaseClass, setBasePeer, setBuild, setBuildDatabaseUrl, setCompany, setContributors, setCreateDatabaseUrl, setCurrentVersion, setDatabaseDriver, setDatabaseHost, setDatabasePassword, setDatabaseUser, setDbType, setDefaultIdMethod, setDefaultJavaNamingMethod, setDefaultJavaType, setDependencies, setDescription, setDevelopers, setDistributionDirectory, setDynamicTreeNode, setFileForSave, setGroupId, setHeavyIndexing, setId, setInceptionYear, setIssueTrackingUrl, setLicenses, setLocalDirectory, setLogo, setMailingLists, setName, setNotes, setOrganizationLogo, setOrganizationName, setOrganizationUrl, setPackageName, setPanel, setParentProject, setProjectProperties, setProjectURL, setProperties, setRepositoryConnection, setRepositoryUrl, setSaved, setSchema, setShortDescription, setSiteAddress, setSiteDirectory, setVerified, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASSO_01

public static final int ASSO_01
cards

See Also:
Constant Field Values

ASSO_11

public static final int ASSO_11
cards

See Also:
Constant Field Values

ASSO_0N

public static final int ASSO_0N
cards

See Also:
Constant Field Values

ASSO_1N

public static final int ASSO_1N
cards

See Also:
Constant Field Values

ASSO_NM

public static final int ASSO_NM
cards (for a model only)

See Also:
Constant Field Values
Constructor Detail

ConceptualModel

public ConceptualModel(java.lang.String pName)
Construct a new 'ConceptualModel' object

Parameters:
pName - Name of the model
Method Detail

getBestFilename

public final java.lang.String getBestFilename()
Return the best possible filename for save

Specified by:
getBestFilename in class BaseModel
Returns:
the best filename

getModelLinks

public final LineView[] getModelLinks()
Conveniency method wich return all the links to draw in this models.

Returns:
the line views

getModelObjects

public final BaseObject[] getModelObjects()
Conveniency method wich return all the objects in the models in this models.

Specified by:
getModelObjects in class BaseModel
Returns:
the base objects

getModelView

public final BaseModelView getModelView()
Return the graphics view of the model

Specified by:
getModelView in class BaseModel
Returns:
the graphic view

getAssociations

public final java.util.Vector getAssociations()
Return the associations of the model

Returns:
the associations

getEntities

public final java.util.Vector getEntities()
Return the entities of the model

Returns:
the entities

getAssociationLinks

public final java.util.Vector getAssociationLinks()
Return the association links of the model

Returns:
the associations links

getAssociationAt

public final Association getAssociationAt(int at)
Return the association identified by the parameter in the list of associations.

Parameters:
at - index
Returns:
the association

getEntityAt

public final Entity getEntityAt(int at)
Return the entity identified by the parameter in the list of entities.

Parameters:
at - the index
Returns:
entity

getEntity

public final Entity getEntity(java.lang.String pString)
Return a entity for code

Parameters:
pString - the string
Returns:
the entity

getAssociationLinkAt

public final AssociationLink getAssociationLinkAt(int at)
Return the association link identified by the parameter in the list of entities.

Parameters:
at - index
Returns:
the association link

setConceptualView

public final void setConceptualView(ConceptualView pConceptualView)
Set the conceptual view of the model

Parameters:
pConceptualView - the graphics view

countEntities

public final int countEntities()
Return the number of entities in the model

Returns:
the count

countAssociation

public final int countAssociation()
Return the number of associations in the model

Returns:
the count

countAssociationLinks

public final int countAssociationLinks()
Return the number of association links in the model

Returns:
the count


Copyright © 2002-2004 devaki.org. All Rights Reserved.