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
 
(8 intermediate revisions by the same user not shown)
Line 11: Line 11:


<wiml>
<wiml>
* Model42 CoreClass
* Model42 CoreClass,WithInstanceEditor
** DataEmbedded Data_MediaObject Optional,NoFilter,WithInstanceEditor
^^ com.sphenon.basics.data.Data_MediaObject
** DataEmbeddedImage Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = Embedded
     - Style = EmbeddedImage
** DataDownload Data_MediaObject Optional,NoFilter,WithInstanceEditor
  + XMLogic
    - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataEmbeddedImage) != null && @(DataEmbeddedImage.MediaType) != null && @(DataEmbeddedImage.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
** DataZoomableThumbnail Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = Download
     - Style = ZoomableThumbnail
** DataOpenOnTop Data_MediaObject Optional,NoFilter,WithInstanceEditor
  + XMLogic
    - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataZoomableThumbnail) != null && @(DataZoomableThumbnail.MediaType) != null && @(DataZoomableThumbnail.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
** DataDownload Data_MediaObject Optional,NoFilter
   + XMPresentation
   + XMPresentation
     - LinkType = OpenOnTop
     - Style = Download
** DataOpenReplace Data_MediaObject Optional,NoFilter,WithInstanceEditor
   + XMLogic
   + XMPresentation
     - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataDownload) != null && @(DataDownload.MediaType) != null && @(DataDownload.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
     - LinkType = OpenReplace
** DataNavigatableResource Data_MediaObject Optional,NoFilter
** DataOpenNew Data_MediaObject Optional,NoFilter,WithInstanceEditor
  + XMPresentation
    - LinkType = OpenNew
** DataImagePNGEmbedded Data_MediaObject Optional,NoFilter,WithInstanceEditor
   + XMPresentation
   + XMPresentation
     - LinkType = Embedded
     - Style = NavigatableResource
   + XMLogic
   + XMLogic
     - ValidationConstraint = {Condition={JavaCodeTemplate='@(Data) != null && @(Data.MediaType) != null && @(Data.MediaType).matches("^image/(png)$")'},ErrorMessage="Only PNG images can be used"}
     - ValidationConstraint = {Condition={JavaCodeTemplate=«@(DataNavigatableResource) != null && @(DataNavigatableResource.MediaType) != null && @(DataNavigatableResource.MediaType).matches("^image/(png)$")»},ErrorMessage="Only PNG images can be used"}
</wiml>
</wiml>

Latest revision as of 19:26, 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 ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataEmbeddedImage) != null && @(DataEmbeddedImage.MediaType) != null && @(DataEmbeddedImage.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}
DataZoomableThumbnailData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleZoomableThumbnail
XMLogic ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataZoomableThumbnail) != null && @(DataZoomableThumbnail.MediaType) != null && @(DataZoomableThumbnail.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}
DataDownloadData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleDownload
XMLogic ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataDownload) != null && @(DataDownload.MediaType) != null && @(DataDownload.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}
DataNavigatableResourceData_MediaObject«Optional,NoFilter»
...
XMPresentation StyleNavigatableResource
XMLogic ValidationConstraint{
    Condition = {
        JavaCodeTemplate = «@(DataNavigatableResource) != null && @(DataNavigatableResource.MediaType) != null && @(DataNavigatableResource.MediaType).matches("^image/(png)$")»
    },
    ErrorMessage = "Only PNG images can be used"
}