Class ReferenceResolver
java.lang.Object
org.everit.json.schema.loader.internal.ReferenceResolver
Resolves an
id or ref against a parent scope.
Used by TypeBasedMultiplexer (for handling ids) and by SchemaLoader (for handling
refs).
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringCreates an absolute JSON pointer string based on a parent scope and a newly encountered pointer segment (idorrefvalue).static URICreates an absolute JSON pointer string based on a parent scope and a newly encountered pointer segment (idorrefvalue).
-
Method Details
-
resolve
Creates an absolute JSON pointer string based on a parent scope and a newly encountered pointer segment (idorrefvalue).- Parameters:
parentScope- the most immediate parent scope that the resolution should be performed againstencounteredSegment- the new segment (complete URI, path, fragment etc) which must be resolved- Returns:
- the resolved URI
-
resolve
Creates an absolute JSON pointer string based on a parent scope and a newly encountered pointer segment (idorrefvalue).- Parameters:
parentScope- the most immediate parent scope that the resolution should be performed againstencounteredSegment- the new segment (complete URI, path, fragment etc) which must be resolved- Returns:
- the resolved URI
-