+ private static SchemaNode findChildInCases(final ChoiceSchemaNode parent, final QName qname) {
+ DataSchemaNode schema = null;
+ for (final ChoiceCaseNode caze : parent.getCases()) {
+ final DataSchemaNode potential = caze.getDataChildByName(qname);
+ if (potential != null) {
+ schema = potential;
+ break;
+ }
+ }
+ return schema;
+ }
+
+ private static SchemaNode findCaseByChild(final ChoiceSchemaNode parent, final QName qname) {
+ DataSchemaNode schema = null;
+ for (final ChoiceCaseNode caze : parent.getCases()) {
+ final DataSchemaNode potential = caze.getDataChildByName(qname);
+ if (potential != null) {
+ schema = caze;
+ break;
+ }
+ }
+ return schema;
+ }
+
+ public void startList(final PathArgument name) {