@Override public Set<NotificationDefinition> getNotifications() { final Set<NotificationDefinition> notifications = new HashSet<>(); for (Module m : getModules()) { notifications.addAll(m.getNotifications()); } return notifications; }
@Override public Set<NotificationDefinition> getNotifications() { final Set<NotificationDefinition> notifications = new HashSet<>(); for (Module m : getModules()) { notifications.addAll(m.getNotifications()); } return notifications; }
private static NotificationDefinition getNotificationByName(final Module module, final QName name) { for (final NotificationDefinition notification : module.getNotifications()) { if (notification.getQName().equals(name)) { return notification; } } return null; }
private static NotificationDefinition getNotificationByName(final Module module, final QName name) { for (final NotificationDefinition notification : module.getNotifications()) { if (notification.getQName().equals(name)) { return notification; } } return null; }
static List<TypeDefinition<?>> getAllTypedefs(final Module module) { final List<TypeDefinition<?>> ret = new ArrayList<>(); fillRecursively(ret, module); final Set<NotificationDefinition> notifications = module.getNotifications(); for (NotificationDefinition notificationDefinition : notifications) { fillRecursively(ret, notificationDefinition); } final Set<RpcDefinition> rpcs = module.getRpcs(); for (RpcDefinition rpcDefinition : rpcs) { ret.addAll(rpcDefinition.getTypeDefinitions()); fillRecursively(ret, rpcDefinition.getInput()); fillRecursively(ret, rpcDefinition.getOutput()); } return ret; }
private void traverseModule(final DataNodeContainer dataNode) { final Module module; if (dataNode instanceof Module) { module = (Module) dataNode; } else { return; } final Set<NotificationDefinition> notifications = module.getNotifications(); for (NotificationDefinition notificationDefinition : notifications) { traverse(notificationDefinition); } final Set<RpcDefinition> rpcs = module.getRpcs(); for (RpcDefinition rpcDefinition : rpcs) { this.allTypedefs.addAll(rpcDefinition.getTypeDefinitions()); ContainerSchemaNode input = rpcDefinition.getInput(); if (input != null) { traverse(input); } ContainerSchemaNode output = rpcDefinition.getOutput(); if (output != null) { traverse(output); } } }
private void traverseModule(final DataNodeContainer dataNode) { final Module module; if (dataNode instanceof Module) { module = (Module) dataNode; } else { return; } final Set<NotificationDefinition> notifications = module.getNotifications(); for (NotificationDefinition notificationDefinition : notifications) { traverse(notificationDefinition); } final Set<RpcDefinition> rpcs = module.getRpcs(); for (RpcDefinition rpcDefinition : rpcs) { this.allTypedefs.addAll(rpcDefinition.getTypeDefinitions()); ContainerSchemaNode input = rpcDefinition.getInput(); if (input != null) { traverse(input); } ContainerSchemaNode output = rpcDefinition.getOutput(); if (output != null) { traverse(output); } } }
checkArgument(module != null, "Module reference cannot be NULL."); checkArgument(module.getName() != null, "Module name cannot be NULL."); final Set<NotificationDefinition> notifications = module.getNotifications(); checkState(notifications != null, "Set of notification from module " + module.getName() + " cannot be NULL."); if (notifications.isEmpty()) {
private void emitBodyNodes(final Module input) { for (final ExtensionDefinition extension : input.getExtensionSchemaNodes()) { emitExtension(extension); } for (final FeatureDefinition definition : input.getFeatures()) { emitFeature(definition); } for (final IdentitySchemaNode identity : input.getIdentities()) { emitIdentity(identity); } for (final Deviation deviation : input.getDeviations()) { emitDeviation(deviation); } emitDataNodeContainer(input); for (final AugmentationSchemaNode augmentation : input.getAugmentations()) { emitAugment(augmentation); } for (final RpcDefinition rpc : input.getRpcs()) { emitRpc(rpc); } emitNotifications(input.getNotifications()); }
final Module module = context.module(); checkArgument(module.getName() != null, "Module name cannot be NULL."); final Set<NotificationDefinition> notifications = module.getNotifications(); if (notifications.isEmpty()) { return;
Set<NotificationDefinition> _notifications = module.getNotifications(); boolean _isNullOrEmpty_8 = IterableExtensions.isNullOrEmpty(_notifications); boolean _not_8 = (!_isNullOrEmpty_8); _builder.newLine(); _builder.append(" "); Set<NotificationDefinition> _notifications_1 = module.getNotifications(); CharSequence _writeNotifications = YangTemplate.writeNotifications(_notifications_1); _builder.append(_writeNotifications, " ");