|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.tools.generate_classes.CreateFile.AttrInformation
org.biomage.tools.generate_classes.CreateFile.AssociationAttrInformation
public class CreateFile.AssociationAttrInformation
Description: Inner class to hold association attribute information. Checks to see if the association is a multivalued and adjusts the information accordingly.
Field Summary | |
---|---|
protected boolean |
isOrdered
|
protected boolean |
isOwner
|
protected int |
maxCard
|
protected int |
minCard
|
protected java.lang.String |
originalType
|
protected boolean |
otherNav
|
protected boolean |
pointsToIdentifiable
|
protected java.lang.Integer |
rank
|
protected int |
thisMaxCard
|
protected int |
thisMinCard
|
protected boolean |
thisNav
|
protected int |
typeAggregate
|
Constructor Summary | |
---|---|
|
CreateFile.AssociationAttrInformation(CreateFile.AssociationAttrInformation assn,
java.lang.Integer rank)
Description: C'tor for class. |
|
CreateFile.AssociationAttrInformation(CreateFile.AssociationAttrInformation assn,
java.lang.Integer rank,
int minCard,
int maxCard,
int thisMinCard,
int thisMaxCard,
boolean thisNav,
boolean otherNav)
Description: C'tor for class. |
protected |
CreateFile.AssociationAttrInformation(java.lang.String name,
java.lang.String scope,
java.lang.String datatype,
java.lang.String comment,
int minCard,
int maxCard,
int thisMinCard,
int thisMaxCard,
int typeAggregate,
boolean isOrdered,
java.lang.Integer rank,
boolean isOwner,
boolean pointsToIdentifiable,
boolean thisNav,
boolean otherNav)
Description: C'tor for class. |
Method Summary | |
---|---|
boolean |
getIsOrdered()
Description: Get method for isOrdered. |
int |
getMaxCard()
Description: Get method for maxCard. |
int |
getMinCard()
Description: Get method for minCard. |
java.lang.String |
getOriginalType()
Description: Get method for originalType. |
boolean |
getOtherNav()
Description: Get method for otherNav. |
java.lang.Integer |
getRank()
Description: Get rank of this assocaition to the others. |
int |
getThisMaxCard()
Description: Get method for thisMaxCard. |
int |
getThisMinCard()
Description: Get method for thisMinCard. |
boolean |
getThisNav()
Description: Get method for thisNav. |
int |
getTypeAggregated()
Description: Get method for type of aggregated. |
protected void |
initialize(int minCard,
int maxCard,
int thisMinCard,
int thisMaxCard,
int typeAggregate,
boolean isOrdered,
java.lang.Integer rank,
boolean isOwner,
boolean pointsToIdentifiable,
boolean thisNav,
boolean otherNav)
Description: Initializer for class. |
boolean |
isOwner()
Description: Returns whether this associations end class owns this class. |
void |
makeOptional()
Description: Writes the name of the association role, capitulized. |
boolean |
pointsToIdentifiableClass()
Description: Does this association point to an Identifiable class? This is a necessary question for the cPP code generation as that changes the container used underneath. |
java.lang.String |
toString()
Description: Writes the name of the association role, capitulized. |
Methods inherited from class org.biomage.tools.generate_classes.CreateFile.AttrInformation |
---|
getComment, getDatatype, getEnumValues, getName, getScope, initialize, isEnum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int minCard
protected int maxCard
protected int thisMinCard
protected int thisMaxCard
protected boolean thisNav
protected boolean otherNav
protected int typeAggregate
protected boolean isOrdered
protected java.lang.String originalType
protected java.lang.Integer rank
protected boolean isOwner
protected boolean pointsToIdentifiable
Constructor Detail |
---|
protected CreateFile.AssociationAttrInformation(java.lang.String name, java.lang.String scope, java.lang.String datatype, java.lang.String comment, int minCard, int maxCard, int thisMinCard, int thisMaxCard, int typeAggregate, boolean isOrdered, java.lang.Integer rank, boolean isOwner, boolean pointsToIdentifiable, boolean thisNav, boolean otherNav) throws java.lang.Exception
name:
- name of the attribute.scope:
- visibility of the attribute.datatype:
- datatype or enumeration values.comment:
- optional comment.minCard:
- the minimum number of objects for this association
allowed for it to be valid.maxCard:
- the maximum number of objects for this association
allowed for it to be valid.thisMinCard:
- the minimum number of objects for this association
allowed for it to be valid.thisMaxCard:
- the maximum number of objects for this association
allowed for it to be valid.typeAggregate:
- type of the aggregation.isOrdered:
- true if order is important.rank:
- the place this association fits in assocaition order.isOwner:
- whether the association end class owns this class.
java.lang.Exception
public CreateFile.AssociationAttrInformation(CreateFile.AssociationAttrInformation assn, java.lang.Integer rank) throws java.lang.Exception
assn:
- association to use as the basis of this association.rank:
- the place this association fits in assocaition order.
java.lang.Exception
public CreateFile.AssociationAttrInformation(CreateFile.AssociationAttrInformation assn, java.lang.Integer rank, int minCard, int maxCard, int thisMinCard, int thisMaxCard, boolean thisNav, boolean otherNav) throws java.lang.Exception
assn:
- association to use as the basis of this association.rank:
- the place this association fits in assocaition order.minCard:
- the minimum number of objects for this association
allowed for it to be valid.maxCard:
- the maximum number of objects for this association
allowed for it to be valid.thisMinCard:
- the minimum number of objects for this association
allowed for it to be valid.thisMaxCard:
- the maximum number of objects for this association
allowed for it to be valid.
java.lang.Exception
Method Detail |
---|
protected void initialize(int minCard, int maxCard, int thisMinCard, int thisMaxCard, int typeAggregate, boolean isOrdered, java.lang.Integer rank, boolean isOwner, boolean pointsToIdentifiable, boolean thisNav, boolean otherNav) throws java.lang.Exception
minCard:
- the minimum number of objects for this association
allowed for it to be valid.maxCard:
- the maximum number of objects for this association
allowed for it to be valid.thisMinCard:
- the minimum number of objects for this association
allowed for it to be valid.thisMaxCard:
- the maximum number of objects for this association
allowed for it to be valid.typeAggregate:
- type of the aggregation.isOrdered:
- true if order is important.rank:
- the place this association fits in assocaition order.isOwner:
- whether the association end class owns this class.
java.lang.Exception
public int getMinCard() throws java.lang.Exception
java.lang.Exception
public int getMaxCard() throws java.lang.Exception
java.lang.Exception
public int getThisMinCard() throws java.lang.Exception
java.lang.Exception
public int getThisMaxCard() throws java.lang.Exception
java.lang.Exception
public boolean getThisNav() throws java.lang.Exception
java.lang.Exception
public boolean getOtherNav() throws java.lang.Exception
java.lang.Exception
public int getTypeAggregated() throws java.lang.Exception
java.lang.Exception
public boolean getIsOrdered() throws java.lang.Exception
java.lang.Exception
public java.lang.String getOriginalType() throws java.lang.Exception
java.lang.Exception
public java.lang.Integer getRank() throws java.lang.Exception
java.lang.Exception
public boolean isOwner() throws java.lang.Exception
java.lang.Exception
public boolean pointsToIdentifiableClass()
public java.lang.String toString()
toString
in class java.lang.Object
public void makeOptional()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |