public class LinkDescriptor extends IgnorableDescriptor<LinkDescriptor>
HypermediaDocumentation.linkWithRel(String)| Modifier | Constructor and Description |
|---|---|
protected |
LinkDescriptor(java.lang.String rel)
Creates a new
LinkDescriptor describing a link with the given rel. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRel()
Returns the rel of the link described by this descriptor.
|
boolean |
isOptional()
Returns
true if the described link is optional, otherwise false. |
LinkDescriptor |
optional()
Marks the link as optional.
|
ignored, isIgnoredattributes, description, getAttributes, getDescriptionprotected LinkDescriptor(java.lang.String rel)
LinkDescriptor describing a link with the given rel.rel - the rel of the linkpublic final LinkDescriptor optional()
thispublic final java.lang.String getRel()
public final boolean isOptional()
true if the described link is optional, otherwise false.true if the described link is optional, otherwise false