Annotation Type ApiLink
- 
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface ApiLinkThis annotation can be used on a public field or method. The return type must be a string, an iterator of strings or a collection that is iterable. 
- 
- 
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringrelThe relation type that this link represents. 
- 
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanabsoluteSet this to true if you do not need this path mapped into the API space.java.lang.StringcontentTypeThe content type returned when following the link.ApiLink.SCOPEscopeThe scope in which the link should be serialized. 
 - 
 
- 
- 
- 
scope
ApiLink.SCOPE scope
The scope in which the link should be serialized. If SCOPE.RESOURCE the link will be serialized for a resource that is the main entity. If SCOPE.INLINE the link will be serialized for a resource that is a sub-entity of another resource. By default the link will be serialized in both cases.- Returns:
 - The scope in which this link should be serialized.
 
- Default:
 - com.adobe.granite.haf.annotations.ApiLink.SCOPE.RESOURCE
 
 
 - 
 
 -