public final class Registry
extends java.lang.Object
| Constructor and Description |
|---|
Registry(java.lang.String name,
java.lang.String title,
java.util.List<Link> links) |
| Modifier and Type | Method and Description |
|---|---|
Link |
asLinkFor(java.net.URI baseUri) |
Link |
findByHref(java.net.URI href)
Returns the entry referring to the specified href.
|
java.util.Collection<Link> |
getAll()
Returns an unmodifiable collection of all registered links.
|
java.lang.String |
getName()
Returns the name of the link collection.
|
java.lang.String |
getTitle()
Returns the human-readable title of the registry.
|
public Registry(java.lang.String name,
java.lang.String title,
java.util.List<Link> links)
public java.lang.String getName()
public java.lang.String getTitle()
public java.util.Collection<Link> getAll()
public Link findByHref(java.net.URI href)
href - URI of the link.public Link asLinkFor(java.net.URI baseUri)