Share via


DocumentHyperlink Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.DocumentHyperlink

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 DocumentHyperlink fromJson(JsonReader jsonReader)

Reads an instance of DocumentHyperlink from the JsonReader.

String getContent()

Get the content property: Hyperlinked content.

String getSource()

Get the source property: Position of the hyperlink.

ContentSpan getSpan()

Get the span property: Span of the hyperlink in the markdown content.

String getUrl()

Get the url property: URL of the hyperlink.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

public static DocumentHyperlink fromJson(JsonReader jsonReader)

Reads an instance of DocumentHyperlink from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentHyperlink if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

public String getContent()

Get the content property: Hyperlinked content.

Returns:

the content value.

public String getSource()

Get the source property: Position of the hyperlink.

Returns:

the source value.

public ContentSpan getSpan()

Get the span property: Span of the hyperlink in the markdown content.

Returns:

the span value.

public String getUrl()

Get the url property: URL of the hyperlink.

Returns:

the url value.

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to