wt.tools.metamodel
Class Association

java.lang.Object
  extended bywt.tools.metamodel.ModelElement
      extended bywt.tools.metamodel.Association
All Implemented Interfaces:
Cloneable

public class Association
extends ModelElement


Field Summary
private  Vector aliasesRole1
           
private  Vector aliasesRole2
           
private static Hashtable allInstances
           
private  boolean attributed
           
protected  boolean derived
           
protected  String fullPackage
           
protected  ClassClass linkClass
           
protected  String linkClassName
           
private static Vector nonModeled
           
protected  Role role1
           
protected  Role role2
           
protected  StorageType storage
           
protected  PackageClass thePackage
           
 
Fields inherited from class wt.tools.metamodel.ModelElement
customizations, DEBUG, documentation, LINE_SEPARATOR, name, nextID, properties, RESOURCE, source, stereotype, store, supportedAPI, TRACE, uid
 
Constructor Summary
protected Association()
           
protected Association(String theUid)
           
 
Method Summary
private  void accumulateAlias(Association parentAssoc)
           
private  void accumulateAliases()
           
(package private)  void checkValidity(Vector problems)
           
(package private) static Association get(String theUid, Store newStore)
           
 Enumeration getAliasesRole1()
           
 Enumeration getAliasesRole2()
           
 Role getCorrespondingRole(ClassClass theClass)
           
protected  String getElementCode()
           
 String getFullPackage()
           
 ClassClass getLinkClass()
           
 String getLinkName()
           
 Role getOtherRole(ClassClass theClass)
           
 Role getOtherRole(Role theOtherRole)
           
 PackageClass getPackageClass()
           
 Role getRole1()
           
 Role getRole2()
           
 StorageType getStorageType()
           
 boolean isAttributed()
           
 boolean isDerived()
           
 boolean isFirstClass()
           
 boolean isPersistent()
           
protected  void loadFromStore()
           
protected  void loadFromStoreDeferred()
           
 void setFullPackage(String theFullPackage)
           
 void setLinkClass(ClassClass theLinkClass)
           
 void swapRoles()
           
 String toString()
           
protected  void writeToStore()
           
 
Methods inherited from class wt.tools.metamodel.ModelElement
ensureDeferredLoaded, getBoolean, getBoolean, getCustomization, getCustomization, getCustomizations, getDocumentation, getName, getOriginalSource, getProperty, getProperty, getProperty, getProperty, getSource, getSourceId, getStereotype, getSupportedAPI, getUid, initialize, initialize, isDeprecated, loadCustomizations, setBoolean, setDefaults, setDocumentation, setName, setProperty, setSource, setStereotype, setStore, setSupportedAPI, setUid, store, storeForPackage, transferProperty, writeToStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allInstances

private static final Hashtable allInstances

derived

protected boolean derived

linkClass

protected ClassClass linkClass

linkClassName

protected String linkClassName

fullPackage

protected String fullPackage

thePackage

protected PackageClass thePackage

role1

protected Role role1

role2

protected Role role2

storage

protected StorageType storage

attributed

private boolean attributed

aliasesRole1

private Vector aliasesRole1

aliasesRole2

private Vector aliasesRole2

nonModeled

private static final Vector nonModeled
Constructor Detail

Association

protected Association()

Association

protected Association(String theUid)
Method Detail

accumulateAlias

private void accumulateAlias(Association parentAssoc)

accumulateAliases

private void accumulateAliases()

checkValidity

void checkValidity(Vector problems)

get

static Association get(String theUid,
                       Store newStore)
                throws WTException
Throws:
WTException

getAliasesRole1

public Enumeration getAliasesRole1()

getAliasesRole2

public Enumeration getAliasesRole2()

getCorrespondingRole

public Role getCorrespondingRole(ClassClass theClass)

getElementCode

protected String getElementCode()
Specified by:
getElementCode in class ModelElement

getFullPackage

public String getFullPackage()

getLinkClass

public ClassClass getLinkClass()

getLinkName

public String getLinkName()

getOtherRole

public Role getOtherRole(ClassClass theClass)

getOtherRole

public Role getOtherRole(Role theOtherRole)

getPackageClass

public PackageClass getPackageClass()

getRole1

public Role getRole1()

getRole2

public Role getRole2()

getStorageType

public StorageType getStorageType()

isAttributed

public boolean isAttributed()

isDerived

public boolean isDerived()

isFirstClass

public boolean isFirstClass()

isPersistent

public boolean isPersistent()

loadFromStore

protected void loadFromStore()
                      throws WTException
Overrides:
loadFromStore in class ModelElement
Throws:
WTException

setFullPackage

public void setFullPackage(String theFullPackage)

setLinkClass

public void setLinkClass(ClassClass theLinkClass)

swapRoles

public void swapRoles()

toString

public String toString()
Overrides:
toString in class ModelElement

writeToStore

protected void writeToStore()
Overrides:
writeToStore in class ModelElement

loadFromStoreDeferred

protected void loadFromStoreDeferred()
Overrides:
loadFromStoreDeferred in class ModelElement