public static class EditorConfigurationBuilder.TagMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EditorConfigurationBuilder.TagMetadata.Builder
Builder helper for metadata construction
|
Modifier and Type | Field and Description |
---|---|
java.lang.Class<?> |
actualType
When type is not really known or specific type should be used instead,
actual type can be specified to be used instead of the one Templater detected.
|
java.lang.String |
category
Category which can be used for grouping tags.
|
java.lang.String |
description
Description of the tag explaining its purpose.
|
java.lang.String |
example
Value example used for this tag.
|
EditorConfigurationBuilder.TagStatus |
status
Status of the tag.
|
Constructor and Description |
---|
TagMetadata(EditorConfigurationBuilder.TagStatus status,
java.lang.Class<?> actualType,
java.lang.String description,
java.lang.String example,
java.lang.String category)
Create tag metadata description.
|
Modifier and Type | Method and Description |
---|---|
static EditorConfigurationBuilder.TagMetadata.Builder |
builder()
Helper builder for constructing tag metadata
|
public final EditorConfigurationBuilder.TagStatus status
public final java.lang.Class<?> actualType
When type is not really known or specific type should be used instead, actual type can be specified to be used instead of the one Templater detected. This is useful in dynamic scenarios when Templater is unable to pick the best type, such as processing JSON.
It's also useful when there is type conversion going on, where some other type will actually be processed, instead of the one defined in the type signature due to low-level plugins.
public final java.lang.String description
public final java.lang.String example
public final java.lang.String category
public TagMetadata(EditorConfigurationBuilder.TagStatus status, java.lang.Class<?> actualType, java.lang.String description, java.lang.String example, java.lang.String category)
status
- status of the tagactualType
- when custom type will actually be useddescription
- description of the tagexample
- value example for the tagcategory
- category of the tagpublic static EditorConfigurationBuilder.TagMetadata.Builder builder()