Class AssetDataBuilder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SMARTTAG_CONFIDENCE_PROP
      Name of the property holding the confidence of smart tag;
      static java.lang.String SMARTTAG_NAME_PROP
      Name of the property holding the name of smart tag;
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull AssetData build()
      Build the data.
      @NotNull AssetDataBuilder withFormat​(@NotNull java.util.function.Supplier<java.lang.String> supplier)
      Sets the supplier that supplies the Asset's format.
      @NotNull AssetDataBuilder withLastModifiedDate​(@NotNull java.util.function.Supplier<java.util.Date> supplier)
      Set the supplier that supplies the component's last modified date.
      @NotNull AssetDataBuilder withSmartTags​(@NotNull java.util.function.Supplier<java.util.Map<java.lang.String,​java.lang.Object>> supplier)
      Sets the supplier that supplies the Asset's smart tags.
      @NotNull AssetDataBuilder withTags​(@NotNull java.util.function.Supplier<java.lang.String[]> supplier)
      Sets the supplier that supplies the Asset's tags.
      @NotNull AssetDataBuilder withUrl​(@NotNull java.util.function.Supplier<java.lang.String> supplier)
      Sets the supplier that supplies the URL.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SMARTTAG_NAME_PROP

        public static final java.lang.String SMARTTAG_NAME_PROP
        Name of the property holding the name of smart tag;
        See Also:
        Constant Field Values
      • SMARTTAG_CONFIDENCE_PROP

        public static final java.lang.String SMARTTAG_CONFIDENCE_PROP
        Name of the property holding the confidence of smart tag;
        See Also:
        Constant Field Values
    • Method Detail

      • withUrl

        @NotNull
        public @NotNull AssetDataBuilder withUrl​(@NotNull
                                                 @NotNull java.util.function.Supplier<java.lang.String> supplier)
        Sets the supplier that supplies the URL.
        Parameters:
        supplier - The URL value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getUrl()
      • withFormat

        @NotNull
        public @NotNull AssetDataBuilder withFormat​(@NotNull
                                                    @NotNull java.util.function.Supplier<java.lang.String> supplier)
        Sets the supplier that supplies the Asset's format.
        Parameters:
        supplier - The format value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getFormat()
      • withTags

        @NotNull
        public @NotNull AssetDataBuilder withTags​(@NotNull
                                                  @NotNull java.util.function.Supplier<java.lang.String[]> supplier)
        Sets the supplier that supplies the Asset's tags.
        Parameters:
        supplier - The tags value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getTags()
      • withSmartTags

        @NotNull
        public @NotNull AssetDataBuilder withSmartTags​(@NotNull
                                                       @NotNull java.util.function.Supplier<java.util.Map<java.lang.String,​java.lang.Object>> supplier)
        Sets the supplier that supplies the Asset's smart tags.
        Parameters:
        supplier - The smart tags value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getSmartTags()
      • withLastModifiedDate

        @NotNull
        public @NotNull AssetDataBuilder withLastModifiedDate​(@NotNull
                                                              @NotNull java.util.function.Supplier<java.util.Date> supplier)
        Set the supplier that supplies the component's last modified date.
        Parameters:
        supplier - The last modified date value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getLastModifiedDate()