use of org.opendaylight.yangtools.yang.data.api.schema.SystemLeafSetNode in project netconf by opendaylight.
the class SchemaContextHandler method addFeatureLeafList.
/**
* Mapping features of specific module.
*
* @param mapEntryBuilder mapEntryBuilder of parent for mapping children
* @param features features of specific module
*/
private static void addFeatureLeafList(final DataContainerNodeBuilder<NodeIdentifierWithPredicates, MapEntryNode> mapEntryBuilder, final Collection<? extends FeatureDefinition> features) {
final ListNodeBuilder<String, SystemLeafSetNode<String>> leafSetBuilder = Builders.<String>leafSetBuilder().withNodeIdentifier(MODULE_FEATURE_NODEID);
for (final FeatureDefinition feature : features) {
leafSetBuilder.withChildValue(feature.getQName().getLocalName());
}
mapEntryBuilder.withChild(leafSetBuilder.build());
}
Aggregations