Difference between revisions of "Artefact:Model/net/leue/andreas/sandbox/model42/Model42"

From OOModels
< Artefact:Model‎ | net‎ | leue‎ | andreas‎ | sandbox‎ | model42
Jump to navigationJump to search
Line 13: Line 13:
* Model42 CoreClass,WithInstanceEditor
* Model42 CoreClass,WithInstanceEditor
^^ com.sphenon.basics.data.Data_MediaObject
^^ com.sphenon.basics.data.Data_MediaObject
** DataEmbedded Data_MediaObject Optional,NoFilter
** DataEmbeddedFullSize Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = Embedded
     - LinkType = Embedded
    - IntendedSize = FullSize
** DataEmbeddedThumbnail Data_MediaObject Optional,NoFilter
  + XMPresentation
    - LinkType = Embedded
    - IntendedSize = Thumbnail
** DataDownload Data_MediaObject Optional,NoFilter
** DataDownload Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
Line 31: Line 36:
   + XMPresentation
   + XMPresentation
     - LinkType = Embedded
     - LinkType = Embedded
    - AcceptableMediaTypes = ".png"
   + XMLogic
   + XMLogic
     - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
     - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
</wiml>
</wiml>

Revision as of 12:16, 20 March 2024

Classification
Type Type:org/oomodels/WIML/1.0
Domain Domain:it/test
Category Type:org/oomodels/wiki/Model
More
Download Code
Namespace (more)

Private namespace of Andreas Leue.

create new pages

Code[edit]

Model42
«CoreClass, WithInstanceEditor»
...
com.sphenon.basics.data.Data_MediaObject
DataEmbeddedFullSizeData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeEmbedded
IntendedSizeFullSize
DataEmbeddedThumbnailData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeEmbedded
IntendedSizeThumbnail
DataDownloadData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeDownload
DataOpenOnTopData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeOpenOnTop
DataOpenReplaceData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeOpenReplace
DataOpenNewData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeOpenNew
DataImagePNGEmbeddedData_MediaObject«Optional,NoFilter»
...
XMPresentation LinkTypeEmbedded
AcceptableMediaTypes".png"
XMLogic ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}