Class TLcdCompositeStringTranslator

java.lang.Object
com.luciad.util.TLcdCompositeStringTranslator
All Implemented Interfaces:
ILcdStringTranslator

public final class TLcdCompositeStringTranslator extends Object implements ILcdStringTranslator
Composite implementation of ILcdStringTranslator.

Any number of string translators can be added to this composite.

Example usage: Link icon

To create a composite instance which uses all default available ILcdStringTranslator instances, you can use:

ILcdStringTranslator stringTranslator = TLcdCompositeStringTranslator.createFromServices();

This will use all string translators annotated with the @LcdService annotation.

Since:
2019.1
  • Constructor Details Link icon

    • TLcdCompositeStringTranslator Link icon

      public TLcdCompositeStringTranslator(List<ILcdStringTranslator> aStringTranslators)
      Creates a new composite string translator for the given string translators.
      Parameters:
      aStringTranslators - list of string translators
    • TLcdCompositeStringTranslator Link icon

      public TLcdCompositeStringTranslator(Iterable<ILcdStringTranslator> aStringTranslators)
      Creates a new composite string translator for the given string translators.
      Parameters:
      aStringTranslators - Iterable of string translators
  • Method Details Link icon