public class Link extends Object
Constructor and Description |
---|
Link(Link link)
Copy constructor.
|
Link(String href)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Link |
deprecate(String deprecation)
Indicates that the resource is deprecated and
specify the URI for deprecation information.
|
boolean |
equals(Object o) |
String |
getDeprecation() |
String |
getHref() |
String |
getHrefLang() |
String |
getName() |
URI |
getProfile() |
String |
getTitle() |
String |
getType() |
int |
hashCode() |
Link |
hrefLang(String hrefLang) |
boolean |
isTemplated() |
Link |
name(String name)
Specifies an additional name for the link.
|
Link |
profile(URI profile) |
Link |
set(String variableName,
Object value) |
Link |
templated()
Indicates that the href is templated.
|
Link |
title(String title) |
Link |
type(String type)
Indicates the media type used by the resource.
|
public Link(String href)
href
- the hrefpublic Link(Link link)
link
- link to copypublic Link templated()
public Link deprecate(String deprecation)
deprecation
- the deprecation URIpublic Link type(String type)
type
- the media typepublic Link name(String name)
name
- the link namepublic String getHref()
public boolean isTemplated()
public String getType()
public String getDeprecation()
public String getName()
public URI getProfile()
public String getTitle()
public String getHrefLang()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.