com.citytechinc.aem.bedrock.api.link
Interface Link

All Superinterfaces:
Serializable
All Known Subinterfaces:
ImageLink, NavigationLink

public interface Link
extends Serializable

A link represents the attributes that compose a URL with additional title and target properties to encapsulate the typical attributes of an HTML anchor tag.


Method Summary
 String getExtension()
           
 String getHref()
           
 String getPath()
           
 Map<String,String> getProperties()
           
 String getQueryString()
           
 List<String> getSelectors()
           
 String getSuffix()
           
 String getTarget()
           
 String getTitle()
           
 boolean isEmpty()
           
 boolean isExternal()
           
 

Method Detail

getExtension

String getExtension()
Returns:
extension

getHref

String getHref()
Returns:
href (path with extension)

getPath

String getPath()
Returns:
path

getProperties

Map<String,String> getProperties()
Returns:
property map

getQueryString

String getQueryString()
Returns:
query string starting with '?' or empty string if no parameters present

getSelectors

List<String> getSelectors()
Returns:
list of selector values or empty list if none exist

getSuffix

String getSuffix()
Returns:
suffix

getTarget

String getTarget()
Returns:
link target

getTitle

String getTitle()
Returns:
link title

isEmpty

boolean isEmpty()
Returns:
true if href is null or empty

isExternal

boolean isExternal()
Returns:
if href is to an external URL


Copyright © 2015 CITYTECH, Inc.. All rights reserved.