private static Optional<DataNodeContainer> findNotification(final SchemaContext ctx, final QName notificationQName) { for (NotificationDefinition notification : ctx.getNotifications()) { if (notification.getQName().equals(notificationQName)) { return Optional.<DataNodeContainer> of(notification); } } return Optional.absent(); }
private static Optional<DataNodeContainer> findNotification(final SchemaContext ctx, final QName notificationQName) { for (final NotificationDefinition notification : ctx.getNotifications()) { if (notification.getQName().equals(notificationQName)) { return Optional.of(notification); } } return Optional.empty(); }
private static Optional<DataNodeContainer> findNotification(final SchemaContext ctx, final QName notificationQName) { for (NotificationDefinition notification : ctx.getNotifications()) { if (notification.getQName().equals(notificationQName)) { return Optional.of(notification); } } return Optional.empty(); }
static DataContainerCodecPrototype<NotificationDefinition> from(final Class<?> augClass, final NotificationDefinition schema, final CodecContextFactory factory) { final PathArgument arg = NodeIdentifier.create(schema.getQName()); return new DataContainerCodecPrototype<>(augClass,arg, schema, factory); }
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; }
public static DataContainerCodecPrototype<NotificationDefinition> from(final Class<?> augClass, final NotificationDefinition schema, final CodecContextFactory factory) { final PathArgument arg = NodeIdentifier.create(schema.getQName()); return new DataContainerCodecPrototype<>(augClass, arg, schema, factory); }
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; }
public static ContainerSchemaNode createSchemaForNotification(final NotificationDefinition next) { return new NodeContainerProxy(next.getQName(), next.getChildNodes(), next.getAvailableAugmentations()); }
.filter(notif -> current.equals(notif.getQName())).findFirst().orElse(null); if (foundNode != null && nextPath.iterator().hasNext()) { foundNode = findNodeIn(foundNode, nextPath);
.filter(notif -> current.equals(notif.getQName())).findFirst().orElse(null); if (foundNode != null && nextPath.iterator().hasNext()) { foundNode = findNodeIn(foundNode, nextPath);
private void emitNotificationNode(final NotificationDefinition notification) { if (!super.emitInstantiated && (notification.isAddedByUses() || notification.isAugmenting())) { // We skip instantiated nodes. return; } super.writer.startNotificationNode(notification.getQName()); // FIXME: BUG-2444: *(ifFeatureNode ) for (final MustDefinition mustCondition : notification.getMustConstraints()) { emitMust(mustCondition); } emitDocumentedNode(notification); emitDataNodeContainer(notification); emitUnknownStatementNodes(notification.getUnknownSchemaNodes()); super.writer.endNode(); }
public static CharSequence writeNotification(final NotificationDefinition notification) { StringConcatenation _builder = new StringConcatenation(); _builder.append("notification "); QName _qName = notification.getQName(); String _localName = _qName.getLocalName(); _builder.append(_localName, "");