@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class ResourceLink extends Object
| Constructor and Description |
|---|
ResourceLink() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAttributes()
Returns a map of attributes which can be applied to a HTML anchor element.
|
Link |
getMetadata()
Returns a
Link object with the metadata of the resolved link. |
boolean |
isValid()
Returns true if the link was resolved successful.
|
public Link getMetadata()
Link object with the metadata of the resolved link.
Result is never null, check for validness with the Link.isValid() method.public boolean isValid()
Copyright © 2014–2017 wcm.io. All rights reserved.