public class ReferenceResolver extends Object
ApiDescription
instances and provides a means to resolve
Reference
s.Constructor and Description |
---|
ReferenceResolver(ApiDescription local)
Creates a reference-resolver and defines the one
ApiDescription that can be used for local
(non-namespaced) reference lookups. |
Modifier and Type | Method and Description |
---|---|
Schema |
getDefinition(Reference reference)
Gets a
Definitions Schema by JSON reference. |
ApiError |
getError(Reference reference)
|
Resource |
getService(Reference reference)
|
ReferenceResolver |
register(ApiDescription apiDescription)
Registers an external
ApiDescription , for Reference lookup, and
must not have previously been registered. |
ReferenceResolver |
registerAll(ApiDescription... apiDescriptions)
Registers external
ApiDescription s, for Reference lookup, and each
must not have previously been registered. |
public ReferenceResolver(ApiDescription local)
ApiDescription
that can be used for local
(non-namespaced) reference lookups.local
- ApiDescription
to use for local (non-namespaced) reference lookupspublic ReferenceResolver register(ApiDescription apiDescription)
ApiDescription
, for Reference
lookup, and
must not have previously been registered.apiDescription
- ApiDescription
to register, which has not previously been registeredpublic ReferenceResolver registerAll(ApiDescription... apiDescriptions)
ApiDescription
s, for Reference
lookup, and each
must not have previously been registered.apiDescriptions
- List of ApiDescription
s to register, which have not previously been registeredpublic Schema getDefinition(Reference reference)
Definitions
Schema
by JSON reference.reference
- JSON referenceSchema
or null
if not foundpublic ApiError getError(Reference reference)
reference
- JSON referenceApiError
or null
if not foundCopyright © 2010-2018, ForgeRock All Rights Reserved.