Enum LexicalDataOwnershipKind
- java.lang.Object
-
- java.lang.Enum<LexicalDataOwnershipKind>
-
- ch.colabproject.colab.api.model.document.LexicalDataOwnershipKind
-
- All Implemented Interfaces:
Serializable
,Comparable<LexicalDataOwnershipKind>
public enum LexicalDataOwnershipKind extends Enum<LexicalDataOwnershipKind>
The different kinds of lexical data ownership.WARNING : The keywords are used in YJS server TypeScript code
- Author:
- sandra
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CARD_CONTENT
The lexical data are owned by a card contentRESOURCE
The lexical data are owned by a resource
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeyword()
static LexicalDataOwnershipKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static LexicalDataOwnershipKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CARD_CONTENT
public static final LexicalDataOwnershipKind CARD_CONTENT
The lexical data are owned by a card content
-
RESOURCE
public static final LexicalDataOwnershipKind RESOURCE
The lexical data are owned by a resource
-
-
Method Detail
-
values
public static LexicalDataOwnershipKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LexicalDataOwnershipKind c : LexicalDataOwnershipKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LexicalDataOwnershipKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getKeyword
public String getKeyword()
- Returns:
- The keyword to use in TypeScript code
-
-