Package com.emc.documentum.rest.http.annotation

# Annotation Interface DefaultValue

@Target({PARAMETER,FIELD}) @Retention(RUNTIME) public @interface DefaultValue
Provide default values for query strings in the typed parameter `TypedParam` Use either "value" or "provider" to set a default value for the query parameter; if the default value is a constant, set it via "value" field; otherwise, implement your own ValueProvider to provide the default value for the query parameter programmatically. A sample is as below.

      @TypedParam({
          @DefaultValue(name = "inline", value = "false"),
          @DefaultValue(name = "starts-with", value = "hello"),
          @DefaultValue(name = "current-user", provider = CurrentUserProvider.class)})
      TestCollectionParam collectionParam;

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `name`
  The query parameter name

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `Class<? extends com.emc.documentum.rest.http.provider.ValueProvider>`
  `provider`
  A ValueProvider is a class that can retrieve the default value programmatically
  `String[]`
  `value`
  The default value for a query parameter

- ## Element Details

  - ### name

    String name
    The query parameter name
    Returns:
      query parameter name

- - ### value

    String[] value
    The default value for a query parameter
    Returns:
      query parameter default value
    Default:
      {}

  - ### provider

    Class<? extends com.emc.documentum.rest.http.provider.ValueProvider> provider
    A ValueProvider is a class that can retrieve the default value programmatically
    Returns:
      Class object of `ValueProvider`
    Default:
      com.emc.documentum.rest.http.provider.ValueProvider.class