Class Ref<T extends ToNode>
java.lang.Object
software.amazon.smithy.openapi.model.Ref<T>
- All Implemented Interfaces:
 ToNode
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract Tderef(ComponentsObject components) Dereferences the value stored in a ref.Gets the JSON pointer to the component.local(T value) Creates a local ref to a value that is inlined.Creates a remote reference using a JSON pointer. 
- 
Constructor Details
- 
Ref
public Ref() 
 - 
 - 
Method Details
- 
deref
Dereferences the value stored in a ref.- Parameters:
 components- Components object to query for pointers.- Returns:
 - Returns the dereferenced value.
 
 - 
getPointer
Gets the JSON pointer to the component.The return value is empty if this is an inline component.
- Returns:
 - Returns the optional pointer.
 
 - 
remote
Creates a remote reference using a JSON pointer.- Type Parameters:
 T- Type of value being created.- Parameters:
 pointer- Pointer to the actual value.- Returns:
 - Returns the created Ref.
 
 - 
local
Creates a local ref to a value that is inlined.- Type Parameters:
 T- Type of value that is inlined.- Parameters:
 value- Inline value.- Returns:
 - Returns the created Ref.
 
 
 -