private static SchemaNode findChildInCases(final ChoiceSchemaNode parent, final QName qname) { DataSchemaNode schema = null; for (final CaseSchemaNode caze : parent.getCases().values()) { 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 CaseSchemaNode caze : parent.getCases().values()) { final DataSchemaNode potential = caze.getDataChildByName(qname); if (potential != null) { schema = caze; break; } } return schema; }
private static SchemaNode findChildInCases(final ChoiceSchemaNode parent, final QName qname) { DataSchemaNode schema = null; for (final CaseSchemaNode caze : parent.getCases().values()) { 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 CaseSchemaNode caze : parent.getCases().values()) { final DataSchemaNode potential = caze.getDataChildByName(qname); if (potential != null) { schema = caze; break; } } return schema; }
public static Optional<CaseSchemaNode> detectCase(final ChoiceSchemaNode schema, final DataContainerChild<?, ?> child) { for (final CaseSchemaNode choiceCaseNode : schema.getCases().values()) { if (child instanceof AugmentationNode && belongsToCaseAugment(choiceCaseNode, (AugmentationIdentifier) child.getIdentifier())) { return Optional.of(choiceCaseNode); } else if (choiceCaseNode.getDataChildByName(child.getNodeType()) != null) { return Optional.of(choiceCaseNode); } } return Optional.empty(); }
public static Optional<CaseSchemaNode> detectCase(final ChoiceSchemaNode schema, final DataContainerChild<?, ?> child) { for (final CaseSchemaNode choiceCaseNode : schema.getCases().values()) { if (child instanceof AugmentationNode && belongsToCaseAugment(choiceCaseNode, (AugmentationIdentifier) child.getIdentifier())) { return Optional.of(choiceCaseNode); } else if (choiceCaseNode.getDataChildByName(child.getNodeType()) != null) { return Optional.of(choiceCaseNode); } } return Optional.empty(); }
for (final CaseSchemaNode choiceCaseNode : ((ChoiceSchemaNode) targetSchema).getCases().values()) { if (getChildNodesRecursive(choiceCaseNode).contains(dataSchemaNode.getQName())) { realChildNodes.add(choiceCaseNode.getDataChildByName(dataSchemaNode.getQName()));
for (final CaseSchemaNode choiceCaseNode : ((ChoiceSchemaNode) targetSchema).getCases().values()) { if (getChildNodesRecursive(choiceCaseNode).contains(dataSchemaNode.getQName())) { realChildNodes.add(choiceCaseNode.getDataChildByName(dataSchemaNode.getQName()));
final DataSchemaNode maybeChild = caseNode.getDataChildByName(current); if (maybeChild != null) { foundNode = findNodeIn(maybeChild, nextPath);
final DataSchemaNode maybeChild = caseNode.getDataChildByName(current); if (maybeChild != null) { foundNode = findNodeIn(maybeChild, nextPath);
for (final CaseSchemaNode choiceCase : ((ChoiceSchemaNode) dsn).getCases().values()) { final DataSchemaNode dataChildByName = choiceCase.getDataChildByName(qname); if (dataChildByName != null) { return Optional.of(dataChildByName);
for (final CaseSchemaNode choiceCase : ((ChoiceSchemaNode) dsn).getCases().values()) { final DataSchemaNode dataChildByName = choiceCase.getDataChildByName(qname); if (dataChildByName != null) { return Optional.of(dataChildByName);