public class OperationsOverAssociation
extends java.lang.Object
a.forAssociation().createAssociationEnd()
.withKlass(class1)
.withMultiplicity("1..*")
.navigable()
.and()
.createAssociationEnd()
.withKlass(class2)
.withMultiplicity("1..1)
.navigable().build();
Constructor and Description |
---|
OperationsOverAssociation(RelationshipsHolder relationshipHolder) |
Modifier and Type | Method and Description |
---|---|
OperationsOverAssociation |
and() |
OperationsOverAssociation |
asAggregation() |
OperationsOverAssociation |
asComposition() |
void |
build() |
void |
create(AssociationEnd associationEnd1,
AssociationEnd associationEnd2)
Cria associação dado dois
AssociationEnd |
void |
createAssociationClass(java.util.Set<Attribute> listAttrs,
java.util.Set<Method> listMethods,
Element owner,
Element klass,
java.lang.String associationClassName)
associationClass null se você deseja que seja criada a classe associativa.
|
OperationsOverAssociation |
createAssociationEnd() |
OperationsOverAssociation |
navigable(boolean navigable) |
OperationsOverAssociation |
withKlass(Element idclass1) |
OperationsOverAssociation |
withMultiplicity(java.lang.String multiplicity) |
OperationsOverAssociation |
withName(java.lang.String name) |
public OperationsOverAssociation(RelationshipsHolder relationshipHolder)
public OperationsOverAssociation createAssociationEnd()
public OperationsOverAssociation withName(java.lang.String name)
public OperationsOverAssociation withKlass(Element idclass1)
public OperationsOverAssociation withMultiplicity(java.lang.String multiplicity)
public OperationsOverAssociation navigable(boolean navigable)
public void build()
public OperationsOverAssociation and()
public OperationsOverAssociation asComposition()
public OperationsOverAssociation asAggregation()
public void createAssociationClass(java.util.Set<Attribute> listAttrs, java.util.Set<Method> listMethods, Element owner, Element klass, java.lang.String associationClassName)
listAttrs
- listMethods
- owner
- klass
- associationClass
- public void create(AssociationEnd associationEnd1, AssociationEnd associationEnd2)
AssociationEnd
associationEnd1
- associationEnd2
-