Class CMARichHyperLink
- java.lang.Object
-
- com.contentful.java.cma.model.rich.CMARichNode
-
- com.contentful.java.cma.model.rich.CMARichBlock
-
- com.contentful.java.cma.model.rich.CMARichHyperLink
-
- Direct Known Subclasses:
CMARichEmbeddedLink
public class CMARichHyperLink extends CMARichBlock
This block represents a link to a website.
-
-
Field Summary
-
Fields inherited from class com.contentful.java.cma.model.rich.CMARichNode
data
-
-
Constructor Summary
Constructors Constructor Description CMARichHyperLink()Create a new hyper linkCMARichHyperLink(java.lang.Object target)Create a new hyper link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetData()java.lang.StringgetNodeType()-
Methods inherited from class com.contentful.java.cma.model.rich.CMARichBlock
addContent, getContent, setContent
-
-
-
-
Constructor Detail
-
CMARichHyperLink
public CMARichHyperLink()
Create a new hyper link
-
CMARichHyperLink
public CMARichHyperLink(java.lang.Object target)
Create a new hyper link.- Parameters:
target- point to the target.- Throws:
java.lang.IllegalStateException- if target is not aStringjava.lang.IllegalStateException- if target is not aCMALink
-
-
Method Detail
-
getData
public java.lang.Object getData()
- Returns:
- the target this link points to.
-
getNodeType
public java.lang.String getNodeType()
- Overrides:
getNodeTypein classCMARichNode- Returns:
- the internal depending on data node type.
-
-