Class Ref<T extends ToNode>
- java.lang.Object
- 
- software.amazon.smithy.openapi.model.Ref<T>
 
- 
- 
Constructor SummaryConstructors Constructor Description Ref()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tderef(ComponentsObject components)Dereferences the value stored in a ref.abstract java.util.Optional<java.lang.String>getPointer()Gets the JSON pointer to the component.static <T extends ToNode>
 Ref<T>local(T value)Creates a local ref to a value that is inlined.static <T extends ToNode>
 Ref<T>remote(java.lang.String pointer)Creates a remote reference using a JSON pointer.
 
- 
- 
- 
Method Detail- 
derefpublic abstract T deref(ComponentsObject components) Dereferences the value stored in a ref.- Parameters:
- components- Components object to query for pointers.
- Returns:
- Returns the dereferenced value.
 
 - 
getPointerpublic abstract java.util.Optional<java.lang.String> getPointer() Gets the JSON pointer to the component.The return value is empty if this is an inline component. - Returns:
- Returns the optional pointer.
 
 - 
remotepublic static <T extends ToNode> Ref<T> remote(java.lang.String pointer) 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.
 
 
- 
 
-