Interface MEAttachment
-
- All Superinterfaces:
ADAccessAble
,ADClientAble
,ADFindAble
,ADHistoryAble
,ADLockAble
,ADM2AttrModifyAble
,ELContainerAble
,ELContAsgnAble
,ELDeleteAble
,ELElement
,ELFileAble
,ELNamedElement
,ELNamespaceAsgnAble
,ELObject
,ELPackageAble
,ELUUIDAble
,MEModelElement
public interface MEAttachment extends MEModelElement, ELFileAble, ADLockAble
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MEAttachment.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MEAttachmentAssign
addElementAssigned(MMAttachmentAble item)
Adds an element that uses theMEAttachment
.java.util.List<MEAttachmentAssign>
assignAttachment(java.util.List<? extends ELElement> seq)
Assigns this attachment to a list of elements.ARG_AttachmentFile
getAttachment()
Returns the file content and the element of the attachment.MEAttachmentAssign
getAttachmentAssignOfElement(MMAttachmentAble refObj)
The assignment element to the model element.<T extends MMAttachmentAble>
java.util.List<T>getElementAssignedTo(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)
All elements the file is attached to.<T extends MMAttachmentAble>
java.util.List<T>getElementAssignedTo(java.lang.Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags)
The method calls getElementAssignedTo and filters its return values according to the given stereotype value.java.util.Date
getFileModificationTime()
The modification time of the corresponding file of this attachment.java.util.Date
getModelSynchronizationTime()
The time of the last upload of the file of thisMEAttachment
to the model.java.util.List<MEAttachmentAssign>
getOwnedAttachmentAssign(K_CONTROL_OPTION... behaviourFlags)
The attachment reference elements of theMEAttachment
.MMAttachmentAble
getOwningElement()
The element that owns this attachment.void
replaceAttachmentContent(ARG_File valFile)
Replaces the content of the attachment with the modified file.java.util.List<MEAttachmentAssign>
replaceElementsAssigned(java.util.List<? extends MMAttachmentAble> seq)
Replaces the sequence of elements that use theMEAttachment
.void
setElementAssignedTo(java.util.List<? extends MMAttachmentAble> values)
Set the value of View ElementAssignedTo.-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADAccessAble
getAccessRole, getReadRole, hasAccess, setAccessRole, setReadRole
-
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.ADLockAble
getLock, getLockableCache, getLockLogin, getLockName, hasClutch, hasLock, hasNoLock, hasOthLock, hasOwnLock, isLockable, lock, unlock
-
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.ELFileAble
getContent
-
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.ELPackageAble
getElementImportingNamespace, getElementImportingNamespace, getImportedPackageAble, getOwningPackage
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUID
-
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
-
-
-
-
Method Detail
-
getFileModificationTime
java.util.Date getFileModificationTime() throws InoNetException, SrvErrorException
The modification time of the corresponding file of this attachment.- Throws:
InoNetException
SrvErrorException
-
getModelSynchronizationTime
java.util.Date getModelSynchronizationTime() throws InoNetException, SrvErrorException
The time of the last upload of the file of thisMEAttachment
to the model.- Throws:
InoNetException
SrvErrorException
-
getElementAssignedTo
<T extends MMAttachmentAble> java.util.List<T> getElementAssignedTo(java.lang.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:
InoNetException
SrvErrorException
-
getElementAssignedTo
<T extends MMAttachmentAble> java.util.List<T> getElementAssignedTo(java.lang.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:
InoNetException
SrvErrorException
-
setElementAssignedTo
void setElementAssignedTo(java.util.List<? extends MMAttachmentAble> values) throws InoNetException, SrvErrorException
Set the value of View ElementAssignedTo.- Parameters:
values
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
getAttachment
ARG_AttachmentFile getAttachment() throws InoNetException, SrvErrorException
Returns the file content and the element of the attachment.- Throws:
InoNetException
SrvErrorException
-
addElementAssigned
MEAttachmentAssign addElementAssigned(MMAttachmentAble item) throws InoNetException, SrvErrorException
Adds an element that uses theMEAttachment
.- Parameters:
item
- element using the attachment- Throws:
InoNetException
SrvErrorException
-
assignAttachment
java.util.List<MEAttachmentAssign> assignAttachment(java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Assigns this attachment to a list of elements.- Parameters:
seq
- List of ELElement- Throws:
InoNetException
SrvErrorException
-
replaceAttachmentContent
void replaceAttachmentContent(ARG_File valFile) throws InoNetException, SrvErrorException
Replaces the content of the attachment with the modified file.- Parameters:
valFile
- the attached file- Throws:
InoNetException
SrvErrorException
-
replaceElementsAssigned
java.util.List<MEAttachmentAssign> replaceElementsAssigned(java.util.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:
InoNetException
SrvErrorException
-
getOwnedAttachmentAssign
java.util.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:
InoNetException
SrvErrorException
- Sorted:
- the result may be sorted.
-
getOwningElement
MMAttachmentAble getOwningElement() throws InoNetException, SrvErrorException
The element that owns this attachment.- Throws:
InoNetException
SrvErrorException
-
-