Package de.mid.innovator.srv2api.icw2er
Interface ERRole
-
- All Superinterfaces:
ADClientAble,ADFindAble,ADHistoryAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELFeature,ELMultiplicityAble,ELMultiplicityAbleTypedElement,ELNamedElement,ELNamespaceAsgnAble,ELObject,ELProperty,ELRedefAble,ELStructFeature,ELTypedElement,ELUUIDAble,ELValueContainerAble,ELViewNavigAble,IMFeature,IMForeignKeyAble,IMStructuralFeature,MECommentAble,MEConstraintAble,MEModelElement,MENamedElement,MENamespaceAsgnAble,MEStereotypeAble,MMAttachmentAble,MMCommentContainerAble,MMLabelAble,MMLabelTextAttachmentAble,MMStereotypeAble,MMTextAble
public interface ERRole extends ELProperty, IMStructuralFeature, IMForeignKeyAble
AERRoleis a part of aERRelationshipwhich connects the relationship to anEREntity. The (min,max) cardinaltiy of this role defines how often an instance of the connected entity can take part at the relationship.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classERRole.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EREntitygetConnectedEntity()java.lang.StringgetMax()Maximum cardinality of thisERRole.java.lang.StringgetMaxUML()Maximum cardinality of thisERRolefor UML notation.java.lang.StringgetMin()The minimum number how often the connected entity must participate in the relationship.java.lang.StringgetMinMaxString()Gets a string with the cardinality in Chen notation - (Min,Max).java.lang.StringgetMinMaxStringUML()Gets a string with the cardinality in UML notation using the minimum and maximum of the partner role.java.lang.StringgetMinUML()Minimum cardinality of thisERRolefor UML notation.java.lang.StringgetNameUML()Role name of thisERRolefor UML notation.MMCreateCLInstgetOwningCreateCLInst()Template dummy instance needed as owner substitute forEREntity.EREntitygetOwningEntity()ERRelationshipgetOwningRelationship()Reference to the relationship that owns the role.ERRolegetPartnerRole()Gets the partner role of this role (the opposite role of the relationship.ERRelationshipgetRelationship()The relationship this role is assigned to.booleanisForeignKeyCandidate()If true, theERRolecan be set to be on the foreign key side.
A role is a foreign key candidate if the upper value is 1, unless the partner role does not have a (1,1) cardinality.booleanisForeignKeySide()If true, theERRoleis on the foreign key side of itsERRelationship.booleanisUniqueKeySide()If true, theERRoleis on the unique key side of itsERRelationship.java.util.List<MEStereotypeAble>maintain()ERForeignKeymaintainForeignKey()This maintaining method creates the missedERForeignKeyfor thisERRole.
Returns the newly-created foreign key or null.voidsetConnectedEntity(EREntity value)Set the value of Foreign Key ConnectedEntity.voidsetForeignKeySide(boolean value)Set the value of Info IsForeignKeySide.voidsetForeignKeySideAndMaintain(boolean value)Set the value of Info IsForeignKeySide.voidsetMax(java.lang.String value)Set the value of Info Max.voidsetMaxAndMaintain(java.lang.String value)Set the value of Info Max.voidsetMaxUML(java.lang.String value)Set the value of Info MaxUML.voidsetMaxUMLAndMaintain(java.lang.String value)Set the value of Info MaxUML.voidsetMin(java.lang.String value)Set the value of Info Min.voidsetMinAndMaintain(java.lang.String value)Set the value of Info Min.voidsetMinMax(java.lang.String Min, java.lang.String Max, boolean Maintain)Sets the role cardinality to (min,max).voidsetMinUML(java.lang.String value)Set the value of Info MinUML.voidsetMinUMLAndMaintain(java.lang.String value)Set the value of Info MinUML.voidsetNameUML(java.lang.String value)Set the value of Info NameUML.-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDia
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADHistoryAble
getCreateTime, getCreator, getHistory, getModifier, getModifyTime, modifyHistory, setHistory
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRowList, getTabElementRowTypeList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModify
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContents
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
delete
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELFeature
getEntryInGroupAble, getEntryInGroupAble, getUsingViewElement, isStatic, setStatic
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELMultiplicityAble
getLower, getLowerBoundAsString, getLowerUpperVal, getUpper, getUpperBoundAsString, hasMultiplicity11, hasUpper1, isMany, isMultivalued, isOptional, isOrdered, isUnique, setLower, setMany, setOptional, setOrdered, setUnique, setUpper
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKind
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibility
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELProperty
getAggregation, getAssociation, getClassifierOfAssociationEnd, getDefaultValue, getOppositeAssociationEnd, getSelfAndSubsettedTransitive, getSelfAndSubsettedTransitive, getSelfAndSubsettingTransitive, getSelfAndSubsettingTransitive, getSubsettedProperty, getSubsettedTransitive, getSubsettedTransitive, getSubsettingProperty, getSubsettingTransitive, getSubsettingTransitive, getTypingCreateCLInst, isAssocOwner, isComposite, isDerived, isDerivedUnion, isNavigable, isNavigableAssocEnd, isSubsetted, isSubsetting, reconnectAssociation, setAggregation, setAssocOwner, setDefaultValue, setDerived, setDerivedUnion, setNavigableAssocEnd, setSubsettedProperty
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELRedefAble
getRedefined, getRedefining, isLeaf, isRedefined, isRedefining, setLeaf, setRedefined
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELStructFeature
getSlot, getStructuralFeatureAction, isReadOnly, setReadOnly
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELTypedElement
getModifyTypedElementDeclaration, getType, getTypedElementCnstr, getTypeKind, getValSpecOfTypedElement, getValSpecOfTypedElementWithPattern, getValSpecOfTypedElementWithPattern, isBitmapAble, isColorAble, modifyTypedElementDeclaration, setType
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUID
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELValueContainerAble
getValueReUseAble, setValueReUseAble
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELViewNavigAble
getViewNavigAbleGroup
-
Methods inherited from interface de.mid.innovator.srv2api.icw2im.IMFeature
getIndex, getIndex, getIndexedFeature, getKey, getKey, getKeyFeature, getKeyRelationshipProperty, getKeyRelationshipProperty, getKeyRelationshipPropertyRecursive, getKeyRelationshipPropertyRecursive, getOwningClassifier
-
Methods inherited from interface de.mid.innovator.srv2api.icw2im.IMForeignKeyAble
getCubeDimension, getDimensionPrecedence, getForeignKey, isHierarchical, isNotNull
-
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MECommentAble
getAssignedComment, getAssignedComment, getCommentAssign
-
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEConstraintAble
getAssignedConstraint, getAssignedConstraint, getConstraintAssign
-
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEModelElement
buildProxyConnection, getActivityPartition, getConsider, getContentStereotypeByClass, getCreateTemplateByClass, getElementColor, getFirstValidContentStereotype, getIgnore, getKnownTypeSystems, getMEModelName, getModelElement, getModelElement, getPresContext, getPresContext, getPresetMapping, getPRPresContent, setElementColor
-
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MENamedElement
getMappingSourceElement, getMappingSourceElement, getMESupplierDependency, getMESupplierMappingDependency
-
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MENamespaceAsgnAble
getMENamespace, getSignatureMessage
-
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEStereotypeAble
getApplicableAnalysisDia, getClientMappingDependency, getDecisionMade, getDecisionOwned, getKnowledgeSourceOfOwner, getMappingTargetElement, getMappingTargetElement, getProxyAsgProperty, getRepresentingArtifact, getRequirementOfStakeholder, getRequirementOfStakeholderOwner, isMapped, setMapped, setRequirementOfStakeholder
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMAttachmentAble
getAssignedAttachment, getAttachmentAssign, getDefaultAttachment, getOwnedAttachment, setDefaultAttachment
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMCommentContainerAble
getOutgoingConceptRealization, getOwnedComment, getRealizedConcept, getRealizedConcept, replaceRealizedConcepts, setRealizedConcept
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMLabelAble
getLabel, getLabelBoolValue, getLabelColor, getLabelInfo, getLabelLongValue, getLabelNameValue, getLabelStringValue, getLabelValueByPattern, getLabelValueByPattern, getLabelValueList, getOwnedLabelValSpec, hasLabel, modifyLabelValuesByName, setLabelInfo
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMStereotypeAble
assignStereotypeDlg, cloneElement, completelySynchronizeOthers, completelySynchronizeThis, getAttrCnstrEffective, getCreateTemplate, getDisplayType, getOwnedFormat, getOwnedStereotypePropertyValSpec, getOwnedStereotypeTSOptionValSpec, getOwnedSyncedElement, getPropBoolValue, getPropLongValue, getPropStringValue, getPropValueList, getStereoPropValueByPattern, getStereoPropValueByPattern, getStereotype, getStereotypeName, getStereotypeProperty, getStereotypePropertyInfo, getStereotypePropertyNameValue, getStereotypeTSOption, getStereotypeTSOptionBoolValue, getStereotypeTSOptionInfo, getStereotypeTSOptionLongValue, getStereotypeTSOptionNameValue, getStereotypeTSOptionStringValue, getStereotypeTSOptionValueByPattern, getStereotypeTSOptionValueByPattern, getStereotypeTSOptionValueList, getSyncedElement, getSyncedStereotypeAble, getSyncedStereotypeAble, isCloneAbleElement, modifyStereotypePropertyValuesByName, modifyStereotypeTSOptionValuesByName, setStereotype, setStereotypePropertyInfo, setStereotypeTSOptionInfo, setSyncedStereotypeAble
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMTextAble
getFlowExpandedValue, getModifyFlowDocuments, getModifyTextValues, getModifyTextValuesDlgInit, getOwnedTextValue, getOwnedTextValueByPattern, getTextExpandedValue, getTextStringValue, getURIList, modifyFlowDocuments, modifyTextValuesDlg
-
-
-
-
Method Detail
-
isForeignKeyCandidate
boolean isForeignKeyCandidate() throws InoNetException, SrvErrorExceptionIf true, theERRolecan be set to be on the foreign key side.
A role is a foreign key candidate if the upper value is 1, unless the partner role does not have a (1,1) cardinality.- Throws:
InoNetExceptionSrvErrorException
-
isForeignKeySide
boolean isForeignKeySide() throws InoNetException, SrvErrorExceptionIf true, theERRoleis on the foreign key side of itsERRelationship.- Throws:
InoNetExceptionSrvErrorException
-
setForeignKeySide
void setForeignKeySide(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info IsForeignKeySide.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setForeignKeySideAndMaintain
void setForeignKeySideAndMaintain(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info IsForeignKeySide.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
isUniqueKeySide
boolean isUniqueKeySide() throws InoNetException, SrvErrorExceptionIf true, theERRoleis on the unique key side of itsERRelationship.- Throws:
InoNetExceptionSrvErrorException
-
getMin
java.lang.String getMin() throws InoNetException, SrvErrorExceptionThe minimum number how often the connected entity must participate in the relationship.- Throws:
InoNetExceptionSrvErrorException
-
setMin
void setMin(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info Min.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMinAndMaintain
void setMinAndMaintain(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info Min.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMax
java.lang.String getMax() throws InoNetException, SrvErrorExceptionMaximum cardinality of thisERRole. This is equal to the 'upper' attribute of its super classELMultiplicityAble.
The maintaining variant of the setter will eventually set one role of theERRelationshipto be on the foreign key side. This depends on the cardinality of both roles. In this case, the foreign key and the foreign key attributes will be created automatically.
The property dialog of an Innovator Client uses the maintaining variant.
Note: 'Min' and 'Max' of the role define how often an instance of the entity can take part to its relationship. P.e. the (1,1) cardinality leads to an foreign key in the connectedEREntity.- Throws:
InoNetExceptionSrvErrorException
-
setMax
void setMax(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info Max.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMaxAndMaintain
void setMaxAndMaintain(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info Max.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMinMaxString
java.lang.String getMinMaxString() throws InoNetException, SrvErrorExceptionGets a string with the cardinality in Chen notation - (Min,Max).- Throws:
InoNetExceptionSrvErrorException
-
getMinUML
java.lang.String getMinUML() throws InoNetException, SrvErrorExceptionMinimum cardinality of thisERRolefor UML notation. Sets the minimum of the partner role which is the logical location for this property in the ER context!
The maintaining variant of the setter will eventually set one role of theERRelationshipto be on the foreign key side. This depends on the cardinality of both roles. In this case, the foreign key and the foreign key attributes will be created.
The property dialog of an Innovator Client uses the maintaining variant.- Throws:
InoNetExceptionSrvErrorException
-
setMinUML
void setMinUML(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info MinUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMinUMLAndMaintain
void setMinUMLAndMaintain(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info MinUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMaxUML
java.lang.String getMaxUML() throws InoNetException, SrvErrorExceptionMaximum cardinality of thisERRolefor UML notation. Sets the maximum of the partner role which is the logical location for this property in the ER context!
The maintaining variant of the setter will eventually set one role of theERRelationshipto be on the foreign key side. This depends on the cardinality of both roles. In this case, the foreign key and the foreign key attributes will be created automatically.
The property dialog of an Innovator Client uses the maintaining variant.
Note: 'Min' and 'Max' of the role define how often an instance of the connected entity can be in a relationship with an instance of the partner entity. E.g. the (1,1) cardinality leads to an foreign key in the connectedEREntity.- Throws:
InoNetExceptionSrvErrorException
-
setMaxUML
void setMaxUML(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info MaxUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMaxUMLAndMaintain
void setMaxUMLAndMaintain(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info MaxUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMinMaxStringUML
java.lang.String getMinMaxStringUML() throws InoNetException, SrvErrorExceptionGets a string with the cardinality in UML notation using the minimum and maximum of the partner role.- Throws:
InoNetExceptionSrvErrorException
-
getNameUML
java.lang.String getNameUML() throws InoNetException, SrvErrorExceptionRole name of thisERRolefor UML notation. This is the name of the partner role which is the logical location for this property in the ER context!- Throws:
InoNetExceptionSrvErrorException
-
setNameUML
void setNameUML(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Info NameUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
maintain
java.util.List<MEStereotypeAble> maintain() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
maintainForeignKey
ERForeignKey maintainForeignKey() throws InoNetException, SrvErrorException
This maintaining method creates the missedERForeignKeyfor thisERRole.
Returns the newly-created foreign key or null.- Throws:
InoNetExceptionSrvErrorException
-
setMinMax
void setMinMax(java.lang.String Min, java.lang.String Max, boolean Maintain) throws InoNetException, SrvErrorExceptionSets the role cardinality to (min,max).- Parameters:
Min- Minimum valueMax- Maximum valueMaintain- if true, call MaintainCmd at the end- Throws:
InoNetExceptionSrvErrorException
-
getPartnerRole
ERRole getPartnerRole() throws InoNetException, SrvErrorException
Gets the partner role of this role (the opposite role of the relationship. Generic view of 'opposite association end' in class property.- Throws:
InoNetExceptionSrvErrorException
-
getConnectedEntity
EREntity getConnectedEntity() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
setConnectedEntity
void setConnectedEntity(EREntity value) throws InoNetException, SrvErrorException
Set the value of Foreign Key ConnectedEntity.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getOwningCreateCLInst
MMCreateCLInst getOwningCreateCLInst() throws InoNetException, SrvErrorException
Template dummy instance needed as owner substitute forEREntity.- Throws:
InoNetExceptionSrvErrorException
-
getOwningEntity
EREntity getOwningEntity() throws InoNetException, SrvErrorException
Reference to the entity that owns the role. The reference may be empty if the role is owned by the relationship. If the role is owned by an entity, this entity is at the referencing side (foreign key) of the relationship.- Throws:
InoNetExceptionSrvErrorException
-
getOwningRelationship
ERRelationship getOwningRelationship() throws InoNetException, SrvErrorException
Reference to the relationship that owns the role. The reference may be empty if the role is owned by an entity.- Throws:
InoNetExceptionSrvErrorException
-
getRelationship
ERRelationship getRelationship() throws InoNetException, SrvErrorException
The relationship this role is assigned to.- Throws:
InoNetExceptionSrvErrorException
-
-