1
2
3
4
5
6 package gov.nist.secauto.metaschema.databind.model.info;
7
8 import gov.nist.secauto.metaschema.core.model.IBoundObject;
9 import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionModelAssembly;
10 import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionModelFieldComplex;
11 import gov.nist.secauto.metaschema.databind.model.IBoundFieldValue;
12 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceFlag;
13 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelAssembly;
14 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelChoiceGroup;
15 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelFieldComplex;
16 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelFieldScalar;
17 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelGroupedAssembly;
18 import gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelGroupedField;
19
20 import java.io.IOException;
21
22 import edu.umd.cs.findbugs.annotations.NonNull;
23 import edu.umd.cs.findbugs.annotations.Nullable;
24
25 public interface IItemReadHandler {
26
27
28
29
30
31
32
33
34
35
36
37 @NonNull
38 Object readItemFlag(
39 @NonNull IBoundObject parent,
40 @NonNull IBoundInstanceFlag instance) throws IOException;
41
42
43
44
45
46
47
48
49
50
51
52
53 @Nullable
54 Object readItemField(
55 @NonNull IBoundObject parent,
56 @NonNull IBoundInstanceModelFieldScalar instance) throws IOException;
57
58
59
60
61
62
63
64
65
66
67
68
69 @NonNull
70 IBoundObject readItemField(
71 @NonNull IBoundObject parent,
72 @NonNull IBoundInstanceModelFieldComplex instance) throws IOException;
73
74
75
76
77
78
79
80
81
82
83
84
85 @NonNull
86 IBoundObject readItemField(
87 @NonNull IBoundObject parent,
88 @NonNull IBoundInstanceModelGroupedField instance) throws IOException;
89
90
91
92
93
94
95
96
97
98
99
100
101
102 @NonNull
103 IBoundObject readItemField(
104 @Nullable IBoundObject parent,
105 @NonNull IBoundDefinitionModelFieldComplex definition) throws IOException;
106
107
108
109
110
111
112
113
114
115
116
117
118 @Nullable
119 Object readItemFieldValue(
120 @NonNull IBoundObject parent,
121 @NonNull IBoundFieldValue fieldValue) throws IOException;
122
123
124
125
126
127
128
129
130
131
132
133
134 @NonNull
135 IBoundObject readItemAssembly(
136 @NonNull IBoundObject parent,
137 @NonNull IBoundInstanceModelAssembly instance) throws IOException;
138
139
140
141
142
143
144
145
146
147
148
149
150 @NonNull
151 IBoundObject readItemAssembly(
152 @NonNull IBoundObject parent,
153 @NonNull IBoundInstanceModelGroupedAssembly instance) throws IOException;
154
155
156
157
158
159
160
161
162
163
164
165
166
167 @NonNull
168 IBoundObject readItemAssembly(
169 @Nullable IBoundObject parent,
170 @NonNull IBoundDefinitionModelAssembly definition) throws IOException;
171
172
173
174
175
176
177
178
179
180
181
182
183 @Nullable
184 IBoundObject readChoiceGroupItem(
185 @NonNull IBoundObject parent,
186 @NonNull IBoundInstanceModelChoiceGroup instance) throws IOException;
187 }