HansBug's picture
Sync raw source code, with 301 records, on 2024-08-14 05:51:28 CST
5070096 verified
raw
history blame
2.1 kB
standard library package ImageMetadata {
doc
/*
* This package provides attributive data and metadata to allow a model element to be
* annotated with an image to be used in its graphical rendering or as a marker to
* adorn graphical or textual renderings.
*/
private import ScalarValues::String;
attribute def Image {
doc
/*
* Image provides the data necessary for the physical definition of
* a graphical image.
*/
attribute content : String[0..1] {
doc
/*
* Binary data for the image according to the given MIME type,
* encoded as given by the encoding.
*/
}
attribute encoding : String[0..1] {
doc
/*
* Describes how characters in the content are to be decoded into
* binary data. At least "base64", "hex", "identify", and "JSONescape"
* shall be supported.
*/
}
attribute type : String[0..1] {
doc
/*
* The MIME type according to which the content should be interpreted.
*/
}
attribute location : String[0..1] {
doc
/*
* A URI for the location of a resource containing the image content,
* as an alternative for embedding it in the content attribute.
*/
}
}
metadata def Icon {
doc
/*
* Icon metadata can be used to annotate a model element with an image to be used
* to show render the element on a diagram and/or a small image to be used as an
* adornment on a graphical or textual rendering. Alternatively, another metadata
* definition can be annotated with an Icon to indicate that any model element
* annotated by the containing metadata can be rendered according to the Icon.
*/
attribute fullImage : Image[0..1] {
doc
/*
* A full-sized image that can be used to render the annotated element on a
* graphical view, potentially as an alternative to its standard rendering.
*/
}
attribute smallImage : Image[0..1] {
doc
/*
* A smaller image that can be used as an adornment on the graphical rendering
* of the annotated element or as a marker in a textual rendering.
*/
}
}
}