* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.restconf.common.formatters;
+package org.opendaylight.restconf.nb.rfc8040.streams.listeners;
import java.io.IOException;
import java.time.Instant;
import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
import org.w3c.dom.Document;
-public abstract class EventFormatter<T> implements Immutable {
+abstract class EventFormatter<T> implements Immutable {
private static final XPathFactory XPF = XPathFactory.newInstance();
// FIXME: NETCONF-369: XPath operates without namespace context, therefore we need an namespace-unaware builder.
filter = xpath.compile(xpathFilter);
}
- public final Optional<String> eventData(final EffectiveModelContext schemaContext, final T input, final Instant now,
- boolean leafNodesOnly, boolean skipData)
+ final Optional<String> eventData(final EffectiveModelContext schemaContext, final T input, final Instant now,
+ final boolean leafNodesOnly, final boolean skipData)
throws Exception {
if (!filterMatches(schemaContext, input, now)) {
return Optional.empty();
throw new IllegalStateException("Failed to evaluate expression " + filter, e);
}
- return eval.booleanValue();
+ return eval;
}
/**