Package com.adobe.reef.siren
Class Link
java.lang.Object
com.adobe.reef.siren.Link
A
Link
represents a navigational transition.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getHref()
Returns the href attribute.String[]
getRel()
Returns the rel attribute.getTitle()
Returns the title attribute.getType()
Returns the type attribute.int
hashCode()
void
Sets the href attribute.void
Sets the rel attribute.void
Sets the title attribute.void
Sets the type attribute.toString()
-
Constructor Details
-
Link
Constructs a new Link.- Parameters:
rel
-href
-- Throws:
IllegalArgumentException
- if eitherrel
orhref
arenull
or empty.
-
-
Method Details
-
getRel
Returns the rel attribute.- Returns:
-
setRel
Sets the rel attribute.- Parameters:
rel
-
-
getHref
Returns the href attribute.- Returns:
-
setHref
Sets the href attribute.- Parameters:
href
-
-
getTitle
Returns the title attribute.- Returns:
-
setTitle
Sets the title attribute.- Parameters:
title
-
-
getType
Returns the type attribute.- Returns:
-
setType
Sets the type attribute.- Parameters:
type
-
-
toString
-
hashCode
public int hashCode() -
equals
-