Package com.helger.xml.microdom.convert
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IMicroElementconvertToMicroElement(com.helger.commons.text.MultilingualText aSource, String sNamespaceURI, String sTagName) Convert the passed object to a micro element using the specified tag nameprotected static com.helger.commons.text.MultilingualTextconvertToMLT(IMicroElement aElement) com.helger.commons.text.MultilingualTextconvertToNative(IMicroElement aElement) Convert the passed object to a native element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.xml.microdom.convert.IMicroTypeConverter
convertToMicroElement
-
Constructor Details
-
MultilingualTextConverter
public MultilingualTextConverter()
-
-
Method Details
-
convertToNative
@Nonnull public com.helger.commons.text.MultilingualText convertToNative(@Nonnull IMicroElement aElement) Description copied from interface:IMicroTypeConverterConvert the passed object to a native element.- Parameters:
aElement- The micro element to be converted.- Returns:
nullif 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:IMicroTypeConverterConvert the passed object to a micro element using the specified tag name- Specified by:
convertToMicroElementin interfaceIMicroTypeConverter<T extends com.helger.commons.text.IMultilingualText>- Parameters:
aSource- The object to be converted. May not benull.sNamespaceURI- The namespace URI for the element to be created. May benull.sTagName- The tag name to be used. May neither benullnor empty.- Returns:
nullin 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)
-