Class PersonNameFormatterCommand

  • All Implemented Interfaces:
    com.optimaize.command4j.Command<PersonNameFormatterArgument,​org.nameapi.ontology5.services.formatter.FormatterResult>, com.optimaize.command4j.commands.CombinableCommand<PersonNameFormatterArgument,​org.nameapi.ontology5.services.formatter.FormatterResult>

    public class PersonNameFormatterCommand
    extends NameApiBaseCommand<org.nameapi.client.services.formatter.personnameformatter.RestPort,​PersonNameFormatterArgument,​org.nameapi.ontology5.services.formatter.FormatterResult>
    Service for formatting person names.

    Example: "jean-claude von bergen-meyer" => "Jean-Claude von Bergen-Meyer"

    • Constructor Detail

      • PersonNameFormatterCommand

        public PersonNameFormatterCommand()
    • Method Detail

      • call

        public org.nameapi.ontology5.services.formatter.FormatterResult call​(@NotNull
                                                                             com.google.common.base.Optional<PersonNameFormatterArgument> arg,
                                                                             @NotNull
                                                                             com.optimaize.command4j.ExecutionContext ec)
                                                                      throws Exception
        Throws:
        Exception
      • createPort

        @NotNull
        protected Callable<org.nameapi.client.services.formatter.personnameformatter.RestPort> createPort​(@NotNull
                                                                                                          com.optimaize.command4j.ExecutionContext ec)
        Specified by:
        createPort in class com.optimaize.anythingworks.client.rest.RestBaseCommand<org.nameapi.client.services.formatter.personnameformatter.RestPort,​PersonNameFormatterArgument,​org.nameapi.ontology5.services.formatter.FormatterResult>