Package com.attribyte.parser.model
Class Link
java.lang.Object
com.attribyte.parser.model.Link
An immutable link element.
- Author:
- Matt Hamer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
href
The href attribute. -
rel
The relation attribute. -
type
The link type. -
title
The link title.
-
-
Constructor Details
-
Link
Creates a link with just an href.- Parameters:
href- The href.
-
Link
Creates a link.- Null values converted to empty string
- Values trimmed
- Parameters:
href- The href.rel- The relation attribute.type- The type attribyte.title- The title attribute.
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
matchType
Matches the type.- Parameters:
rel- The relation. May benullto match any.type- The media type. May benullto match any.- Returns:
- Do the types match?
-