public final class NamespaceMappingRequest extends Object
JsonCnd
and webster, dealing with
builtins and aggregation and references by prefix or uri, this class was created to encapsulate the resolution logic
to map NamespaceMapping
objects to lists of JcrNs
objects in a standard way.for how this type might be used
Modifier and Type | Class and Description |
---|---|
static class |
NamespaceMappingRequest.Builder
Build a
NamespaceMappingRequest by specifying which namespace mappings (by prefix or by uri) should be
retained. |
Modifier and Type | Method and Description |
---|---|
List<net.adamcin.oakpal.api.Result<JcrNs>> |
resolveToJcrNs(@NotNull org.apache.jackrabbit.spi.commons.namespace.NamespaceMapping mapping)
Resolve the retained prefixes and URIs from the provided
NamespaceMapping object to produce a list of
JcrNs objects (wrapped in Result types) suitable for serialization to Json. |
public List<net.adamcin.oakpal.api.Result<JcrNs>> resolveToJcrNs(@NotNull @NotNull org.apache.jackrabbit.spi.commons.namespace.NamespaceMapping mapping)
NamespaceMapping
object to produce a list of
JcrNs
objects (wrapped in Result
types) suitable for serialization to Json.mapping
- the JCR namespace mapping to resolve againstResult
-wrapped JcrNs
typesCopyright © 2017–2020. All rights reserved.