public final class NAFFilter extends Object implements Consumer<KAFDocument>
The filter, configured and created using the builder pattern (see builder()
), performs
several optional and configurable operations on a NAFDocumant
that is modified in
place. For the operations supported please refer to the javadoc of Builder
.
This class is thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
NAFFilter.Builder
Configurable builder object for the creation of
NAFFilter s. |
Modifier and Type | Field and Description |
---|---|
static NAFFilter |
DEFAULT |
static String |
SUMO_NAMESPACE |
static org.eclipse.rdf4j.model.IRI |
SUMO_PROCESS |
Modifier and Type | Method and Description |
---|---|
void |
accept(KAFDocument document) |
static NAFFilter.Builder |
builder()
Returns a new configurable
Builder for the instantiation of a NAFFilter . |
static NAFFilter.Builder |
builder(Boolean enableAll)
Returns a new configurable
Builder with all NAFFilter features either
enabled or disabled, based on the supplied parameter. |
void |
filter(KAFDocument document)
Filters the NAF document specified (the document is modified in-place).
|
public static final String SUMO_NAMESPACE
public static final org.eclipse.rdf4j.model.IRI SUMO_PROCESS
public static final NAFFilter DEFAULT
public void accept(KAFDocument document)
accept
in interface Consumer<KAFDocument>
public void filter(KAFDocument document)
NAFFilter
object.document
- the document to filterpublic static final NAFFilter.Builder builder()
Builder
for the instantiation of a NAFFilter
.Builder
public static final NAFFilter.Builder builder(@Nullable Boolean enableAll)
Builder
with all NAFFilter
features either
enabled or disabled, based on the supplied parameter.enableAll
- true, to enable all features; false, to disable all features; null, to maintain
default settings.Builder
Copyright © 2016–2020 FBK. All rights reserved.