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
** DataEmbeddedFullSize Data_MediaObject Optional,NoFilter
** DataEmbeddedImage Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = Embedded
     - Style = EmbeddedImage
     - IntendedSize = FullSize
  + XMLogic
** DataEmbeddedThumbnail Data_MediaObject Optional,NoFilter
    - AcceptableMediaTypes = ".png"
     - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
** DataZoomableThumbnail Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = Embedded
     - Style = EmbeddedImage
     - IntendedSize = Thumbnail
  + XMLogic
    - AcceptableMediaTypes = ".png"
     - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
** DataDownload Data_MediaObject Optional,NoFilter
** DataDownload Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = Download
     - Style = Download
** DataOpenOnTop Data_MediaObject Optional,NoFilter
  + XMLogic
    - AcceptableMediaTypes = ".png"
    - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
** DataNavigatableResource Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = OpenOnTop
     - Style = NavigatableResource
** DataOpenReplace Data_MediaObject Optional,NoFilter
  + XMPresentation
    - LinkType = OpenReplace
** DataOpenNew Data_MediaObject Optional,NoFilter
  + XMPresentation
    - LinkType = OpenNew
** DataImagePNGEmbedded Data_MediaObject Optional,NoFilter
  + XMPresentation
    - LinkType = Embedded
   + XMLogic
   + XMLogic
     - AcceptableMediaTypes = ".png"
     - AcceptableMediaTypes = ".png"
     - 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 19:13, 26 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
DataEmbeddedImageData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleEmbeddedImage
XMLogic AcceptableMediaTypes".png"
ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}
DataZoomableThumbnailData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleEmbeddedImage
XMLogic AcceptableMediaTypes".png"
ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}
DataDownloadData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleDownload
XMLogic AcceptableMediaTypes".png"
ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}
DataNavigatableResourceData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleNavigatableResource
XMLogic AcceptableMediaTypes".png"
ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataImagePNGEmbedded) != null && @(DataImagePNGEmbedded.MediaType) != null && @(DataImagePNGEmbedded.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}