Annotation Type MetaschemaFieldValue
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface MetaschemaFieldValue
Identifies a field on a class annotated with theMetaschemaFieldannotation as the Module field's value.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultValueThe default value of the flag represented as a string.Class<? extends IDataTypeAdapter<?>>typeAdapterThe Module data type adapter for the field's value.StringvalueKeyNameThe name of the JSON property that contains the field's value.
-
-
-
Element Detail
-
typeAdapter
Class<? extends IDataTypeAdapter<?>> typeAdapter
The Module data type adapter for the field's value.- Returns:
- the data type adapter
- Default:
- gov.nist.secauto.metaschema.databind.model.annotations.NullJavaTypeAdapter.class
-
-
-
defaultValue
@NonNull String defaultValue
The default value of the flag represented as a string.The value
Constants.NULL_VALUEis used to indicate if no default value is provided.- Returns:
- the default value
- Default:
- "\u0000"
-
-
-
valueKeyName
@NonNull String valueKeyName
The name of the JSON property that contains the field's value. If this value is provided, the the name will be used as the property name. Otherwise, the property name will default to a value defined by the data type.Use of this annotation is mutually exclusive with the
JsonFieldValueKeyFlagannotation.- Returns:
- the name
- Default:
- "##none"
-
-