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 boolean
equals(Object obj)
String
getHref()
Returns the href attribute.String[]
getRel()
Returns the rel attribute.String
getTitle()
Returns the title attribute.String
getType()
Returns the type attribute.int
hashCode()
void
setHref(String href)
Sets the href attribute.void
setRel(String[] rel)
Sets the rel attribute.void
setTitle(String title)
Sets the title attribute.void
setType(String type)
Sets the type attribute.String
toString()
-
-
-
Constructor Detail
-
Link
public Link(String[] rel, String href) throws IllegalArgumentException
Constructs a new Link.- Parameters:
rel
-href
-- Throws:
IllegalArgumentException
- if eitherrel
orhref
arenull
or 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
-
-
-