Class NullJavaTypeAdapter

java.lang.Object
dev.metaschema.core.datatype.AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
dev.metaschema.databind.model.annotations.NullJavaTypeAdapter
All Implemented Interfaces:
IDataTypeAdapter<Void>

public final class NullJavaTypeAdapter extends AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
Used to mark a Java type that has no configured adapter.
  • Constructor Details

    • NullJavaTypeAdapter

      public NullJavaTypeAdapter()
      Construct a new adapter.
  • Method Details

    • getJsonRawType

      public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getJsonRawType()
      Description copied from interface: IDataTypeAdapter
      The JSON primative type of the data type.
      Returns:
      the JSON data type
    • copy

      public Void copy(@NonNull Object obj)
      Description copied from interface: IDataTypeAdapter
      Create a copy of the provided value.
      Parameters:
      obj - the value to copy
      Returns:
      the copy
    • parse

      public Void parse(String value)
      Description copied from interface: IDataTypeAdapter
      Parses a provided string. Used to parse XML attributes, simple XML character data, and JSON/YAML property values.
      Parameters:
      value - the string value to parse
      Returns:
      the parsed data as the adapter's type
    • newItem

      public NullJavaTypeAdapter.VoidItem newItem(Object value)
      Description copied from interface: IDataTypeAdapter
      Construct a new item of this type using the provided value.
      Specified by:
      newItem in interface IDataTypeAdapter<Void>
      Specified by:
      newItem in class AbstractDataTypeAdapter<Void,NullJavaTypeAdapter.VoidItem>
      Parameters:
      value - the item's value
      Returns:
      a new item
    • getNames

      public List<IEnhancedQName> getNames()
      Description copied from interface: IDataTypeAdapter
      Get the metaschema type names associated with this adapter. This name must be unique with respect to all other metaschema types.

      At least one name must be provided, with the first name being the most preferred name.

      Returns:
      the name