Package com.adobe.reef.siren
Class Link
- java.lang.Object
-
- com.adobe.reef.siren.Link
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetHref()Returns the href attribute.String[]getRel()Returns the rel attribute.StringgetTitle()Returns the title attribute.StringgetType()Returns the type attribute.inthashCode()voidsetHref(String href)Sets the href attribute.voidsetRel(String[] rel)Sets the rel attribute.voidsetTitle(String title)Sets the title attribute.voidsetType(String type)Sets the type attribute.StringtoString()
-
-
-
Constructor Detail
-
Link
public Link(String[] rel, String href) throws IllegalArgumentException
Constructs a new Link.- Parameters:
rel-href-- Throws:
IllegalArgumentException- if eitherrelorhrefarenullor empty.
-
-
Method Detail
-
getRel
public String[] getRel()
Returns the rel attribute.- Returns:
-
setRel
public void setRel(String[] rel)
Sets the rel attribute.- Parameters:
rel-
-
getHref
public String getHref()
Returns the href attribute.- Returns:
-
setHref
public void setHref(String href)
Sets the href attribute.- Parameters:
href-
-
getTitle
public String getTitle()
Returns the title attribute.- Returns:
-
setTitle
public void setTitle(String title)
Sets the title attribute.- Parameters:
title-
-
getType
public String getType()
Returns the type attribute.- Returns:
-
setType
public void setType(String type)
Sets the type attribute.- Parameters:
type-
-
-