DocumentHyperlink Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentHyperlink
- com.
Implements
public final class DocumentHyperlink
implements JsonSerializable<DocumentHyperlink>
Hyperlink in a document, such as a link to a web page or an email address.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
| String |
getContent()
Get the content property: Hyperlinked content. |
| String |
getSource()
Get the source property: Position of the hyperlink. |
|
Content |
getSpan()
Get the span property: Span of the hyperlink in the markdown content. |
| String |
getUrl()
Get the url property: URL of the hyperlink. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentHyperlink fromJson(JsonReader jsonReader)
Reads an instance of DocumentHyperlink from the JsonReader.
Parameters:
Returns:
Throws:
getContent
public String getContent()
Get the content property: Hyperlinked content.
Returns:
getSource
public String getSource()
Get the source property: Position of the hyperlink.
Returns:
getSpan
public ContentSpan getSpan()
Get the span property: Span of the hyperlink in the markdown content.
Returns:
getUrl
public String getUrl()
Get the url property: URL of the hyperlink.
Returns: