public class Link extends Object
Constructor and Description |
---|
Link() |
Link(String href,
String rel,
String type,
String title)
Initializes a new instance of the Link
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getHref()
The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference
|
String |
getRel()
atom:link elements MAY have a \"rel\" attribute that indicates the link relation type.
|
String |
getTitle()
The \"title\" attribute conveys human-readable information about the link.
|
String |
getType()
On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced.
|
int |
hashCode() |
Link |
href(String href) |
Link |
rel(String rel) |
void |
setHref(String href) |
void |
setRel(String rel) |
void |
setTitle(String title) |
void |
setType(String type) |
Link |
title(String title) |
String |
toString() |
Link |
type(String type) |
public Link()
public Link(String href, String rel, String type, String title)
href
- The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI referencerel
- atom:link elements MAY have a \"rel\" attribute that indicates the link relation type. If the \"rel\" attribute is not present, the link element MUST be interpreted as if the link relation type is \"alternate\".type
- On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation.title
- The \"title\" attribute conveys human-readable information about the link. The content of the \"title\" attribute is Language-Sensitive.public String getHref()
public void setHref(String href)
public String getRel()
public void setRel(String rel)
public String getType()
public void setType(String type)
public String getTitle()
public void setTitle(String title)
Copyright © 2020. All rights reserved.