public final class ReferenceResolver extends Object
id
or ref
against a parent scope.
Used by TypeBasedMultiplexer (for handling id
s) and by SchemaLoader (for handling
ref
s).
Modifier and Type | Method and Description |
---|---|
static String |
resolve(String parentScope,
String encounteredSegment)
Creates an absolute JSON pointer string based on a parent scope and a newly encountered pointer
segment (
id or ref value). |
static URI |
resolve(URI parentScope,
String encounteredSegment)
Creates an absolute JSON pointer string based on a parent scope and a newly encountered pointer
segment (
id or ref value). |
public static URI resolve(URI parentScope, String encounteredSegment)
id
or ref
value).parentScope
- the most immediate parent scope that the resolution should be performed againstencounteredSegment
- the new segment (complete URI, path, fragment etc) which must be resolvedpublic static String resolve(String parentScope, String encounteredSegment)
id
or ref
value).parentScope
- the most immediate parent scope that the resolution should be performed againstencounteredSegment
- the new segment (complete URI, path, fragment etc) which must be resolvedCopyright © 2019 Everit Kft.. All rights reserved.