Package com.adobe.reef.siren
Class Link
java.lang.Object
com.adobe.reef.siren.Link
A
Link represents a navigational transition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHref()Returns the href attribute.String[]getRel()Returns the rel attribute.getTitle()Returns the title attribute.getType()Returns the type attribute.inthashCode()voidSets the href attribute.voidSets the rel attribute.voidSets the title attribute.voidSets the type attribute.toString()
-
Constructor Details
-
Link
Constructs a new Link.- Parameters:
rel-href-- Throws:
IllegalArgumentException- if eitherrelorhrefarenullor 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
-