|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.atom.Common christophedelory.atom.Type christophedelory.atom.Link
public class Link
A reference from an entry or feed to a Web resource.
Note: the "type" attribute's value here 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.
The value must conform to the syntax of a MIME media type.
Constructor Summary | |
---|---|
Link()
|
Method Summary | |
---|---|
String |
getHref()
Returns the link's URI. |
String |
getHrefLang()
Returns the language of the resource pointed to by the href attribute. |
Long |
getLength()
Returns an advisory length of the linked content in octets. |
String |
getRel()
Returns the link relation type. |
String |
getTitle()
Returns human-readable information about the link. |
void |
setHref(String href)
Initializes the link's URI. |
void |
setHrefLang(String hreflang)
Initializes the language of the resource pointed to by the href attribute. |
void |
setLength(Long length)
Initializes an advisory length of the linked content in octets. |
void |
setRel(String rel)
Initializes the link relation type. |
void |
setTitle(String title)
Initializes human-readable information about the link. |
Methods inherited from class christophedelory.atom.Type |
---|
getType, setType |
Methods inherited from class christophedelory.atom.Common |
---|
getBaseString, getLang, setBaseString, setLang |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Link()
Method Detail |
---|
public String getHref()
null
if not yet initialized.setHref(java.lang.String)
public void setHref(String href)
href
- an URI as a string. Shall not be null
.
NullPointerException
- if href
is null
.getHref()
public String getRel()
<link rel="related" href="http://search.example.com/"/>An identical link might appear as a child of any entry elements whose content contains a discussion of that same search engine.
null
if not yet initialized.setRel(java.lang.String)
public void setRel(String rel)
rel
- a relation type. May be null
.setRel(java.lang.String)
public String getHrefLang()
null
.setHrefLang(java.lang.String)
public void setHrefLang(String hreflang)
hreflang
- a language tag. May be null
.setHrefLang(java.lang.String)
public String getTitle()
null
.setTitle(java.lang.String)
public void setTitle(String title)
title
- a title. May be null
.getTitle()
public Long getLength()
null
.setLength(java.lang.Long)
public void setLength(Long length)
length
- a length. May be null
.getLength()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |