Package org.opencastproject.feed.api
Interface Link
-
public interface Link
Links are used to add references to external entities.Note that this interface is heavily inspired and backed by the excellent rss/atom feed library
Rome
(http://https://rome.dev.java.net).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getFlavor()
Returns the link mediapackage element flavor.String
getHref()
Returns the link href.String
getHreflang()
Returns the hreflang.long
getLength()
Returns the length.String
getRel()
Returns the link rel.String
getTitle()
Returns the link title.String
getType()
Returns the link type.void
setFlavor(String flavor)
Sets the link mediapackage element flavor.void
setHref(String href)
Sets the link href.void
setHreflang(String hreflang)
Set the hreflang.void
setLength(long length)
Set the length.void
setRel(String rel)
Sets the link rel.void
setTitle(String title)
Sets the link title.void
setType(String type)
Sets the link type.
-
-
-
Method Detail
-
getRel
String getRel()
Returns the link rel.- Returns:
- the link rel, null if none
-
setRel
void setRel(String rel)
Sets the link rel.- Parameters:
rel
- the link rel, null if none
-
getType
String getType()
Returns the link type.- Returns:
- the link type, null if none
-
setType
void setType(String type)
Sets the link type.- Parameters:
type
- the link type, null if none
-
getHref
String getHref()
Returns the link href.- Returns:
- the link href, null if none
-
setHref
void setHref(String href)
Sets the link href.- Parameters:
href
- the link href, null if none
-
getTitle
String getTitle()
Returns the link title.- Returns:
- the link title, null if none
-
setTitle
void setTitle(String title)
Sets the link title.- Parameters:
title
- the link title, null if none
-
getHreflang
String getHreflang()
Returns the hreflang.- Returns:
- Returns the hreflang
-
setHreflang
void setHreflang(String hreflang)
Set the hreflang.- Parameters:
hreflang
- The hreflang to set
-
getLength
long getLength()
Returns the length.- Returns:
- Returns the length
-
setLength
void setLength(long length)
Set the length.- Parameters:
length
- The length to set
-
getFlavor
String getFlavor()
Returns the link mediapackage element flavor.- Returns:
- the link flavor, null if none
-
setFlavor
void setFlavor(String flavor)
Sets the link mediapackage element flavor.- Parameters:
flavor
- the link flavor to set, null if none
-
-