Class MultilingualTextMicroTypeConverterRegistrar.MultilingualTextConverter

java.lang.Object
com.helger.xml.microdom.convert.MultilingualTextMicroTypeConverterRegistrar.MultilingualTextConverter
All Implemented Interfaces:
IMicroTypeConverter<com.helger.commons.text.MultilingualText>
Enclosing class:
MultilingualTextMicroTypeConverterRegistrar

public static final class MultilingualTextMicroTypeConverterRegistrar.MultilingualTextConverter extends Object
  • Constructor Details

    • MultilingualTextConverter

      public MultilingualTextConverter()
  • Method Details

    • convertToNative

      @Nonnull public com.helger.commons.text.MultilingualText convertToNative(@Nonnull IMicroElement aElement)
      Description copied from interface: IMicroTypeConverter
      Convert the passed object to a native element.
      Parameters:
      aElement - The micro element to be converted.
      Returns:
      null if conversion to a native object failed.
    • convertToMicroElement

      @Nonnull public final IMicroElement convertToMicroElement(@Nonnull com.helger.commons.text.MultilingualText aSource, @Nullable String sNamespaceURI, @Nonnull @Nonempty String sTagName)
      Description copied from interface: IMicroTypeConverter
      Convert the passed object to a micro element using the specified tag name
      Specified by:
      convertToMicroElement in interface IMicroTypeConverter<T extends com.helger.commons.text.IMultilingualText>
      Parameters:
      aSource - The object to be converted. May not be null.
      sNamespaceURI - The namespace URI for the element to be created. May be null.
      sTagName - The tag name to be used. May neither be null nor empty.
      Returns:
      null in case creation failed. A micro element with the specified namespace and tag name otherwise.
    • convertToMLT

      @Nonnull protected static com.helger.commons.text.MultilingualText convertToMLT(@Nonnull IMicroElement aElement)