Show last authors
1 {image:InternalDataModel.png}
2 ##
3 ## XObject
4 ##
5 ##
6 #set($obj = $xwiki.getDocument("XWiki.LudovicDubost").getObject("XWiki.XWikiUsers"))
7 #set($xobj = $obj.getXWikiObject())
8 #set($objprops = $xwiki.hashMap)
9 #foreach($i in $xobj.properties) #set($discard = $objprops.put($i.class, $i)) #end
10 ##
11 ## XClass
12 ##
13 ##
14 #set($cls = $xwiki.getDocument("XWiki.XWikiUsers").getxWikiClass())
15 #set($xcls = $cls.XWikiClass)
16 #set($clsprops = $xwiki.hashMap)
17 #foreach($i in $xcls.properties) #set($discard = $clsprops.put($i.class, $i)) #end
18 ##
19 ## XObject property
20 ##
21 ##
22 #set($oprop = $obj.getProperty("first_name"))
23 #set($xoprop = $oprop.getProperty())
24 #set($opropprops = $xwiki.hashMap)
25 #foreach($i in $xoprop.properties) #set($discard = $opropprops.put($i.class, $i)) #end
26 ##
27 ## XClass property
28 ##
29 ##
30 #set($cprop = $cls.get("first_name"))
31 #set($xcprop = $cprop.getPropertyClass())
32 #set($cpropprops = $xwiki.hashMap)
33 #foreach($i in $xcprop.properties) #set($discard = $cpropprops.put($i.class, $i)) #end
34 ##
35 ## XClass property class
36 ##
37 ##
38 #set($cpropc = $xcprop.getxWikiClass($context.context))
39 #set($xcpropc = $cpropc)
40 #set($cpropcprops = $xwiki.hashMap)
41 #foreach($i in $xcpropc.properties) #set($discard = $cpropcprops.put($i.class, $i)) #end
42 ##
43 ## XMeta
44 ##
45 ##
46 #set($meta = $xwiki.metaclass)
47 #set($metaprops = $xwiki.hashMap)
48 #foreach($i in $meta.properties) #set($discard = $metaprops.put($i.class, $i)) #end
49 ##
50 ## XMeta property
51 ##
52 ##
53 #set($mprop = $meta.get("com.xpn.xwiki.objects.classes.StringClass"))
54 #set($xmprop = $mprop)
55 #set($mpropprops = $xwiki.hashMap)
56 #foreach($i in $xmprop.properties) #set($discard = $mpropprops.put($i.class, $i)) #end
57
58 1. XObject
59 11. class: $obj.class (API) and $xobj.class
60 11. Name: $xobj.name
61 11. XClass: $xobj.className ( $xobj.getxWikiClass($context.context).class )
62 11. field names: {pre} $xobj.propertyList {/pre}
63 11. field types: #foreach($i in $objprops.values()) $i.class #end
64
65 1. XClass
66 11. class: $cls.class (API) and $xcls.class
67 11. Name: $xcls.name
68 11. XClass: $xcls.className ( $xcls.getxWikiClass($context.context).class )
69 11. field names: {pre} $xcls.propertyList {/pre}
70 11. field types: #foreach($i in $clsprops.values()) $i.class #end
71
72 1. XObject->property = XProperty instance
73 11. class: $oprop.class (API) and $xoprop.class
74 11. Name: $xoprop.name
75 11. No XClass, no fields
76 11. Value: $xoprop.getValue() ( $xoprop.getValue().class )
77
78 1. XClass->property = XProperty definition
79 11. Class: $cprop.class (API) and $xcprop.class
80 11. Name: $xcprop.name
81 11. XClass: $xcprop.className ( $xcprop.getxWikiClass($context.context).class )
82 11. field names: {pre} $xcprop.propertyList {/pre}
83 11. field types: #foreach($i in $cpropprops.values()) $i.class #end
84
85 1. XClass->property->XClass = XProperty meta
86 11. Class: and $xcpropc.class (no API)
87 11. Name: $xcpropc.name
88 11. XClass: $xcpropc.className ( $xcpropc.getxWikiClass($context.context).class )
89 11. field names: {pre} $xcpropc.propertyList {/pre}
90 11. field types: #foreach($i in $cpropcprops.values()) $i.class #end
91
92 1. XMeta = Set of XProperty meta
93 11. Class: $meta.class
94 11. Name: None
95 11. XClass: $meta.className ( $meta.getxWikiClass($context.context).class )
96 11. field names: {pre} $meta.propertyList {/pre}
97 11. field types: #foreach($i in $metaprops.values()) $i.class #end
98
99 1. XMeta->property = XProperty meta
100 11. Class: and $xmprop.class (no API)
101 11. Name: $xmprop.name
102 11. XClass: $xmprop.className ( $xmprop.getxWikiClass($context.context).class )
103 11. field names: {pre} $xmprop.propertyList {/pre}
104 11. field types: #foreach($i in $mpropprops.values()) $i.class #end

Get Connected