Interface MEAttachment
- All Superinterfaces:
ADAccessAble,ADClientAble,ADFindAble,ADHistoryAble,ADLockAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELFileAble,ELNamedElement,ELNamespaceAsgnAble,ELObject,ELPackageAble,ELUUIDAble,MEModelElement
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionAdds an element that uses theMEAttachment.assignAttachment(List<? extends ELElement> seq) Assigns this attachment to a list of elements.Returns the file content and the element of the attachment.The assignment element to the model element.<T extends MMAttachmentAble>
List<T> getElementAssignedTo(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) All elements the file is attached to.<T extends MMAttachmentAble>
List<T> getElementAssignedTo(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) The method calls getElementAssignedTo and filters its return values according to the given stereotype value.The modification time of the corresponding file of this attachment.The time of the last upload of the file of thisMEAttachmentto the model.getOwnedAttachmentAssign(K_CONTROL_OPTION... behaviourFlags) The attachment reference elements of theMEAttachment.The element that owns this attachment.voidreplaceAttachmentContent(ARG_File valFile) Replaces the content of the attachment with the modified file.replaceElementsAssigned(List<? extends MMAttachmentAble> seq) Replaces the sequence of elements that use theMEAttachment.voidsetElementAssignedTo(List<? extends MMAttachmentAble> values) Set the value of View ElementAssignedTo.Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADAccessAble
getAccessRole, getReadRole, hasAccess, setAccessRole, setReadRoleMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADHistoryAble
getCreateTime, getCreator, getHistory, getModifier, getModifyTime, modifyHistory, setHistoryMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADLockAble
getLock, getLockableCache, getLockLogin, getLockName, hasClutch, hasLock, hasNoLock, hasOthLock, hasOwnLock, isLockable, lock, unlockMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContentsMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwnerMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
deleteMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getNotificationElement, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnitMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELFileAble
getContentMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKindMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibilityMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasReadMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELPackageAble
getElementImportingNamespace, getElementImportingNamespace, getImportedPackageAble, getOwningPackageMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUIDMethods inherited from interface de.mid.innovator.srv2api.icw2model.MEModelElement
buildProxyConnection, getActivityPartition, getConsider, getContentStereotypeByClass, getCreateTemplateByClass, getDataModel, getDataModelName, getElementColor, getFirstValidContentStereotype, getIgnore, getKnownTypeSystems, getMEModelName, getModelElement, getModelElement, getPresContext, getPresContext, getPresetMapping, getPRPresContent, setElementColor
-
Method Details
-
getFileModificationTime
The modification time of the corresponding file of this attachment.- Throws:
InoNetExceptionSrvErrorException
-
getModelSynchronizationTime
The time of the last upload of the file of thisMEAttachmentto the model.- Throws:
InoNetExceptionSrvErrorException
-
getElementAssignedTo
<T extends MMAttachmentAble> List<T> getElementAssignedTo(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException All elements the file is attached to. This is not the owner of the file, which may be owned by one element and may be referenced by many others.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getElementAssignedTo
<T extends MMAttachmentAble> List<T> getElementAssignedTo(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The method calls getElementAssignedTo and filters its return values according to the given stereotype value.- Parameters:
returnType- Specifies the type of elements to be returned.stereotype- The stereotype used to filter the result listbehaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
setElementAssignedTo
void setElementAssignedTo(List<? extends MMAttachmentAble> values) throws InoNetException, SrvErrorException Set the value of View ElementAssignedTo.- Parameters:
values- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getAttachmentAssignOfElement
MEAttachmentAssign getAttachmentAssignOfElement(MMAttachmentAble refObj) throws InoNetException, SrvErrorException The assignment element to the model element.- Parameters:
refObj- A further instance of type MMAttachmentAble which is used to control the behaviour of the method. (see description above)- Throws:
InoNetExceptionSrvErrorException
-
getAttachment
Returns the file content and the element of the attachment.- Throws:
InoNetExceptionSrvErrorException
-
addElementAssigned
MEAttachmentAssign addElementAssigned(MMAttachmentAble item) throws InoNetException, SrvErrorException Adds an element that uses theMEAttachment.- Parameters:
item- element using the attachment- Throws:
InoNetExceptionSrvErrorException
-
assignAttachment
List<MEAttachmentAssign> assignAttachment(List<? extends ELElement> seq) throws InoNetException, SrvErrorException Assigns this attachment to a list of elements.- Parameters:
seq- List of ELElement- Throws:
InoNetExceptionSrvErrorException
-
replaceAttachmentContent
Replaces the content of the attachment with the modified file.- Parameters:
valFile- the attached file- Throws:
InoNetExceptionSrvErrorException
-
replaceElementsAssigned
List<MEAttachmentAssign> replaceElementsAssigned(List<? extends MMAttachmentAble> seq) throws InoNetException, SrvErrorException Replaces the sequence of elements that use theMEAttachment.- Parameters:
seq- sequence of the elements using the attachment- Throws:
InoNetExceptionSrvErrorException
-
getOwnedAttachmentAssign
List<MEAttachmentAssign> getOwnedAttachmentAssign(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The attachment reference elements of theMEAttachment.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the result may be sorted.
-
getOwningElement
The element that owns this attachment.- Throws:
InoNetExceptionSrvErrorException
-