public interface AbstractResource extends ModelElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MNAME
The metaclass simple name.
|
static java.lang.String |
MQNAME
The metaclass qualified name.
|
Modifier and Type | Method and Description |
---|---|
IResourceHandle |
createEmbeddedResource(java.lang.String fileName)
Initialize the element to embed a resource.
|
IResourceHandle |
createExternalResource(java.lang.String resourceLocation)
Initialize the element to reference an external resource.
|
IResourceHandle |
getHandle()
Get access to the represented resource.
|
java.lang.String |
getMimeType()
Getter for attribute 'AbstractResource.MimeType'
Metamodel description:
MIME type of the rich note.
|
java.lang.String |
getStorageInfo()
Getter for attribute 'AbstractResource.storageInfo'
Metamodel description:
|
ModelElement |
getSubject()
Getter for relation 'AbstractResource->Subject'
Metamodel description:
Model element owning the rich note.
|
ResourceType |
getType()
Getter for relation 'AbstractResource->Type'
Metamodel description:
Semantic function of the rich note.
|
boolean |
isEmbedded()
Tells whether the resource is embedded with the model or is an external reference.
|
void |
setMimeType(java.lang.String value)
Setter for attribute 'AbstractResource.MimeType'
Metamodel description:
MIME type of the rich note.
|
void |
setStorageInfo(java.lang.String value)
Setter for attribute 'AbstractResource.storageInfo'
Metamodel description:
|
void |
setSubject(ModelElement value)
Setter for relation 'AbstractResource->Subject'
Metamodel description:
Model element owning the rich note.
|
void |
setType(ResourceType value)
Setter for relation 'AbstractResource->Type'
Metamodel description:
Semantic function of the rich note.
|
addStereotype, getAttached, getAttached, getDependsOnDependency, getDependsOnDependency, getDescriptor, getDescriptor, getExtension, getExtension, getImpactDependsOn, getImpactDependsOn, getImpactedDependency, getImpactedDependency, getImpactImpacted, getImpactImpacted, getLocalProperties, getLocalProperty, getMatrix, getMatrix, getName, getNote, getNote, getNote, getNoteContent, getNoteContent, getNoteContent, getProduct, getProduct, getProperties, getProperties, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getStereotype, getTag, getTag, getTag, getTag, getTag, getTagValue, getTagValue, getTagValue, getTagValues, getTagValues, getTagValues, isStereotyped, isStereotyped, isTagged, isTagged, isTagged, putNoteContent, putNoteContent, putNoteContent, putTagValue, putTagValue, putTagValue, putTagValues, putTagValues, putTagValues, removeNotes, removeNotes, removeNotes, removeStereotypes, removeTags, removeTags, removeTags, setLocalProperties, setLocalProperty, setName, setProperty, setProperty, setProperty, setProperty
getAddedToQuery, getAddedToQuery, getCausedImpact, getCausedImpact, getDiagramElement, getDiagramElement
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, delete, getCompositionChildren, getCompositionOwner, getMClass, getStatus, getUuid, isDeleted, isModifiable, isShell, isValid, mGet, mGet, mSet
static final java.lang.String MNAME
static final java.lang.String MQNAME
IResourceHandle getHandle()
Returns null if the element is not yet initialized.
IResourceHandle createEmbeddedResource(java.lang.String fileName)
Use the returned handle to store the resource content.
fileName
- a file name that will be used in case of file extraction.IResourceHandle createExternalResource(java.lang.String resourceLocation)
Use the returned handle to access the external resource content.
resourceLocation
- The resource location. Must be either an absolute file path or an URI
.boolean isEmbedded()
Embedded resources are stored with the model and are managed in version if the model is in a SVN repository.
java.lang.String getMimeType()
void setMimeType(java.lang.String value)
java.lang.String getStorageInfo()
Internal informations about where the resource is located and/or where it can be extracted.
void setStorageInfo(java.lang.String value)
Internal informations about where the resource is located and/or where it can be extracted.
ResourceType getType()
void setType(ResourceType value)
ModelElement getSubject()
void setSubject(ModelElement value)