File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/org/xmlobjects Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,18 @@ public Set<String> getSerializableNamespaces() {
150
150
return serializableNamespaces ;
151
151
}
152
152
153
+ public Map <Class <?>, Set <QName >> getObjectTypes () {
154
+ Map <Class <?>, Set <QName >> objectTypes = new HashMap <>();
155
+ for (Map .Entry <String , Map <String , BuilderInfo >> entry : builders .entrySet ()) {
156
+ for (Map .Entry <String , BuilderInfo > info : entry .getValue ().entrySet ()) {
157
+ objectTypes .computeIfAbsent (info .getValue ().objectType , v -> new HashSet <>())
158
+ .add (new QName (entry .getKey (), info .getKey ()));
159
+ }
160
+ }
161
+
162
+ return objectTypes ;
163
+ }
164
+
153
165
public <T > T fromXML (XMLReader reader , Class <T > objectType ) throws ObjectBuildException , XMLReadException {
154
166
T object = null ;
155
167
int stopAt = 0 ;
You can’t perform that action at this time.
0 commit comments