blob: 79840069fc32a8b31e8cd645a29bc7b6ea8a43e7 [file] [log] [blame]
{
"jcr:primaryType": "sling:Folder",
"image": {
"jcr:primaryType": "nt:unstructured",
"description": "An image src",
"fqdn": "org.apache.sling.hapi.common.Image",
"name": "Image",
"sling:resourceType": "sling/hapi/components/type"
},
"date": {
"jcr:primaryType": "nt:unstructured",
"description": "a date value; format has to be described in each property of this type",
"fqdn": "org.apache.sling.hapi.common.Date",
"name": "Date",
"sling:resourceType": "sling/hapi/components/type"
},
"text": {
"jcr:primaryType": "nt:unstructured",
"description": "A text value",
"fqdn": "org.apache.sling.hapi.common.Text",
"name": "Text",
"sling:resourceType": "sling/hapi/components/type"
},
"collection": {
"jcr:primaryType": "nt:unstructured",
"description": "Generic collection type. Can be parameterized with a generic type.",
"fqdn": "org.apache.sling.hapi.common.collection",
"name": "collection",
"parameters": [
"T"
],
"sling:resourceType": "sling/hapi/components/type",
"item": {
"jcr:primaryType": "nt:unstructured",
"description": "",
"type": "T",
"multiple": true
}
},
"boolean": {
"jcr:primaryType": "nt:unstructured",
"description": "true or false",
"fqdn": "org.apache.sling.hapi.common.Boolean",
"name": "Boolean",
"sling:resourceType": "sling/hapi/components/type"
},
"pair": {
"jcr:primaryType": "nt:unstructured",
"description": "The key-value pair. Usually used to indicate a Map entry.",
"fqdn": "org.apache.sling.hapi.common.pair",
"name": "pair",
"parameters": [
"K",
"V"
],
"sling:resourceType": "sling/hapi/components/type",
"key": {
"jcr:primaryType": "nt:unstructured",
"description": "The key of the pair",
"type": "K",
"multiple": false
},
"value": {
"jcr:primaryType": "nt:unstructured",
"description": "The value of the pair",
"type": "V",
"multiple": false
}
},
"number": {
"jcr:primaryType": "nt:unstructured",
"description": "A number value",
"fqdn": "org.apache.sling.hapi.common.Number",
"name": "Number",
"sling:resourceType": "sling/hapi/components/type"
},
"demo_type": {
"jcr:primaryType": "nt:unstructured",
"description": "A demo HApi type to show a more advanced structure",
"demo_description": {
"jcr:primaryType": "nt:unstructured",
"description": "The description of the demo object",
"type": "org.apache.sling.hapi.common.Text",
"multiple": false
},
"fqdn": "org.apache.sling.hapi.common.collection",
"name": "collection",
"parameters": [],
"sling:resourceType": "sling/hapi/components/type",
"title": {
"jcr:primaryType": "nt:unstructured",
"description": "The title of the demo object",
"type": "org.apache.sling.hapi.common.Text",
"multiple": false
},
"entries": {
"jcr:primaryType": "nt:unstructured",
"description": "An entry of type pair in the demo object",
"type": "org.apache.sling.hapi.common.pair",
"multiple": true
}
},
"url": {
"jcr:primaryType": "nt:unstructured",
"description": "A URL value type",
"fqdn": "org.apache.sling.hapi.common.URL",
"name": "URL",
"sling:resourceType": "sling/hapi/components/type"
}
}