Freigeben über


DocumentAnnotationKind Class

public final class DocumentAnnotationKind
extends ExpandableStringEnum<DocumentAnnotationKind>

Document annotation kind.

Field Summary

Modifier and Type Field and Description
static final DocumentAnnotationKind BOLD

Bold annotation.

static final DocumentAnnotationKind CIRCLE

Circle annotation.

static final DocumentAnnotationKind HIGHLIGHT

Highlight annotation.

static final DocumentAnnotationKind ITALIC

Italic annotation.

static final DocumentAnnotationKind NOTE

Note annotation.

static final DocumentAnnotationKind STRIKETHROUGH

Strikethrough annotation.

static final DocumentAnnotationKind UNDERLINE

Underline annotation.

Constructor Summary

Constructor Description
DocumentAnnotationKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentAnnotationKind value.

Method Summary

Modifier and Type Method and Description
static DocumentAnnotationKind fromString(String name)

Creates or finds a DocumentAnnotationKind from its string representation.

static Collection<DocumentAnnotationKind> values()

Gets known DocumentAnnotationKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BOLD

public static final DocumentAnnotationKind BOLD

Bold annotation.

CIRCLE

public static final DocumentAnnotationKind CIRCLE

Circle annotation.

HIGHLIGHT

public static final DocumentAnnotationKind HIGHLIGHT

Highlight annotation.

ITALIC

public static final DocumentAnnotationKind ITALIC

Italic annotation.

NOTE

public static final DocumentAnnotationKind NOTE

Note annotation.

STRIKETHROUGH

public static final DocumentAnnotationKind STRIKETHROUGH

Strikethrough annotation.

UNDERLINE

public static final DocumentAnnotationKind UNDERLINE

Underline annotation.

Constructor Details

DocumentAnnotationKind

@Deprecated
public DocumentAnnotationKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentAnnotationKind value.

Method Details

fromString

public static DocumentAnnotationKind fromString(String name)

Creates or finds a DocumentAnnotationKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DocumentAnnotationKind.

values

public static Collection<DocumentAnnotationKind> values()

Gets known DocumentAnnotationKind values.

Returns:

known DocumentAnnotationKind values.

Applies to