- * Map data to leaf-list.
- *
- * @param builder
- * builder of parent for children
- * @param leafListSchema
- * leaf list schema
- */
- private static void fillLeafListCapa(final ListNodeBuilder<Object, LeafSetEntryNode<Object>> builder,
- final LeafListSchemaNode leafListSchema) {
- builder.withChild(leafListEntryBuild(leafListSchema, QueryParams.DEPTH));
- builder.withChild(leafListEntryBuild(leafListSchema, QueryParams.FIELDS));
- builder.withChild(leafListEntryBuild(leafListSchema, QueryParams.FILTER));
- builder.withChild(leafListEntryBuild(leafListSchema, QueryParams.REPLAY));
- builder.withChild(leafListEntryBuild(leafListSchema, QueryParams.WITH_DEFAULTS));
- }
-
- /**
- * Map value to leaf list entry node.
- *
- * @param leafListSchema
- * leaf list schema of leaf list entry
- * @param value
- * value of leaf entry
- * @return entry node
- */
- private static LeafSetEntryNode<Object> leafListEntryBuild(final LeafListSchemaNode leafListSchema,
- final String value) {
- return Builders.leafSetEntryBuilder(leafListSchema).withValue(value).build();
- }
-
- /**
- * Find specific schema node by qname in parent {@link ContainerSchemaNode}.
- *
- * @param parent
- * schemaNode
- * @param childQName
- * specific qname of child
- * @return schema node of child by qname
- */
- private static DataSchemaNode getChildOfCont(final ContainerSchemaNode parent, final QName childQName) {
- for (final DataSchemaNode child : parent.getChildNodes()) {
- if (child.getQName().equals(childQName)) {
- return child;
- }
- }
- throw new RestconfDocumentedException(
- childQName.getLocalName() + " doesn't exist in container " + MonitoringModule.CONT_RESTCONF_STATE_NAME);
- }
-
- /**
- * Map data of yang notification to normalized node according to
- * ietf-restconf-monitoring.